Created
January 7, 2014 09:33
-
-
Save amenk/8296962 to your computer and use it in GitHub Desktop.
Reinstall purge debian package - usefull for provision scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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