centost redhat 卸载rpm以及yum install 的正确姿势

先看yum  install 的卸载:

 第一列为我们要的包名:

那么要移除必须使用

yum list |grep  collectd | awk '{print $1}' |xargs  yum  remove  -y  

拿到第一列验证:

 ===========gold  line  how to  remove rpm   install and its config ==============

 rpm -qa |grep   grafana |xargs   yum remove -y

或者,第二种会保留配置文件备份

rpm  -qa  | grep  -i  grafana|xargs rpm  -e  

猜你喜欢

转载自www.cnblogs.com/SunshineKimi/p/12292075.html