一行代码搞定,如果需要手动确认的话把-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 Like (0)