Erase multiple packages using rpm or yum

后端 未结 5 1104
故里飘歌
故里飘歌 2021-02-01 23:17

I was given access to a server with 50+ php rpms installed. I\'m trying to remove them all.

Basically, I\'m trying to combine these two commands:

rpm -qa         


        
5条回答
  •  甜味超标
    2021-02-01 23:41

    to list:

    rpm -qa | grep 'php'
    

    to remove instaled listed and filtrated:

    rpm -e $(rpm -qa |grep 'php')
    

提交回复
热议问题