「yum history undo」でできるよ。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
#wgetをyumでインストール [root@Linux ~]# yum -y install wget Installed: wget.x86_64 0:1.14-15.el7_4.1 Complete! [root@Linux ~]# rpm -qa | grep wget wget-1.14-15.el7_4.1.x86_64 #yum historyで実行IDを確認 [root@Linux ~]# yum history Loaded plugins: product-id, search-disabled-repos, subscription-manager ID | Login user | Date and time | Action(s) | Altered ------------------------------------------------------------------------------- 7 | root <root> | 2018-03-07 22:08 | Install | 1 6 | root <root> | 2018-03-07 22:08 | Update | 1 5 | root <root> | 2018-03-07 22:05 | E, I | 4 4 | root <root> | 2018-03-07 22:03 | I, O | 4 < 3 | <ckknos> | 2017-12-12 13:22 | Install | 106 > 2 | <ckknos> | 2017-12-12 13:20 | I, U | 52 EE 1 | System <unset> | 2017-12-12 12:10 | Install | 386 history list #undoでロールバック [root@Linux ~]# yum history undo 7 -y Removed: wget.x86_64 0:1.14-15.el7_4.1 Complete! #消えている [root@Linux ~]# rpm -qa | grep wget [root@Linux ~]# |