实例:安装rabbitmq-server
# yum history list rabbitmq-server
Loaded plugins: fastestmirror
ID | Login user | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
16 | root <root> | 2017-06-07 11:39 | Install | 101
history list
其中Altered:101是指依赖的包数
# yum history undo 16 #这样就是完全卸载所有的信赖包