[转] yum 技巧: 怎么查询源服务上一个rpm包, 包含的文件列表

9 4月

我们知道, 查询一个已经安装的rpm包的文件列表用

rpm -ql xxxxxx

例如:

rpm -ql gstreamer

如果gstreamer没有安装, 并且我们并不想安装它, 只是想知道它是不是包含我们想的文件, 该怎么办???

用repoquery吧,它是yum-utils只带的一个工具。

参数跟rpm一样

示例:

repoquery -ql gstreamer

 

/usr/bin/gst-feedback-0.10
/usr/bin/gst-inspect-0.10
/usr/bin/gst-launch-0.10
/usr/bin/gst-typefind-0.10
/usr/bin/gst-xmlinspect-0.10
/usr/bin/gst-xmllaunch-0.10
/usr/lib/gstreamer-0.10
/usr/lib/gstreamer-0.10/libgstcoreelements.so
/usr/lib/gstreamer-0.10/libgstcoreindexers.so
/usr/lib/libgstbase-0.10.so.0
/usr/lib/libgstbase-0.10.so.0.16.0
/usr/lib/libgstcontroller-0.10.so.0
/usr/lib/libgstcontroller-0.10.so.0.16.0
/usr/lib/libgstdataprotocol-0.10.so.0
/usr/lib/libgstdataprotocol-0.10.so.0.16.0
/usr/lib/libgstnet-0.10.so.0
/usr/lib/libgstnet-0.10.so.0.16.0
/usr/lib/libgstreamer-0.10.so.0
/usr/lib/libgstreamer-0.10.so.0.16.0
/usr/share/doc/gstreamer-0.10.19
/usr/share/doc/gstreamer-0.10.19/AUTHORS
/usr/share/doc/gstreamer-0.10.19/COPYING
/usr/share/doc/gstreamer-0.10.19/NEWS
/usr/share/doc/gstreamer-0.10.19/README
/usr/share/doc/gstreamer-0.10.19/RELEASE
/usr/share/doc/gstreamer-0.10.19/TODO
/usr/share/locale/af/LC_MESSAGES/gstreamer-0.10.mo
/usr/share/locale/az/LC_MESSAGES/gstreamer-0.10.mo
/usr/share/locale/be/LC_MESSAGES/gstreamer-0.10.mo
/usr/share/locale/bg/LC_MESSAGES/gstreamer-0.10.mo
/usr/share/locale/ca/LC_MESSAGES/gstreamer-0.10.mo
/usr/share/locale/cs/LC_MESSAGES/gstreamer-0.10.mo
/usr/share/locale/da/LC_MESSAGES/gstreamer-0.10.mo
/usr/share/locale/de/LC_MESSAGES/gstreamer-0.10.mo
/usr/share/locale/en_GB/LC_MESSAGES/gstreamer-0.10.mo
/usr/share/locale/es/LC_MESSAGES/gstreamer-0.10.mo
/usr/share/locale/fi/LC_MESSAGES/gstreamer-0.10.mo
/usr/share/locale/fr/LC_MESSAGES/gstreamer-0.10.mo
/usr/share/locale/hu/LC_MESSAGES/gstreamer-0.10.mo
/usr/share/locale/it/LC_MESSAGES/gstreamer-0.10.mo
/usr/share/locale/nb/LC_MESSAGES/gstreamer-0.10.mo
/usr/share/locale/nl/LC_MESSAGES/gstreamer-0.10.mo
/usr/share/locale/pl/LC_MESSAGES/gstreamer-0.10.mo
/usr/share/locale/ru/LC_MESSAGES/gstreamer-0.10.mo
/usr/share/locale/rw/LC_MESSAGES/gstreamer-0.10.mo
/usr/share/locale/sk/LC_MESSAGES/gstreamer-0.10.mo
/usr/share/locale/sq/LC_MESSAGES/gstreamer-0.10.mo
/usr/share/locale/sr/LC_MESSAGES/gstreamer-0.10.mo
/usr/share/locale/sv/LC_MESSAGES/gstreamer-0.10.mo
/usr/share/locale/tr/LC_MESSAGES/gstreamer-0.10.mo
/usr/share/locale/uk/LC_MESSAGES/gstreamer-0.10.mo
/usr/share/locale/vi/LC_MESSAGES/gstreamer-0.10.mo
/usr/share/locale/zh_CN/LC_MESSAGES/gstreamer-0.10.mo
/usr/share/locale/zh_TW/LC_MESSAGES/gstreamer-0.10.mo
/usr/share/man/man1/gst-feedback-0.10.1.gz
/usr/share/man/man1/gst-inspect-0.10.1.gz
/usr/share/man/man1/gst-launch-0.10.1.gz
/usr/share/man/man1/gst-typefind-0.10.1.gz
/usr/share/man/man1/gst-xmlinspect-0.10.1.gz
/usr/share/man/man1/gst-xmllaunch-0.10.1.gz

原文地址:http://blog.csdn.net/sabalol/article/details/6973493

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注