Undo previous commands Linux

# 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]

Tags