Peter Hessler <phess...@theapt.org> wrote:

> On 2018 Dec 13 (Thu) at 11:20:37 +0100 (+0100), Sebastian Benoit wrote:
> :I'm cleaning up things on a system, and deleting quite a few packages.
> :
> :For example cups. Because its no longer needed.
> :
> :--- -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?
> :
> :Is there some option that i dont know of to automatically remove all the
> :things?
> :
> :I know it might be dangerous to do that, but copy&paste of tens of commands
> :is also easy to mess up.
> :
> :/B.
> :
> 
> pkg_delete -c ought to do what you want.

Only if run from the start.  If you do it afterwards, it is too late.

I think there are two solutions.

(1) change the printing, so that it is cut-and-paste friendly.

--- -cups-2.2.8p1 -------------------
You should also remove files:
    rm -rf /etc/cups/*.conf.O /var/log/cups /etc/cups/cupsd.conf 
/etc/cups/classes.conf /etc/cups/printers.conf /etc/cups/subscriptions.conf 
/etc/cups/snmp.conf /var/cache/cups /var/spool/cups

(2) generate a .cups-2.2.8p1 package which contains the removal information
so it isn't lost, so that a pkg_delete -a or pkg_delete -c .cups-2.2.8p1 can
do the job.

Reply via email to