I recently installed Linux on a laptop and now wish to roll-back to the state it was in when I first installed it. Is that doable? If so how can I do so?
|
The easiest way to roll back to installation point would be to re-install it. If you are just referring to the desktop environment, that can be reset to default by deleting the various configuration folders in your home directory. For example, some of the folders you would want to delete in a typical ubuntu based installation are:
In a KDE installation, the following would reset everything:
|
|||||
|
|
The short answer is no unless you took a backup immediately after you installed. However what problem are you tying to solve? Which version of which distribution are you talking about? There are several areas or places you might want to act depedning on your problem. If it is user settings you are talking about then these are stored in the users home directory, so deleting and recreating the user ensuring the users home directory was erased would take care of resetting the users settings. Obviously you need to keep a copy of stuff you want to save. In terms of system settings the vast majority of this is kept in /etc/ so there may be places here you want to act by removing config files and reinstalling underlying packages. A lot of information that is gathered and updated during run i.e. Logs and databases is under /var. Some of this can be safely deleted depending on which distribution you have. Then there is the software itself. It might not even be desirable to roll this back to the installed state as most distributions offer you the possibilty to update to the latest version of packages that have had security and other fixes applied |
|||
|
|
It is hard to trace every changes made to filesystem. What about using the same installation media , installing onto another harddisk, and diff the two root directories? |
||||
|
|
|
Yes, this is possible through the use of the Logical Volume Manager and snapshots. What you'd do is take a snapshot at the 'known-good' state. Here's a howto on using the snapshots. Note that in most cases, using a virtual environment is going to be easier. |
|||
|
|