美文网首页
Linux yum卸载软件+所有依赖包

Linux yum卸载软件+所有依赖包

作者: 无味wy | 来源:发表于2021-08-19 15:53 被阅读0次

使用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

相关文章

网友评论

      本文标题:Linux yum卸载软件+所有依赖包

      本文链接:https://www.haomeiwen.com/subject/rclgbltx.html