[sf-lug] dpkg -l | grep ^rc ...

Michael Paoli Michael.Paoli at cal.berkeley.edu
Wed Aug 2 07:05:18 PDT 2017


I'll rather commonly use:
$ dpkg -l | grep -v '^ii '
to view/inspect packages that are in states other than fully and
cleanly installed ... mostly notably rc - but any other oddballs
that show up and probably warrant some kind of attention.

> From: "Rick Moen" <rick at linuxmafia.com>
> Subject: Re: [sf-lug] NEED INFO ABOUT BOOT SECTOR, SPACE LIMITS
> Date: Tue, 1 Aug 2017 00:33:40 -0700

> Here's some other stuff from SVLUG's Web team documentation on
> www.svlug.org.  (I have no doubt it can be spiffed up, as it's a little
> old.)  For annoying historical reasons and against my preference,
> it runs Ubuntu Server.
>
> This will remove all vestigial 'rc' files for removed packages:
>
>    dpkg -l | grep ^rc | awk {'print $2'} | xargs dpkg --purge




More information about the sf-lug mailing list