1 |
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 |
2 |
uninstall package versions that just have been installed, or generally versions that are newer than others. |
3 |
|
4 |
To fix this, I've written a little script which you can find at http://cvs.gentoo.org/~blizzy/fix-db.pl |
5 |
|
6 |
It simply recalculates all COUNTERs from other existing /var/db/pkg info (ie. CONTENTS). |
7 |
|
8 |
|
9 |
WARNING: Make sure to backup your /var/db/pkg/* first! |
10 |
You don't need to backup /var/cache/edb/counter (which it also recreates), it can be deleted safely. |
11 |
|
12 |
|
13 |
(Someone please forward this message to gentoo-user. Thanks.) |
14 |
|
15 |
-- |
16 |
Maik Schreiber, Gentoo Linux Developer * http://www.gentoo.org |
17 |
mailto:blizzy@g.o |
18 |
|
19 |
GPG public key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x1F11D713 |
20 |
Key fingerprint: CF19 AFCE 6E3D 5443 9599 18B5 5640 1F11 D713 |