11

I am talking about a program that will show you all the changes you made to the system, in case I have to trouble shoot my system? A CLI one will be better, in case of worst case scenario

Braiam
  • 67,791
  • 32
  • 179
  • 269
david25
  • 2,207

4 Answers4

12

Install the etckeeper package and run (once and for all) sudo etckeeper init. This puts /etc (the directory containing all system configuration file) under version control (Bazaar by default). Under the default configuration, changes are recorded

  • before and after each use of apt-get, aptitude, Synaptic or other apt-based package managers;
  • once per day;
  • and whenever you run sudo etckeeper commit, or bzr commit in /etc; this gives you the opportunity of entering a meaningful commit message.

Etckeeper doesn't record the names of installed packages, but you can find that in /var/log/apt/ and /var/log/dpkg.log (with different sets of details). These files are rotated, so they will disappear after a few months; if you want to keep them longer, this is configured in /etc/logrotate.d/dpkg and /etc/logrotate.d/apt.

For your personal configurtion files, see How to keep “dot files” under version control?.

1

I would be tempted to say copyfs:

NAME
       CopyFS - Versioning File System for FUSE

DESCRIPTION
       CopyFS  is a copy-on-write, versioning file system for FUSE. CopyFS can
       be used to maintain the revision  history  of  a  directory  containing
       files for which you want to track changes, and be able to revert to any
       older version. CopyFS lets you do that by transparently making  backups
       of  each  file that you modify so that you can review and revert to any
       previous revision.

but hardly it could be used for the whole root directory or for anything system (not user) related.

enzotib
  • 93,831
0

See this page about viewing logs in ubuntu:

View log files in Ubuntu

sanderd17
  • 191
0

I am not sure that you can trace all your changes except in looking at your log files ...

If you want to "backup" changes you made to the system (to troubleshoot or reinstall) your can :

  • Export the list of installed packages : dpkg --get-selections > installed_packages
  • copy your /home directory that contains your config files (all files and directories beginning with a .)

If you want to restore your packages : apt-get update && dpkg --set-selections < installed_packages && apt-get upgrade

Later, you'll be able to compare your package list and config files

teo96
  • 1,159