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.
Assuming you have old versions of the packages
foo
andbar
, you can useapt-get install foo bar
, which will install the latest versions of selected packagesfoo
andbar
, resulting in an upgrade.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.