How can I Update Packages

Tom H tomh0665 at gmail.com
Wed Mar 3 21:32:33 UTC 2010


> I am running UBUNTU Server 9.10 but I´m a newbie to UBUNTU.
> After my login the following message appears:
> 65 packages can be updated.
> 30 updates are security updates.
> How can I automatically update those packages?

Knute suggested
sudo aptitude update
sudo aptitude full-upgrade
and Karl suggested
sudo aptitude update
sudo aptitude upgrade
which is deprecated, the correct invocation being
sudo aptitude safe-upgrade

Both upgrade installed packages to their most recent version but
"safe-upgrade" does not remove installed packages and only installs
new packages to resolve dependencies.

Since you are running a server, you should use "safe-upgrade".

In fact, you should run
aptitude update
aptitude search ~U
to list the updates that are available and install those that you need
(ideally after testing them on a dev box).




More information about the ubuntu-users mailing list