Skip to main content

Completely restore centOS 7 as it was on first installation ( Factory Reset)

# Get all yum commands previously run
yum history list all

# Get the details of the command
yum history info [entry number]

# Undo each command top-down
yum history undo [entry number]

 

You have to be careful not to undo the initial system install!

 

Tags