Conghist: take daily snapshots of /etc
Note: etckeeper (available in Fedora and EPEL) is a better solution that I use now. To get easy information about the installed package set in the git history, I configure it with /etc/etckeeper/post-install.d/10rpm-qa:
#!/bin/bash rpm -qa --qf '%{name}-%{version}-%{release}.%{arch}\n' | LC_ALL=C.utf8 sort > /etc/rpm-qa
And make it executable with
# chmod a+x /etc/etckeeper/post-install.d/10rpm-qa
Conghist is a tool which will take daily snapshots of /etc or any other configured directory, and put that snapshot into a git repository. It will also put sorted list of installed rpms into /etc/rpm-qa file, so the git history will also have package history in it.
Please note that any attributes and extended attributes, including SELinux context, will be lost in the git repository.
To install conghist on Fedora, RHEL, or CentOS and get the latest updates, configure the yum repository by creating the following (or similar) /etc/yum.repos.d/conghist.repo file:
[conghist] name=conghist baseurl=http://www.adelton.com/conghist/yum/ enabled=1 gpgcheck=0and then run
# yum install conghist