View premise is that you have a .rpm file, that file.rpm of view of existing software;
1, uses a viewing package, version and other information;
语法: rpm -qpi file.rpm
For example:
[root@localhost RPMS]# rpm -qpi lynx-2.8.5-23.i386.rpm
2, view a file contained in the package;
语法: rpm -qpl file.rpm
For example:
[root@localhost RPMS]# rpm -qpl lynx-2.8.5-23.i386.rpm
3, see the location where the package of documents;
语法: rpm -qpd file.rpm
For example:
[root@localhost RPMS]# rpm -qpd lynx-2.8.5-23.i386.rpm
4, view the configuration file of a package;
语法: rpm -qpc file.rpm
For example:
[root@localhost RPMS]# rpm -qpc lynx-2.8.5-23.i386.rpm
5, view the dependencies of a package
语法: rpm -qpR file.rpm
For example:
[root@localhost archives]# rpm -qpR yumex_0.42-3.0.fc4_noarch.rpm
/bin/bash
/usr/bin/python
config(yumex) = 0.42-3.0.fc4
pygtk2
pygtk2-libglade
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
usermode
yum >= 2.3.2