Friday, December 14, 2018

Re: uninstalling packages

On 2018/12/14 11:36, Craig Skinner wrote:
> On Thu, 13 Dec 2018 11:20:37 +0100 Sebastian Benoit wrote:
> > --- -cups-2.2.8p1 -------------------
> > You should also run rm -rf /etc/cups/*.conf.O /var/log/cups
> > You should also remove /etc/cups/cupsd.conf (which was modified)
> > You should also remove /etc/cups/classes.conf (which was modified)
> > You should also remove /etc/cups/printers.conf (which was modified)
> > You should also remove /etc/cups/subscriptions.conf (which was modified)
> > You should also remove /etc/cups/snmp.conf (which was modified)
> > You should also run rm -rf /var/cache/cups
> > You should also run rm -rf /var/spool/cups
> >
> > If I want to actually delete all that stuff, thats a lot of
> > copy&paste. Are we actually expecting users to do that?
>
> It is trying to help by not deleting modified, cached & spooled
> files/logs. If /etc/cups/snmp.conf wasn't modified, it would already
> have been removed. The remove list depends on what the admin changed,
> which varies from machine to machine.
>
> If everything is backed up and you want to re-install it later,
> everything can be nuked. Simple version:
>
> rm -rf /etc/cups/ /var/cache/cups/ /var/log/cups/ /var/spool/cups/
>
> or even:
>
> rm -rf /etc/cups/ /var/{cache,log,spool}/cups/

To get from "You should also remove /etc/cups/cupsd.conf (which was
modified)" to "rm /etc/cups/cupsd.conf" or "rm -rf /etc/cups" requires
error-prone copy/paste/edit or retyping. The point is that the displayed
text could be given in a more ready-to-use form.

What I usually do in this situation is reinstall the package, then
remove it again with pkg_delete -c. Bit of a waste of bandwidth and
there's room for improvement in the tools, but that is effective.

No comments:

Post a Comment