rpmbuild
rpm
. One of the original goals of the RPM system is providing ease of use. In support of this goal, just about everything you want to do with the RPM system can be done with this one command. For most usage, the command-line parameters to the rpm
command determine the actions it should take.
rpm
commandrpm
command performs the most common package-management functions, along with a host of uncommon functions as well. The table below lists the main operations you can perform with the rpm
command and the command-line options to specify the given operations.
Table 2.1. The main rpm
operations
Operation | Short Option | Long Option |
---|---|---|
Upgrade/install | -U | --upgrade |
Install | -I | --install |
Remove | -e | --erase |
Query | -q | --query |
Verify | -V | --verify |
Check signature | -K | --checksig |
Freshen (upgrade) already-installed package | -F | --freshen |
Initialize database | None | --initdb |
Rebuild database | None | --rebuilddb |
rpm
command. To install or upgrade a package, use the -U
command-line option:
rpm -U filename.rpm
xcopilot
RPM used as an example in this chapter, run the following command:
rpm -U xcopilot-0.6.6-3.i386.rpm
-h
and -v
options in conjunction with the –U
option:
rpm -Uhv xcopilot-0.6.6-3.i386.rpm
–h
option, the rpm
command will print a series of hash marks, #, to provide feedback that the command is still running. With the –v
option, the rpm
command provides more verbose messages.
Installing a Package
rpm -Uhv package_file.rpm
–e
command-line option:
rpm –e package_name
Using File Extensions
rpm –qa
rpm –qa | more
rpm
Options
rpm
command.