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可以找到你安装程序的包
转载: