如果包安装成功的话,会列出所有文件的位置。
apt-get 所下载的用于安装的软件包,在
/var/cache/apt/archives
中。如果执行过 apt-get clean ,那么原始下载的包就找不到了。
如果以前安装过nginx
sudo apt-get autoremove --purge nginx
and restart
sudo apt-get install nginx
可以用sudo命令,它的作用是“excute a command as another user",默认为root用户,可以用 -u 指定用户名(假设要以user身份执行prog程序):
sudo -u user prog
阅读(131) | 评论(0) | 转发(0) |