Coding Projects Linux笔记CentOS下删除所有已安装的软件包|逆序回滚所有安装一行代码搞定,如果需要手动确认的话把-y参数去掉yum history list|awk '$1 ~ /[0-9]+/ {print $1}'| while read a; do yum history undo -y $a; doneThis article is under CC BY-NC-SA 4.0 license.Please quote the original link:https://www.liujason.com/article/270.html