Debian / Ubuntu中怎样列出某个deb包中的文件内容

1、对于有deb包的情况

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
dpkg -c package_file.deb
dpkg -c package_file.deb
dpkg -c package_file.deb

2、对于通过apt安装的

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
sudo apt-get install apt-file
sudo apt-file update
sudo apt-file list package-name
sudo apt-get install apt-file sudo apt-file update sudo apt-file list package-name
sudo apt-get install apt-file
sudo apt-file update
sudo apt-file list package-name

Leave a Reply

Your email address will not be published. Required fields are marked *