rpm命令详解

来源:互联网 发布:中国统计局数据库 编辑:程序博客网 时间:2024/06/04 00:42
rpm -qc: Lists all configuration files in a package.
✦ rpm -qd: Lists all documentation files in a package. These are usually
the online manual pages (also known as man pages).
✦ rpm -qf: Displays the name of the package (if any) to which a specified
file belongs.
✦ rpm -qi: Displays detailed information about a package ( version
number, size, installation date, and a brief description).
✦ rpm -ql: Lists all the files in a package. For some packages, you see a
very long list.
✦ rpm -qs: Lists the state of all files in a package. (The state of a file can

be one of the following: normal, not installed, or replaced.)


rpm -q --whatprovides /etc/vsftpd.conf RPM then prints the name of the package that provides the file

rpm -q --whatrequires openssl
The output from this command shows all the RPM packages that need the openssl package.

0 0
原创粉丝点击