[Petter Reinholdtsen]
> A quick way out is to reinstall all the packages with scripts in
> /etc/init.d/.

This way proved to be too quick, trying to reinstall removed but not
purged packages with init.d scripts left behind in /etc/init.d/.  I
recommend using something like this instead, to only reinstall the
installed packages:

    for p in `dpkg -S /etc/init.d/*|cut -d: -f1|sort -u`; do
      if dpkg --get-selections $p | grep -qw install ; then
        echo reinstalling $p
        apt-get --reinstall install $p
      fi
    done

I dropped the '-y' flag too, to leave more manual control over the
process, after a report from a user getting a lot of KDE removed when
the removed fam package tried to reinstall and throw out KDE.

Friendly,
-- 
Petter Reinholdtsen


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to