[root@localhost tools]# rpm -qlp libstdc++-4.3.2-7.i386.rpm
warning: libstdc++-4.3.2-7.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4ebfc273
/usr/lib/libstdc++.so.6
/usr/lib/libstdc++.so.6.0.10
[root@localhost tools]#
RPM is a popular software packaging format. Originally named as Red
Hat Package Manager as it was developed by Red Hat for their linux
distribution. Since then it has been ported to more that 20 operating
systems. If you have an RPM file, the only way to get its contents out
is to use the rpm utility. This recipe describes how to list the files
contained in an RPM. To be honest, I don’t do this often enough to
remember the simple command and always have to go through the really big
man page to figure it out again.
To list the contents of the RPM techrx.rpm use this command:
rpm -qlp techrx.rpm
阅读(835) | 评论(0) | 转发(0) |