Recipe 2.3. Upgrading RPMs

 < Day Day Up > 

2.3.1 Problem

You need to upgrade an installed RPM package: there's a new version of some program you like, with new features and important bug fixes.

2.3.2 Solution

Use the -U flag:

# rpm -Uvh tuxpaint-9.13-1.i386.rpm

To test the command first, use:

# rpm -Uvh  test tuxpaint-9.13-1.i386.rpm

2.3.3 Discussion

-U can be used in place of -i, install. It doesn't matter if you're upgrading a package or installing a new one, it works in both cases. -U replaces the old package. If you want to have multiple versions of the same package, such as gcc, or install several different kernels, don't use -U, use -i.

2.3.4 See Also

  • rpm(8)

  • RPM.org (http://rpm.org/)

  • Maximum RPM (http://www.rpm.org/max-rpm/index.html)

     < Day Day Up > 


    Linux Cookbook
    Linux Cookbook
    ISBN: 0596006403
    EAN: 2147483647
    Year: 2004
    Pages: 434

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net