* [gentoo-dev] [HOWTO] Fix broken COUNTERs
@ 2003-01-03 15:14 Maik Schreiber
0 siblings, 0 replies; only message in thread
From: Maik Schreiber @ 2003-01-03 15:14 UTC (permalink / raw
To: gentoo-dev
[-- 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 --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-01-03 15:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-03 15:14 [gentoo-dev] [HOWTO] Fix broken COUNTERs Maik Schreiber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox