FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

LinkBack Thread Tools
Old 01-31-2010, 03:36 AM
Jeffrey Cao
Default Any way to create a new /var/lib/dpkg/status file for current Debian installation

On 2010-01-29, Tech Geek <techgeek12345@gmail.com> wrote:
> --00504502ce5da6db1a047e5657d2
> Content-Type: text/plain; charset=ISO-8859-1
> So I have been using my current Debian instalaltion for almost a year now
> and over this time I have installed, purged and deinstalled a lot of
> packages. It seems that the status file maintains a list of all the packages
> and their current states that have been ever installed on the system since
> the fresh installation.
> For example:
> debian:/var/lib/dpkg# cat status | grep custom
> Package: linux-image-2.6.28-custom-test1
> Package: linux-image-2.6.28-custom-test2
> Package: linux-image-2.6.29-custom-test1
> Package: linux-image-2.6.29-custom-test2
> The above packages are no longer installed on my system (since last 6
> months) but the dpkg library (status file) stilll keeps track of them.
> So my question is:
> Is there any way by which I can regenerate a fresh "/var/lib/dpkg/status"
> file for all the packages that are currently installed on my systems?
> Nothing is wrong on my system as such but space is premium for me (even 1 MB
> matters) as I am using a compact flash of a relatively small size (approx.
> 512 MB). Another reason is that I am just curios to find out how to
> regenerate it if one has to.

Don't know if there's automatic way. But one way you can try is to write a
script to remove those sections whose "Status" is not "installed" in the
file /var/lib/dpkg/status.


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

Thread Tools

All times are GMT. The time now is 06:37 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org