Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Linux rpm Command

Linux rpm Command

Linux Command Reference Linux Command Reference

The Linux rpm command is used to manage packages.

rpm (full English spelling: redhat package manager) was originally a program used specifically by the Red Hat Linux distribution to manage the various Linux packages. Because it follows the GPL rules and is powerful and convenient, it gained wide popularity. It was gradually adopted by other distributions. The emergence of RPM package management made Linux easy to install and upgrade, indirectly improving the applicability of Linux.

Syntax

rpm [-acdhilqRsv][-b<完成阶段><套间档>+][-e<套件挡>][-f<文件>+][-i<套件档>][-p<套件档>+][-U<套件档>][-vv][--addsign<套件档>+][--allfiles][--allmatches][--badreloc][--buildroot<根目录>][--changelog][--checksig<套件档>+][--clean][--dbpath<数据库目录>][--dump][--excludedocs][--excludepath<排除目录>][--force][--ftpproxy<主机名称或IP地址>][--ftpport<通信端口>][--help][--httpproxy<主机名称或IP地址>][--httpport<通信端口>][--ignorearch][--ignoreos][--ignoresize][--includedocs][--initdb][justdb][--nobulid][--nodeps][--nofiles][--nogpg][--nomd5][--nopgp][--noorder][--noscripts][--notriggers][--oldpackage][--percent][--pipe<执行指令>][--prefix<目的目录>][--provides][--queryformat<档头格式>][--querytags][--rcfile<配置档>][--rebulid<套件档>][--rebuliddb][--recompile<套件档>][--relocate<原目录>=<新目录>][--replacefiles][--replacepkgs][--requires][--resign<套件档>+][--rmsource][--rmsource<文件>][--root<根目录>][--scripts][--setperms][--setugids][--short-circuit][--sign][--target=<安装平台>+][--test][--timecheck<检查秒数>][--triggeredby<套件档>][--triggers][--verify][--version][--whatprovides<功能特性>][--whatrequires<功能特性>]

Parameter Description:

Example

Install software

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

警告:dejagnu-1.4.2-10.noarch.rpm: V3 DSA 签名:NOKEY, key ID db42a60e

准备...           

########################################### [100%]

Display software installation information

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



【第1次更新 教程、类似命令关联】

Linux Command Reference Linux Command Reference