public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Maik Schreiber <blizzy@gentoo.org>
To: gentoo-dev@gentoo.org
Subject: [gentoo-dev] [HOWTO] Fix broken COUNTERs
Date: Fri, 3 Jan 2003 16:14:22 +0100	[thread overview]
Message-ID: <20030103151421.GA1542@wolverine.hh.iq-computing.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 930 bytes --]

For some funny (yet unknown) reason, the COUNTER files in /var/db/pkg on one of my boxes were messed up. This resulted in Portage wanted to
uninstall package versions that just have been installed, or generally versions that are newer than others.

To fix this, I've written a little script which you can find at http://cvs.gentoo.org/~blizzy/fix-db.pl

It simply recalculates all COUNTERs from other existing /var/db/pkg info (ie. CONTENTS).


WARNING: Make sure to backup your /var/db/pkg/* first!
You don't need to backup /var/cache/edb/counter (which it also recreates), it can be deleted safely.


(Someone please forward this message to gentoo-user. Thanks.)

-- 
Maik Schreiber, Gentoo Linux Developer   *   http://www.gentoo.org
mailto:blizzy@gentoo.org

GPG public key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x1F11D713        
Key fingerprint: CF19 AFCE 6E3D 5443 9599 18B5 5640 1F11 D713

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

                 reply	other threads:[~2003-01-03 15:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030103151421.GA1542@wolverine.hh.iq-computing.de \
    --to=blizzy@gentoo.org \
    --cc=gentoo-dev@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox