是否有任何标准的方法来find在Ubuntu上安装aptitude的应用程序的安装目录?
whereis binary例如:
whereis bash
会产生类似于:
root@hostname:~# whereis apache2 apache2: /usr/sbin/apache2 /etc/apache2 /usr/lib/apache2 /usr/lib64/apache2 /usr/share/apache2 /usr/share/man/man8/apache2.8.gz
或者作为根,你可以运行类似这样的事情:
updatedb && locate apache
你能澄清你所要求的吗?
dpkg -L PACKAGENAME将显示PACKAGENAME中的每个文件
其中 APPLICATION将向您展示APPLICATION的完整path
dpkg -S / usr / full / path / to / file将显示文件属于哪个包。
which将显示一个程序的完整文件名。
例如:
$ which vim /usr/bin/vim