How to reset CentOS to default?

David Beroff

Well-known member
Registered
Joined
Jun 14, 2016
Messages
1,510
Points
63
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
Hosting Provider
Registered
Joined
Jul 25, 2017
Messages
651
Points
28
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. :)
 

well-web

Member
Registered
Joined
Jan 15, 2018
Messages
64
Points
8
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
2,459
Replies
7
Views
3,752
Replies
5
Views
4,074
Replies
8
Views
4,210
Newer Threads
Replies
15
Views
7,486
Replies
2
Views
3,335
Replies
7
Views
4,007
Replies
5
Views
11,303
Latest Threads
Replies
1
Views
147
Replies
1
Views
244
Replies
0
Views
62
Replies
0
Views
74
Replies
1
Views
177
Recommended Threads
Replies
18
Views
20,239
Replies
28
Views
16,845
Replies
0
Views
2,306
Replies
13
Views
28,737
m19
Similar Threads
Replies
5
Views
13,172
Replies
4
Views
8,311
Replies
6
Views
5,715
Replies
1
Views
2,761

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top