rpm
Command Options-v
(for more verbose output) work with the rpm
command for installing, removing, and upgrading packages, as well as most other uses of the rpm
command.
rpm
command options, which work with most RPM actions, include --quiet
to turn off most output except for errors, and --root
, covered previously.
--rcfile
option tells the rpm
command to use one or more other files to initialize the RPM system. These files tell the rpm
command the system architecture, operating system, and default location of the RPM database, among a host of other settings.
rc
Files
rc
comes from Unix shells, with initialization files such as .cshrc
for the C shell, csh
. The term rc
was originally a shorthand for run commands. An rc
is a file of commands that run when the application starts up. For example, the C shell, csh
, runs the commands in file named .cshrc
when the shell starts.
rpm
command, this file is .rpmrc
. The leading period makes the file hidden for most directory listings.
/etc/rpmrc
(with no leading period) that customizes the rpm
command for all users on your system. See Chapter 20, Customizing RPM Behavior for a more in-depth look at the chain of these files.
--rcfile
option is
--rcfile
filename
--rcfile
filename1:filename2:filename3
/usr/lib/rpm/rpmrc:/usr/lib/rpm/redhat/rpmrc:/etc/rpmrc:~/.rpmrc
Tilde (~) Denotes Home Directory
~/.rpmrc
means to look in the user's home directory for a file named rpmrc
.
--showrc
option to list all the rc
settings.
The --showrc
Option
--showrc
option.
--version
option tells the rpm
command to print out the version number of the command and then exit. For example:
rpm --version
RPM version 4.1
--dbpath
option, mentioned previously, tells the rpm
command to use a different RPM database. This is useful when testing a complete system install, where you want to change the RPM database but don't want that to affect your running Linux system. In this case, you can use a different RPM database and test out your changes. The basic syntax for this option is:
--dbpath
directory_name
--pipe
option tells the rpm
command to send, or pipe, its output to another program. The syntax for this option is:
--pipe
command_to_send_out_to