Hi, > ===================================== > export LANG=C > aptitude install pbuilder > cp /etc/pbuilderrc /etc/pbuilderrc.bak > echo >> /etc/pbuilderrc.bak > > ls -l /etc/pbu* > > aptitude purge pbuilder > ls -l /etc/pbu* > ===================================== > > I wanted a backup of my pbuilderrc to survive the purge. For reasons unknown > to > me, /etc/pbuilderrc.bak was removed as well (the 'echo' command is just to > ensure that the files are indeed different).
It looks like a default behavior of dpkg to remove such file on purge lib/dpkg.h: #define REMOVECONFFEXTS "~", ".bak", "%", \ DPKGTEMPEXT, DPKGNEWEXT, DPKGOLDEXT, DPKGDISTEXT used in src/remove.c As documented in Debian Policy (as 'etc.') 6.8. Details of removal and/or configuration purging ---------------------------------------------------- 5. The `conffile's and any backup files (`~'-files, `#*#' files, `%'-files, `.dpkg-{old,new,tmp}', etc.) are removed. regards, junichi -- [EMAIL PROTECTED],netfort.gr.jp} Debian Project -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]