Previous Section  < Day Day Up >  Next Section

Recipe 3.7. Upgrading Packages on Debian

3.7.1 Problem

You want to upgrade a Debian package, because the new version has new features or bug fixes.

3.7.2 Solution

Use apt-get install:

# apt-get install gltron

Reading Package Lists... Done

Building Dependency Tree... Done

The following packages will be upgraded:

  gltron

1 upgraded, 0 newly installed, 0 to remove and 78 not upgraded.

Need to get 89.5kB of archives.

After unpacking 266kB of additional disk space will be used.

Get:1 ftp://ftp.debian.org sid/main gltron 3.53 [89.5kB]

Fetched 89.5kB in 5s (16.8kB/s)

Preconfiguring packages ...

(Reading database ... 141286 files and directories currently installed.)

Preparing to replace adduser 3.52 (using .../archives/adduser_3.53_all.deb) ...

Unpacking replacement gltron ...

Setting up adduser (3.53) ...

#

To upgrade several packages, use:

# apt-get install tuxkart gltron frozen-bubble tuxracer nethack galaga

3.7.3 Discussion

There is no separate command for upgrading a package. apt-get install always looks for the newest version.

3.7.4 See Also

  • apt-get(8)

  • Local documentation (/usr/share/doc/Debian/apt-howto)

    Previous Section  < Day Day Up >  Next Section