use*_*151 6 command-line apt dpkg apt-cache
apt-cache search返回可用包的列表。在我的情况下,我想查看将安装在我的 PC 上的文件列表,以防我安装该软件包usb-creator-gtk。
类似于dpkg-query -L已经安装的软件包。
感谢帮助。
你至少有这两个选择。
第一个,apt-file用于尚未安装的软件包。
$ sudo apt-get install apt-file
$ sudo apt-file update
$ apt-file list usb-creator-gtk
usb-creator-gtk: /usr/bin/usb-creator-gtk
usb-creator-gtk: /usr/lib/python2.7/dist-packages/usbcreator/frontends/gtk/__init__.py
usb-creator-gtk: /usr/lib/python2.7/dist-packages/usbcreator/frontends/gtk/frontend.py
[...]
Run Code Online (Sandbox Code Playgroud)
第二个,使用packages.ubuntu.com网站找到包,然后在“下载”部分的页面上一直向下,你会找到一个链接[list of files]。您在 Bionic (18.04) 中的包示例在这里。
无论哪种方式,请记住软件包可能会在其安装脚本中安装更多文件!