Skip to content

Instantly share code, notes, and snippets.

@amenk
Created January 7, 2014 09:33
Show Gist options
  • Select an option

  • Save amenk/8296962 to your computer and use it in GitHub Desktop.

Select an option

Save amenk/8296962 to your computer and use it in GitHub Desktop.
Reinstall purge debian package - usefull for provision scripts
PACKAGE=postfix
debconf-get-selections | grep $PACKAGE >> $PACKAGE.debconf
apt-get purge $PACKAGE
# later / on another machine
debconf-set-selections < `dirname $0`/$PACKAGE.debconf
apt-get install -y $PACKAGE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment