Easy Tutorial
❮ Linux Comm Kill Linux Shell Echo ❯

Linux rpm Command

Linux Command Manual

The Linux rpm command is used to manage packages.

rpm (full spelling in English: Red Hat Package Manager) was originally a program specifically designed for the Red Hat Linux distribution to manage various Linux packages. Due to its adherence to the GPL rules and its powerful and convenient features, it has gained widespread popularity. Gradually, it has been adopted by other distributions. The emergence of RPM package management has made Linux easy to install and upgrade, indirectly enhancing the usability of Linux.

Syntax

rpm [-acdhilqRsv][-b&lt;completion stage>&lt;package file>+][-e&lt;package file>][-f<file>+][-i&lt;package file>][-p&lt;package file>+][-U&lt;package file>][-vv][--addsign&lt;package file>+][--allfiles][--allmatches][--badreloc][--buildroot&lt;root directory>][--changelog][--checksig&lt;package file>+][--clean][--dbpath&lt;database directory>][--dump][--excludedocs][--excludepath&lt;exclude directory>][--force][--ftpproxy&lt;host name or IP address>][--ftpport&lt;communication port>][--help][--httpproxy&lt;host name or IP address>][--httpport&lt;communication port>][--ignorearch][--ignoreos][--ignoresize][--includedocs][--initdb][justdb][--nobulid][--nodeps][--nofiles][--nogpg][--nomd5][--nopgp][--noorder][--noscripts][--notriggers][--oldpackage][--percent][--pipe<command>][--prefix&lt;destination directory>][--provides][--queryformat&lt;header format>][--querytags][--rcfile&lt;configuration file>][--rebulid&lt;package file>][--rebuliddb][--recompile&lt;package file>][--relocate&lt;original directory>=&lt;new directory>][--replacefiles][--replacepkgs][--requires][--resign&lt;package file>+][--rmsource][--rmsource<file>][--root&lt;root directory>][--scripts][--setperms][--setugids][--short-circuit][--sign][--target=&lt;installation platform>+][--test][--timecheck&lt;check seconds>][--triggeredby&lt;package file>][--triggers][--verify][--version][--whatprovides<feature>][--whatrequires<feature>]

Parameter Description:

Example

Install software

# rpm -hvi dejagnu-1.4.2-10.noarch.rpm 
Warning: dejagnu-1.4.2-10.noarch.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing...           
########################################### [100%]

Display software installation information

# rpm -qi dejagnu-1.4.2-10.noarch.rpm

【First Update: Tutorials, Related Commands】

Linux Command Handbook

❮ Linux Comm Kill Linux Shell Echo ❯