#把包名相关的包都列出来
rpm -qa | grep 包名
#你想卸载的软件,后面是包名称,最后的版本号是不用打的
rpm -e 文件名
#rpm安装
rpm -ivh erlang-21.1-1.el7.centos.x86_64.rpm
rpm -ivh rabbitmq-server-3.7.8-1.el7.noarch.rpm
rpm -ivh socat-1.7.3.2-5.el7.lux.x86_64.rpm
#rpm查看软件是否安装
[root@ly-01 app]# rpm -qa | grep rabbitmq-server
rabbitmq-server-3.7.8-1.el7.noarch
[root@ly-01 app]# rpm -qa | grep erlang
erlang-21.1-1.el7.centos.x86_64
[root@ly-01 app]# rpm -qa | grep socat
socat-1.7.3.2-5.el7.lux.x86_64
[root@ly-01 app]#
#rpm卸载
[ root@ly - 01 app] # rpm - e rabbitmq- server
[ root@ly - 01 app] # rpm - e erlang
[ root@ly - 01 app] # rpm - e socat
#rpm卸载后查看
[ root@ly - 01 app] # rpm - qa | grep rabbitmq- server
[ root@ly - 01 app] # rpm - qa | grep erlang
[ root@ly - 01 app] # rpm - qa | grep socat
[ root@ly - 01 app] #