一行代码搞定,如果需要手动确认的话把-y参数去掉
yum history list|awk '$1 ~ /[0-9]+/ {print $1}'| while read a; do yum history undo -y $a; done
Refresh | This website www.liujason.com/article/270.html is currently offline. Cloudflare's Always Online™ shows a snapshot of this web page from the Internet Archive's Wayback Machine. To check for the live version, click Refresh. |
一行代码搞定,如果需要手动确认的话把-y参数去掉
yum history list|awk '$1 ~ /[0-9]+/ {print $1}'| while read a; do yum history undo -y $a; done