5

Can I choose which packages I want to upgrade with apt?

Using apt-get upgrade upgrades all packages, not just some of them.

Using apt-get install package doesn't upgrade some by me required packages which are related to the specified package.

Example: When I type sudo apt-get install firefox, packages like firefox-locale-en still using previous package version.

BuZZ-dEE
  • 14,533
obysr
  • 780

2 Answers2

5

Assuming you have old versions of the packages foo and bar, you can use apt-get install foo bar, which will install the latest versions of selected packages foo and bar, resulting in an upgrade.

BuZZ-dEE
  • 14,533
andol
  • 6,873
2

If there are specific packages that you don't want upgraded, you can lock them to the current version. There are instructions here: How to prevent updating of a specific package?

Then you can use apt-get upgrade to update the rest.