Latest web development tutorials

Linux rpm command

Linux command Daquan Linux command Daquan

Linux rpm command management suite.

rmp (redhat package manager) was originally a Red Hat Linux distribution designed to manage the Linux program suite, since it is easy to follow and powerful GPL rules, so popular. Gradually adopted by other distributions. Appear RPM package management, so that Linux is easy to install, upgrade, indirectly enhance the degree of application of Linux.

grammar

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:

  • -a queries all packages.
  • -b <completion stage> <package file> + or -t <completion stage> <package file> + setting package suite stages of completion, and specify the file name of the package profile.
  • -c list only configuration profile, this parameter must comply with the "-l" parameter.
  • -d lists only text files, this parameter must comply with the "-l" parameter.
  • -e <package file> or --erase <package file> delete the specified package.
  • -f <file> + query has specified file package.
  • Lists mark -h or --hash kit installation.
  • -i displays information kit.
  • -i <package file> or --install <package file> Install the specified package file.
  • -l displays a list of package files.
  • -p <package file> + query specified RPM package file.
  • -q use inquiry mode, when you encounter any problems, rpm command will first ask the user.
  • -R Display related information kit.
  • -s Displays file status, this parameter must comply with the "-l" parameter.
  • -U <Package file> or --upgrade <package file> to upgrade the specified package file.
  • -v display process execution instruction.
  • -vv detail display during the execution of instructions for easy troubleshooting.
  • -addsign <package file> + plus new signature certification specified in the package.
  • --allfiles install all the files.
  • --allmatches files conforming to the specified file package contains.
  • --badreloc When an error occurs, re-configuration files.
  • When --buildroot <root> is set to produce kits desire as the root directory.
  • --changelog display changes Suite.
  • --checksig <package file> + certification to verify the signature of the suite.
  • After --clean complete kit packaging, remove the packaging process created directory.
  • --dbpath <catalog database> To set the directory where RPM database.
  • --dump display authentication information for each file. This parameter is required to play "-l" parameter.
  • When --excludedocs mounting kit, do not install files.
  • --excludepath <Exclude Directory> ignores all the files in the specified directory.
  • --force forcibly replacement kit or file.
  • --ftpproxy <host name or IP address> Specify the FTP proxy server.
  • --ftpport <communications port> Set the communications port FTP server or proxy server.
  • --help online help.
  • --httpproxy <host name or IP address> Specifies the HTTP proxy server.
  • --httpport <communications port> Set the communications port for the HTTP server or proxy server.
  • --ignorearch not verify the correctness of the structure of the package file.
  • --ignoreos not verify the correctness of the structure of the package file.
  • --ignoresize Before installation does not check disk space is sufficient.
  • When --includedocs mounting kit, together with the installation files.
  • --initdb confirmed the correct database can be used.
  • --justdb update the database when not change any files.
  • --nobulid not perform any stage of completion.
  • --nodeps does not verify interconnectedness Suite profile.
  • --nofiles does not verify file attributes.
  • --nogpg skip all of the GPG signature verification.
  • --nomd5 not use the size and accuracy of the calculations confirm MD5 encoded files.
  • --nopgp skip all of the PGP signature verification.
  • --noorder not rearrange the order of installation kit, in order to meet their association with each other.
  • --noscripts not perform any installation Script files.
  • --notriggers any Script files in the kit package is not performed.
  • --oldpackage upgrade older versions of packages.
  • The percentage of completion of --percent display mounting kit.
  • --pipe <Instruction> build the pipeline, the output execution instruction into the input data.
  • --prefix <destination directory> If re-configuration file, put the file into the specified directory.
  • --provides query the degree of compatibility kit provided.
  • --queryformat <file header format> Set profile head of representation.
  • --querytags listed file header format tags are used.
  • --rcfile <profile> Use the specified configuration file.
  • --rebulid <package file> installation kit original code, regenerate suite binaries.
  • --rebuliddb to existing database-oriented rebuild a database.
  • --recompile <package file> specify this parameter and the effect is similar to "--rebulid" parameter when no package file.
  • --relocate <original directory> = <new directory> would have been put into the original file directory to change into the new directory.
  • --replacefiles forced displacement file.
  • --replacepkgs forced replacement kit.
  • The kit is compatible query --requires degree required.
  • --resing <package file> + delete existing certification, re-generate the signature certification.
  • After --rmsource complete kit package, delete the original code.
  • --rmsource <file> delete the original code and the specified file.
  • --root <Root> Settings desire as the root directory.
  • --scripts listed mounting kit Script variables.
  • --setperms set file permissions.
  • Owner --setugids settings file and their respective groups.
  • --short-circuit direct skip step stages of completion specified.
  • --sign produce PGP or GPG signature certification.
  • --target = <installed platform> + setting produces mounting platform kit.
  • --test only for testing, not really mount kit.
  • --timecheck <Check seconds> to set the number of seconds to check the timing of time.
  • --triggeredby <package file> Discover the suite packagers.
  • --triggers display packaging Script files within the package.
  • --verify effect of this parameter and specify "-q" the same parameters.
  • --version display version information.
  • --whatprovides <Features> Query degree of compatibility of the suite of features specific to offer.
  • --whatrequires <Features> Query degree of compatibility of the suite of features specific needs.

Examples

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 Daquan Linux command Daquan