I am running cpanel on my CentOS VPS. but now i need to uninstall cpanel from my server and trying to uninstall it. but according to experts its very very difficult to do that because cpanel/WHM make huge changes in OS core.

so now i just want to reset the CentOS (just like factory reset) and want to know if its possible to do that?

Note: I have only SSH access


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]

Just be careful not to undo the initial system install!

| improve this answer | |

For now I think it is not possible.

For the future you may consider using rear (RElax And Recover). This tool is included in centos distro , and permits reliable and easy full backup-restore operations. So that in case of disaster (hw or other), you can restore your OS in a few minutes.

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.