dpkg -L 命令用于查询系统中所安装软件包的安装的文件安装到系统的位置和安装了那些.
dpkg -L bind9
/.
/var
/var/cache
/var/cache/bind
/var/run
/etc
/etc/init.d
/etc/init.d/bind9
/etc/ufw
/etc/ufw/applications.d
/etc/ufw/applications.d/bind9
/etc/ppp
/etc/ppp/ip-down.d
/etc/ppp/ip-down.d/bind9
/etc/ppp/ip-up.d
/etc/ppp/ip-up.d/bind9
/etc/bind
/etc/bind/named.conf
/etc/bind/db.empty
/etc/bind/db.0
/etc/bind/zones.rfc1918
/etc/bind/db.127
/etc/bind/named.conf.local
/etc/bind/named.conf.default-zones
/etc/bind/db.255
/etc/bind/db.root
/etc/bind/db.local
/etc/bind/bind.keys
/etc/network
/etc/network/if-up.d
/etc/network/if-up.d/bind9
/etc/network/if-down.d
/etc/network/if-down.d/bind9
/etc/apparmor.d
/etc/apparmor.d/usr.sbin.named
/etc/apparmor.d/force-complain
/etc/apparmor.d/local
/etc/apparmor.d/local/usr.sbin.named
/lib
/lib/x86_64-linux-gnu
/lib/systemd
/lib/systemd/system
/lib/systemd/system/bind9-resolvconf.service
/lib/systemd/system/bind9.service
/usr
/usr/var
/usr/var/run
/usr/share
/usr/share/man
/usr/share/man/man5
/usr/share/man/man5/named.conf.5.gz
/usr/share/man/man5/rndc.conf.5.gz
/usr/share/man/man1
/usr/share/man/man1/isc-config.sh.1.gz
/usr/share/man/man1/arpaname.1.gz
/usr/share/man/man1/bind9-config.1.gz
/usr/share/man/man8
/usr/share/man/man8/ddns-confgen.8.gz
/usr/share/man/man8/named-journalprint.8.gz
/usr/share/man/man8/isc-hmac-fixup.8.gz
/usr/share/man/man8/dnssec-coverage.8.gz
/usr/share/man/man8/nsec3hash.8.gz
/usr/share/man/man8/named.8.gz
/usr/share/man/man8/genrandom.8.gz
/usr/share/doc
/usr/share/doc/bind9
/usr/share/doc/bind9/changelog.Debian.gz
/usr/share/doc/bind9/README.gz
/usr/share/doc/bind9/README.Debian.gz
/usr/share/doc/bind9/NEWS.Debian.gz
/usr/share/doc/bind9/copyright
/usr/share/doc/bind9/FAQ.gz
/usr/share/bind9
/usr/share/bind9/named.conf.options
节选了一部分,请看最前面的几行
/.
/var
/var/cache
/var/cache/bind
/var/run
如何理解?/var文件夹下面究竟有没有bin9有关的文件,如果有请列出?因该没有吧?既然没有为何显示在这里?
如何理解dpkg -L 这个命令?
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 137
- 注册时间: 2015-07-24 8:29
- 系统: ubuntu
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: 如何理解dpkg -L 这个命令?
http://packages.ubuntu.com/vivid/amd64/bind9/filelist討論區首頁 » 系统安装区 » 初学者园地 - 15.04
在 vivid 發行版中 amd64 硬體架構下的 bind9 套件文件清單
跟你上面列出的目錄/檔案明細不同
請再確認
dpkg -L bind9
試試
sudo dpkg -L bind9
- vickycq
- 帖子: 4507
- 注册时间: 2011-03-20 13:12
- 系统: Debian
- 来自: 山东省寿光县
- 联系:
Re: 如何理解dpkg -L 这个命令?
理解成 bind9_9.9.5.dfsg-11_amd64.deb 中的目录树就好了。
http://ftp.cn.debian.org/debian/pool/ma ... _amd64.deb
到此下载一个bind9的deb包,用压缩档查看器打开,看里面的目录结构。里面确实有/var,下面还有子文件夹,但里面全是空的。可理解成建立文件夹用来储存 软件将来运行会产生的文件,例如/var/cache/bind。或是一种标准化流程。
http://ftp.cn.debian.org/debian/pool/ma ... _amd64.deb
到此下载一个bind9的deb包,用压缩档查看器打开,看里面的目录结构。里面确实有/var,下面还有子文件夹,但里面全是空的。可理解成建立文件夹用来储存 软件将来运行会产生的文件,例如/var/cache/bind。或是一种标准化流程。
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
欢迎所有 Debian GNU/Linux 用户
- vickycq
- 帖子: 4507
- 注册时间: 2011-03-20 13:12
- 系统: Debian
- 来自: 山东省寿光县
- 联系:
Re: 如何理解dpkg -L 这个命令?
从 http://security.ubuntu.com/ubuntu/pool/ ... _amd64.debpoloshiao 写了:http://packages.ubuntu.com/vivid/amd64/bind9/filelist討論區首頁 » 系统安装区 » 初学者园地 - 15.04
在 vivid 發行版中 amd64 硬體架構下的 bind9 套件文件清單
跟你上面列出的目錄/檔案明細不同
上下载 vivid 發行版中 amd64 硬體架構下的 bind9 deb文件,打开,查看。其文件目录树和楼主列出的一致。网站上的file list只列出了文件,没列出目录树。
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
欢迎所有 Debian GNU/Linux 用户