Login Main site Create account

16.02.2005 13:36

restore-dpkg-status skript

In cases, where your /var/lib/dpkg/status file is corrupt it's very difficult to restore it properly, so I wrote this little script to rebuild the status file.

Since the first version of this script never really worked, I wrote a new one today which works flawlessly (as far as I could test that on my systems). This script tries to rebuild the status-file by using the package-information (grep from /var/lib/dpkg/available) of all installed packages (ls in /var/lib/dpkg/info/).

Feature Requests, Comments or Bugreports via e-mail, please.

You can download this script here [BASH] and there's also a html-version of the syntax-highlighted code available here [EN].

Please read the comment-section on top of the script before first use!
Currently no comments to this entry (http://tuxx-home.at/archives/2005/02/16/T13_36_14/index.html)

Your comment (HTML tags will be stripped !!):

To verify You are not a bot, type down text from this image.

Your try: