apt-get install的默认安装路径

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apt-get install的默认安装路径相关的知识,希望对你有一定的参考价值。

apt-get 命令

sudo apt-get update
sudo apt-get install tree
sudo apt-get -y install tree         //跳过系统提示,直接安装。
sudo apt-get remove tree          
sudo apt-get autoremove tree

 apt-get 安装路径一般就下面几个

/usr/bin 
/usr/lib 
/usr/share 
/usr/share/man 

 查看方法

dpkg -L 软件包名

 例如:

sudo dpkg -L tree

/.
/usr
/usr/bin
/usr/bin/tree
/usr/share
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/tree.1.gz
/usr/share/doc
/usr/share/doc/tree
/usr/share/doc/tree/TODO
/usr/share/doc/tree/copyright
/usr/share/doc/tree/README.gz
/usr/share/doc/tree/changelog.Debian.gz

在/var/cache/apt/archives可以找到你安装程序的包

清闲居C博客:http://blog.csdn.net/zzxian/article/details/7233622

 

以上是关于apt-get install的默认安装路径的主要内容,如果未能解决你的问题,请参考以下文章

ubuntu中apt-get安装与默认路径

ubuntu中apt-get安装与默认路径

ubuntu中apt-get安装与默认路径

如何更改 apt-get 安装目录 [关闭]

Android 逆向应用安装目录 ( Android 应用的默认安装目录 | 查找 Android 应用的安装目录 | 查询当前正在运行的应用包名 | 根据包名查询应用安装路径 )(代码片

Android 逆向应用安装目录 ( Android 应用的默认安装目录 | 查找 Android 应用的安装目录 | 查询当前正在运行的应用包名 | 根据包名查询应用安装路径 )(代码片