Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

share|improve this question
add comment

4 Answers

up vote 0 down vote accepted

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

share|improve this answer
add comment

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?.

share|improve this answer
add comment

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.

share|improve this answer
add comment

See this page about viewing logs in ubuntu:

View log files in Ubuntu

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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