Skip to content

Instantly share code, notes, and snippets.

@tallesairan
Last active October 4, 2017 17:19
Show Gist options
  • Save tallesairan/c067a2ff5f074d35f7d42ce7cb23e0c9 to your computer and use it in GitHub Desktop.
Save tallesairan/c067a2ff5f074d35f7d42ce7cb23e0c9 to your computer and use it in GitHub Desktop.
restore centos to inital install
If everything was installed via the yum package manager, you can undo previous commands:
# 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]
after the comands remove the traces and trash :
find / -name .DS_Store -print0 | xargs -0 rm -rf
---
https://gist.github.com/tallesairan/e209d70bbaf7adabd63bcd4a5470ed75
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment