Linux安装相关

1. 使用apt-get install安装的文件放在哪里?

使用命令dpkg -L <package name> 如果包安装成功的话,会列出所有文件的位置

eg:

ubuntu@ubuntu1:/var/cache/apt/archives$  dpkg -L chkconfig
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/chkconfig
/usr/share/doc/chkconfig/copyright
/usr/share/doc/chkconfig/changelog.Debian.gz
/usr/share/man
/usr/share/man/man8
/usr/share/man/man8/chkconfig.8.gz
/sbin
/sbin/chkconfig
ubuntu@ubuntu1:/var/cache/apt/archives$ 

2. 安装完成的软件的软件包放在哪里?

/var/cache/apt/archives

中。如果执行过 apt-get clean ,那么原始下载的包就找不到了。

原文地址:https://www.cnblogs.com/windows/p/2595385.html