[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Protect directory/file ?

Hi Ondrej,

Ondrej Balaz <ondra@blami.net> wrote:
> exists any way to protect directories and files against apt/dpkg changes ?
> I'm using lot of modifications to make my Debian perfect for me (for example
> modified init scripts, udev rules or my own /etc/apache2 layout).

You can add force-confold in /etc/dpkg/dpkg.cfg to prevent replacing of
changed conffiles with the new one from the package. After an upgrade
you must walk through /etc and check all *.dpkg-* files.

Outside of /etc, e.g. for files in /usr/bin this doesn't work. For this
you should put your files into /usr/local/bin.

HTH, Jörg.
Der Klügere gibt nach …
… deshalb regieren die Dummen die Welt!

Reply to: