我刚刚安装了一个守护进程:
apt-get install daemon
我使用的脚本需要守护进程的安装目录。这是在哪里,或者我如何找到它?
我刚刚安装了一个守护进程:
apt-get install daemon
我使用的脚本需要守护进程的安装目录。这是在哪里,或者我如何找到它?
在 apt 缓存中查找下载的包:
ls -alF /var/cache/apt/archives | grep daemon
如果您已经清除了 apt 缓存,请尝试重新下载软件包:
sudo apt-get --download-only install daemon
然后在安装后检查这个包的内容和文件路径:
sudo dpkg -c /var/cache/apt/archives/daemon_0.6.4-1_amd64.deb
drwxr-xr-x root/root 0 2010-06-14 23:55 ./
drwxr-xr-x root/root 0 2010-06-14 23:55 ./etc/
-rw-r--r-- root/root 141 2010-06-14 23:55 ./etc/daemon.conf
drwxr-xr-x root/root 0 2010-06-14 23:55 ./usr/
drwxr-xr-x root/root 0 2010-06-14 23:55 ./usr/bin/
-rwxr-xr-x root/root 187080 2010-06-14 23:55 ./usr/bin/daemon
...
我认为答案是/usr/bin。
更新:
daemon
Debian 7.3的上述软件包版本