yum/dnf/rpm 等 查看rpm 包安装路径 (fedora 中…

2018-07-25 13:00:29来源:博客园 阅读 ()

新老客户大回馈,云服务器低至5折

有时候我们 使用 包管理工具,安装很方便,但我们还要能知道它们安装了什么文件,都把这些文件安装到哪里了?

我们以探究 pygtk 为例 在 fedora 28 之中

查找 pygtk:

?  ~ rpm -qa | grep pygtk
pygtk2-libglade-2.24.0-21.fc28.x86_64
pygtk2-2.24.0-21.fc28.x86_64

查看包信息:

?  ~ yum info pygtk2-2.24.0-21.fc28.x86_64
Last metadata expiration check: 18 days, 2:49:15 ago on Fri 06 Jul 2018 05:04:10 PM CST.
Installed Packages
Name         : pygtk2
Version      : 2.24.0
Release      : 21.fc28
Arch         : x86_64
Size         : 3.9 M
Source       : pygtk2-2.24.0-21.fc28.src.rpm
Repo         : @System
From repo    : fedora
Summary      : Python bindings for GTK+
URL          : http://www.pygtk.org/
License      : LGPLv2+
Description  : PyGTK is an extension module for Python that gives you access to the GTK+
             : widget set.  Just about anything you can write in C with GTK+ you can write
             : in Python with PyGTK (within reason), but with all the benefits of using a
             : high-level scripting language.

查看包内容和安装位置:

?  ~ rpm -ql pygtk2-2.24.0-21.fc28.x86_64
/usr/bin/pygtk-demo
/usr/lib/.build-id
/usr/lib/.build-id/14
/usr/lib/.build-id/14/ebf07fcf3e1ad2067be502da1a27b36a07304e
/usr/lib/.build-id/6a
/usr/lib/.build-id/6a/7b55ee5eb99d902c76a5e3c92277b4d4b281d7
/usr/lib/.build-id/71
/usr/lib/.build-id/71/efcd86018279c56773a9fdc05c36973b4ac56b
/usr/lib/.build-id/a5
/usr/lib/.build-id/a5/0d9500d7c70bd295e0f7f0dce335aee7a1efd8
/usr/lib/.build-id/d2
/usr/lib/.build-id/d2/6880432e9ddb68749302d3a49a6aef6e482519
/usr/lib64/pygtk
/usr/lib64/pygtk/2.0
/usr/lib64/pygtk/2.0/demos
/usr/lib64/pygtk/2.0/demos/__init__.py
/usr/lib64/pygtk/2.0/demos/__init__.pyc
/usr/lib64/pygtk/2.0/demos/__init__.pyo
/usr/lib64/pygtk/2.0/demos/appwindow.py
/usr/lib64/pygtk/2.0/demos/appwindow.pyc
/usr/lib64/pygtk/2.0/demos/appwindow.pyo
/usr/lib64/pygtk/2.0/demos/buttonbox.py
/usr/lib64/pygtk/2.0/demos/buttonbox.pyc
/usr/lib64/pygtk/2.0/demos/buttonbox.pyo
/usr/lib64/pygtk/2.0/demos/changedisplay.py
/usr/lib64/pygtk/2.0/demos/changedisplay.pyc
/usr/lib64/pygtk/2.0/demos/changedisplay.pyo
/usr/lib64/pygtk/2.0/demos/colorsel.py
/usr/lib64/pygtk/2.0/demos/colorsel.pyc
/usr/lib64/pygtk/2.0/demos/colorsel.pyo
/usr/lib64/pygtk/2.0/demos/dialogs.py
/usr/lib64/pygtk/2.0/demos/dialogs.pyc
/usr/lib64/pygtk/2.0/demos/dialogs.pyo
/usr/lib64/pygtk/2.0/demos/dnd.py
/usr/lib64/pygtk/2.0/demos/dnd.pyc
/usr/lib64/pygtk/2.0/demos/dnd.pyo
/usr/lib64/pygtk/2.0/demos/dndpixmap.py
/usr/lib64/pygtk/2.0/demos/dndpixmap.pyc
/usr/lib64/pygtk/2.0/demos/dndpixmap.pyo
/usr/lib64/pygtk/2.0/demos/editable_cells.py
/usr/lib64/pygtk/2.0/demos/editable_cells.pyc
/usr/lib64/pygtk/2.0/demos/editable_cells.pyo
/usr/lib64/pygtk/2.0/demos/entry_completion.py
/usr/lib64/pygtk/2.0/demos/entry_completion.pyc
/usr/lib64/pygtk/2.0/demos/entry_completion.pyo
/usr/lib64/pygtk/2.0/demos/expander.py
/usr/lib64/pygtk/2.0/demos/expander.pyc
/usr/lib64/pygtk/2.0/demos/expander.pyo
/usr/lib64/pygtk/2.0/demos/hypertext.py
/usr/lib64/pygtk/2.0/demos/hypertext.pyc
/usr/lib64/pygtk/2.0/demos/hypertext.pyo
/usr/lib64/pygtk/2.0/demos/images
/usr/lib64/pygtk/2.0/demos/images.py
/usr/lib64/pygtk/2.0/demos/images.pyc
/usr/lib64/pygtk/2.0/demos/images.pyo
/usr/lib64/pygtk/2.0/demos/images/alphatest.png
/usr/lib64/pygtk/2.0/demos/images/apple-red.png
/usr/lib64/pygtk/2.0/demos/images/background.jpg
/usr/lib64/pygtk/2.0/demos/images/floppybuddy.gif
/usr/lib64/pygtk/2.0/demos/images/gnome-applets.png
/usr/lib64/pygtk/2.0/demos/images/gnome-calendar.png
/usr/lib64/pygtk/2.0/demos/images/gnome-foot.png
/usr/lib64/pygtk/2.0/demos/images/gnome-gimp.png
/usr/lib64/pygtk/2.0/demos/images/gnome-gmush.png
/usr/lib64/pygtk/2.0/demos/images/gnome-gsame.png
/usr/lib64/pygtk/2.0/demos/images/gnu-keys.png
/usr/lib64/pygtk/2.0/demos/images/gtk-logo-rgb.gif
/usr/lib64/pygtk/2.0/demos/infobar.py
/usr/lib64/pygtk/2.0/demos/infobar.pyc
/usr/lib64/pygtk/2.0/demos/infobar.pyo
/usr/lib64/pygtk/2.0/demos/list_store.py
/usr/lib64/pygtk/2.0/demos/list_store.pyc
/usr/lib64/pygtk/2.0/demos/list_store.pyo
/usr/lib64/pygtk/2.0/demos/menu.py
/usr/lib64/pygtk/2.0/demos/menu.pyc
/usr/lib64/pygtk/2.0/demos/menu.pyo
/usr/lib64/pygtk/2.0/demos/panes.py
/usr/lib64/pygtk/2.0/demos/panes.pyc
/usr/lib64/pygtk/2.0/demos/panes.pyo
/usr/lib64/pygtk/2.0/demos/pixbufs.py
/usr/lib64/pygtk/2.0/demos/pixbufs.pyc
/usr/lib64/pygtk/2.0/demos/pixbufs.pyo
/usr/lib64/pygtk/2.0/demos/print_editor.py
/usr/lib64/pygtk/2.0/demos/print_editor.pyc
/usr/lib64/pygtk/2.0/demos/print_editor.pyo
/usr/lib64/pygtk/2.0/demos/sizegroup.py
/usr/lib64/pygtk/2.0/demos/sizegroup.pyc
/usr/lib64/pygtk/2.0/demos/sizegroup.pyo
/usr/lib64/pygtk/2.0/demos/statusicon.py
/usr/lib64/pygtk/2.0/demos/statusicon.pyc
/usr/lib64/pygtk/2.0/demos/statusicon.pyo
/usr/lib64/pygtk/2.0/demos/stock_browser.py
/usr/lib64/pygtk/2.0/demos/stock_browser.pyc
/usr/lib64/pygtk/2.0/demos/stock_browser.pyo
/usr/lib64/pygtk/2.0/demos/textscroll.py
/usr/lib64/pygtk/2.0/demos/textscroll.pyc
/usr/lib64/pygtk/2.0/demos/textscroll.pyo
/usr/lib64/pygtk/2.0/demos/textview.py
/usr/lib64/pygtk/2.0/demos/textview.pyc
/usr/lib64/pygtk/2.0/demos/textview.pyo
/usr/lib64/pygtk/2.0/demos/tooltip.py
/usr/lib64/pygtk/2.0/demos/tooltip.pyc
/usr/lib64/pygtk/2.0/demos/tooltip.pyo
/usr/lib64/pygtk/2.0/demos/tree_store.py
/usr/lib64/pygtk/2.0/demos/tree_store.pyc
/usr/lib64/pygtk/2.0/demos/tree_store.pyo
/usr/lib64/pygtk/2.0/demos/treemodel.py
/usr/lib64/pygtk/2.0/demos/treemodel.pyc
/usr/lib64/pygtk/2.0/demos/treemodel.pyo
/usr/lib64/pygtk/2.0/demos/ui_manager.py
/usr/lib64/pygtk/2.0/demos/ui_manager.pyc
/usr/lib64/pygtk/2.0/demos/ui_manager.pyo
/usr/lib64/pygtk/2.0/pygtk-demo.py
/usr/lib64/pygtk/2.0/pygtk-demo.pyc
/usr/lib64/pygtk/2.0/pygtk-demo.pyo
/usr/lib64/python2.7/site-packages/gtk-2.0
/usr/lib64/python2.7/site-packages/gtk-2.0/atk.so
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.pyc
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.pyo
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/_gtk.so
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/_lazyutils.py
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/_lazyutils.pyc
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/_lazyutils.pyo
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/compat.py
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/compat.pyc
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/compat.pyo
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/deprecation.py
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/deprecation.pyc
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/deprecation.pyo
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/keysyms.py
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/keysyms.pyc
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/keysyms.pyo
/usr/lib64/python2.7/site-packages/gtk-2.0/gtkunixprint.so
/usr/lib64/python2.7/site-packages/gtk-2.0/pango.so
/usr/lib64/python2.7/site-packages/gtk-2.0/pangocairo.so
/usr/share/doc/pygtk2
/usr/share/doc/pygtk2/AUTHORS
/usr/share/doc/pygtk2/MAPPING
/usr/share/doc/pygtk2/NEWS
/usr/share/doc/pygtk2/README
/usr/share/licenses/pygtk2
/usr/share/licenses/pygtk2/COPYING

当然也可以通过 yum provides 和 yum search 等命令 来进行定位包名。

保持更新,转载请注明出处。 

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:Re:从零开始的Linux之路(基础篇)

下一篇:dns