使用yum history
查看所有安装历史步骤
[root@zbxserver~]# yum history
Loaded plugins: fastestmirror
ID | Login user | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
15 | root <root> | 2021-08-18 11:03 | Erase | 15 EE
14 | root <root> | 2021-08-18 11:01 | Install | 15
13 | root <root> | 2021-08-18 10:53 | Erase | 17
12 | root <root> | 2021-08-18 10:47 | Erase | 1
11 | root <root> | 2021-08-17 20:08 | Update | 2
10 | root <root> | 2021-08-17 20:07 | Install | 1 EE
9 | root <root> | 2021-08-17 19:05 | Erase | 1
8 | root <root> | 2021-08-17 17:11 | Install | 18 EE
7 | root <root> | 2021-08-17 16:59 | I, U | 36
6 | root <root> | 2021-08-17 16:59 | Install | 2
5 | root <root> | 2021-08-17 16:58 | Install | 10 E<
4 | root <root> | 2021-08-17 16:54 | I, U | 11 >
3 | root <root> | 2021-08-10 11:25 | Install | 2
2 | root <root> | 2021-08-10 11:25 | Install | 10
1 | System <unset> | 2021-08-10 09:48 | Install | 532
history list
id为14的行,安装了15个包,使用undo命令撤销这一次操作,也会删掉这些包
yum history undo 14
如果需要重新执行操作使用redo,就会重新安装这些包
yum history redo 14
网友评论