Re: Regenerating /var/lib/dpkg/status

2011-06-20 Thread Andrei POPESCU
On Vi, 17 iun 11, 00:38:02, William Hopkins wrote:
> > 
> > To find packages installed and then removed but not purged:
> > 
> >   grep-status -F Status 'deinstall ok config-files' -ns Package
> 
> OT, but an easier way to do this is dpkg -l | grep ^rc

# aptitude search ~c # inspect the list
# aptitude purge ~c  # get rid of them

Regards,
Andrei
-- 
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic


signature.asc
Description: Digital signature


Re: Regenerating /var/lib/dpkg/status

2011-06-16 Thread William Hopkins
On 06/16/11 at 02:13pm, Wayne Topa wrote:
> On 06/16/2011 12:59 PM, David Baron wrote:
> >This file is full of cruft, stuff left over years ago starting with 
> >knoppix-3.
> >Recent dpkg produce a lot of parse-errors from the file, though they do not
> >effect anything.
> >
> >Is it possible to regenerate this file without all the cruft?
> >
> 
> You might want to install the grep-status package.
> 
> To find packages installed and then removed but not purged:
> 
>   grep-status -F Status 'deinstall ok config-files' -ns Package

OT, but an easier way to do this is dpkg -l | grep ^rc

-- 
Liam


signature.asc
Description: Digital signature


Re: Regenerating /var/lib/dpkg/status

2011-06-16 Thread Wayne Topa

On 06/16/2011 12:59 PM, David Baron wrote:

This file is full of cruft, stuff left over years ago starting with knoppix-3.
Recent dpkg produce a lot of parse-errors from the file, though they do not
effect anything.

Is it possible to regenerate this file without all the cruft?



You might want to install the grep-status package.

To find packages installed and then removed but not purged:

  grep-status -F Status 'deinstall ok config-files' -ns Package

Wayne


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4dfa47d1.6030...@gmail.com



Re: Regenerating /var/lib/dpkg/status

2011-06-16 Thread William Hopkins
On 06/16/11 at 07:59pm, David Baron wrote:
> This file is full of cruft, stuff left over years ago starting with 
> knoppix-3. 
> Recent dpkg produce a lot of parse-errors from the file, though they do not 
> effect anything.
> 
> Is it possible to regenerate this file without all the cruft?

Yes, but it's quite tedious ime. Do you have a valid /var/lib/dpkg/status-old ?
It could save you some headaches.

-- 
Liam


signature.asc
Description: Digital signature


Regenerating /var/lib/dpkg/status

2011-06-16 Thread David Baron
This file is full of cruft, stuff left over years ago starting with knoppix-3. 
Recent dpkg produce a lot of parse-errors from the file, though they do not 
effect anything.

Is it possible to regenerate this file without all the cruft?