「yum history undo」でできるよ。
#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 ~]#
