How to reset CentOS to default?

David Beroff

Well-known member
Joined
Jun 14, 2016
Messages
885
Best answers
0
Ratings
65 1
Points
28
#1
I did too many changes or configurations on my CentOS and I could not roll back things I did. How can I reset CentOS to default without reinstall VPS? I am looking for a command to do this task through ssh.
 

24x7serverman

Well-known member
Joined
Jul 25, 2017
Messages
652
Best answers
1
Ratings
64 6
Points
28
#2
If you have install it using YUM installation then please follow below steps to reset CentOS

1. List down all the commands which you have fired by history command - yum history list all
2. Get the details of each command - yum history info [entry number]
3. Undo all the commands which you have entered from top to bottom - yum history undo [entry number]

Please make sure, you will not undo the initial system install. Hope this will help you. :)
 
Joined
Jan 15, 2018
Messages
39
Best answers
0
Ratings
2 1
Points
8
#4
Unfortunately the most correct thing is to install one more VPS, there is installed a pure Centos and transfer the data there. Even if you cancel the changes, there will be a lot of dirt in the system.
 
Older Threads
Replies
2
Views
147
Replies
7
Views
334
Replies
5
Views
322
Replies
8
Views
1,251
Newer Threads
Replies
15
Views
1,675
Replies
2
Views
1,062
Replies
6
Views
204
Latest Threads
Replies
1
Views
2
Replies
0
Views
1
Replies
0
Views
2
Similar Threads
Replies
5
Views
120
Replies
4
Views
952
Replies
6
Views
1,696
Replies
1
Views
646

Latest Hosting OffersNew Reviews

Sponsors

Latest Blog ArticlesMost Viewed Threads