Saltycrane logo

SaltyCrane Blog

Notes on Python, Django, and web development on Ubuntu Linux

    

Versioning /etc with etckeeper and git

Update 2011-08-13: I switched to a custom apt-get wrapper so that I can keep a versioned list of installed packages and generally because I have NIH. (I had no problems with etckeeper). My apt-get wrapper is on here on github

  • $ sudo apt-get install etckeeper 
    
  • Edit /etc/etckeeper/etckeeper.conf. Change VCS from "bzr" to "git"
  • Initialize etckeeper and git repo
    $ cd /etc
    $ sudo etckeeper init 
    $ sudo git status 
    $ sudo git commit -m 'Initial commit' 
    
  • Done.

Post a comment

Required
Required, but not displayed
Optional

Format using Markdown. (No HTML.)
  • Code blocks: prefix each line by at least 4 spaces or 1 tab (and a blank line before and after)
  • Code span: surround with backticks
  • Blockquotes: prefix lines to be quoted with >
  • Links: <URL>
  • Links w/ description: [description](URL)
Created with Django | Hosted by Linode