How do I find a list of packages that are outdated and need to be upgraded using aptitude?
I am using Ubuntu 10.04.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityupdate-manager
(sitting in System -> Administration) should probably be your first port of call. Though if you want a command-line version:
sudo apt-get update
sudo apt-get dist-upgrade
aptitude
and synaptic
can also tell you.
upgrade
will only upgrade installed packages. For things like kernels (installed as a dependency of the metapackage linux-image
) each kernel version has its own package name (eg: linux-image-2.6.35.7
). This is common in packages where having multiple versions available is desirable. apt-get upgrade
would therefore not upgrade you to linux-image-2.6.35.8
if and when linux-image
changed its dependencies because ....8
is a new package. dist-upgrade
would.
Another way to achive that from the command line is that of apt-show-versions.
The man page states:
apt-show-versions parses the dpkg status file and the APT lists for the installed and available package versions and distribution and shows upgrade options within the specific distribution of the selected package.
Once you've installed the package:
$ sudo apt-get install apt-show-versions
the only thing you have to do is:
$ sudo apt-show-versions -u
Hope that helps
Aptitude doesn't handle package installation as well as apt-get
, so I would recommend sticking with apt-get
. To get a list of packages that need to be installed, I would use the --dry-run
option:
sudo apt-get dist-upgrade --dry-run | grep ^Inst | cut -d" " -f2
In synaptic: from left "Status" and select "installed (upgradable)", or just use update-manager which shows all needed updates.
Synaptic: System->Administrator->Synaptic Package manager
Update manager: System->Administrator->Update manager