| Maximum RPM: Taking the Red Hat Package Manager to the Limit | ||
|---|---|---|
| Prev | Chapter 4. Using RPM to Upgrade Packages | Next |
The most basic version of the rpm -U command is simply "rpm -U", followed by the name of a .rpm package file:
# rpm -U eject-1.2-2.i386.rpm
#
|
Here, RPM performed all the steps necessary to upgrade the eject-1.2-2[1]
Well, in the example above, we didn't tell the whole story. There was no older version of the eject package installed. Yes, it's true — rpm -U works just fine as a replacement for the normal install command rpm -i.
command is really just another way to specify an install. Some people never even bother to use RPM's install command; they always use rpm -U. Maybe the "-U" should stand for, "Uh, do the right thing"…
| [1] | For more information on RPM's use of URLs, please see the section called URLs — Another Way to Specify Package Files in Chapter 2. |
| Главная |