rpm安装
rpm安装不会自动安装依赖 yum会
-i 安装 vh显示进度条
rpm -ivh 包名
# 查看已安装软件
[root@localhost nginx-1.16.1]# rpm -qa | grep tree
tree-1.6.0-10.el7.x86_64
# 卸载tree软件
[root@localhost nginx-1.16.1]# rpm -e tree
yum安装
# 安装
yum instatll tree -y
# 卸载
yum remove tree -y
# 查看仓库rpm数量
yum repolist
yum查看软件包含指定指令
# 查看什么软件包含 pstree指令
yum provides pstree