分类
devops

apt-file

dpkg --listfiles ovn-host
dpkg-query: package 'ovn-host' is not installed
Use dpkg --contents (= dpkg-deb --contents) to list archive files contents.

dpkg --listfiles need pkg MUST already be installed.

dpkg --help |grep listf
  -L|--listfiles <package>...      List files 'owned' by package(s).
apt install apt-file -y
apt-file update

e.g.

apt-file list ovn-central;
ovn-central: /etc/default/ovn-central
ovn-central: /usr/bin/ovn-northd
ovn-central: /usr/lib/systemd/system/ovn-central.service
ovn-central: /usr/lib/systemd/system/ovn-northd.service
ovn-central: /usr/lib/systemd/system/ovn-ovsdb-server-nb.service
ovn-central: /usr/lib/systemd/system/ovn-ovsdb-server-sb.service
ovn-central: /usr/share/doc/ovn-central/changelog.Debian.gz
ovn-central: /usr/share/doc/ovn-central/copyright
ovn-central: /usr/share/ovn/ovn-nb.ovsschema
ovn-central: /usr/share/ovn/ovn-sb.ovsschema
###############################################################
apt-file list ovn-host;
ovn-host: /etc/default/ovn-host
ovn-host: /usr/bin/ovn-controller
ovn-host: /usr/lib/systemd/system/ovn-controller.service
ovn-host: /usr/lib/systemd/system/ovn-host.service
ovn-host: /usr/share/doc/ovn-host/changelog.Debian.gz
ovn-host: /usr/share/doc/ovn-host/copyright