(1)apt-get(ubuntu)
安装 tree 命令:sudo apt-get install tree
卸载 tree 命令:sudo apt-get remove tree
更新软件列表:sudo apt-get update
清空缓存: sudo apt-get clean
(2)dpkg(ubuntu 中.deb 包,需要事先下载到本地)
安装:sudo dpkg -i xxx.deb
卸载:sudo dpkg -r xxx.deb
(3)yum(centOS、Redhat)
安装:sudo yum -y install tree
(4)rpm(centOS、Redhat 中 rmp 包)
安装:rpm -ivh xxx.rmp
(5)源码安装
1、解压源代码包
2、cd 解压目录
3、./configure //执行该文件,检测文件是够缺失,同时生成 makefile
4、make
5、sudo make install
// 安装到系统路径
Linux学习:shell 命令(软件安装和卸载)
最新推荐文章于 2024-05-20 20:57:32 发布