- apt-get安装
#更新源,/etc/apt/sources.list
sudo apt-get update
#安装tree命令
sudo apt-get install tree
#卸载tree命令
sudo apt-get remove tree
#清理包
sudo apt-get clean
- 源码安装软件
- 解压缩源代码包
- cd dir
- ./configure(检测文件是否缺失,检测编译环境)
- make (编译源码,生成库和可执行程序)
- sudo make install (把库和可执行程序,安装到系统路径下)
- 删除和卸载软件
sudo make distclean