Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GF16: Corrupt or empty world file, what do I do?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Frequently Asked Questions
View previous topic :: View next topic  
Author Message
tomk
Administrator
Administrator


Joined: 23 Sep 2003
Posts: 7219
Location: Sat in front of my computer

PostPosted: Sat Feb 14, 2004 3:04 pm    Post subject: GF16: Corrupt or empty world file, what do I do? Reply with quote

Navigation: [Gentoo Fundamentals] [Table of Contents]

If you notice that packages are missing when you run

Code:
emerge -uDp world


check that the world file (in /var/cache/edb/ for portage-2.0.50, /var/lib/portage for portage-2.0.51) contains those packages. If it doesn't or is empty you can fix it by running this as root:

Code:
regenworld


This uses your /var/log/emerge.log to regenerate your world file. It may not work if the log has been deleted or you are using an unstable version of portage. If this is the case, there is a workaround using qpkg which is part of gentoolkit*.

Code:
qpkg -I -nc > /var/cache/edb/world  # portage-2.0.50
qpkg -I -nc > /var/lib/portage/world  # portage-2.0.51


This will create a new world file which lists all installed packages. You should edit the world file afterwards to remove unnecessary packages, this can be done with the dep script or manually.

* Note that qpkg is deprecated in favour of equery. However, the output of the equivalent equery command
Code:
equery -C -q list

is not compatible with the world file as it also gives the version number of the installed packages. You can find qpkg in /usr/lib/gentoolkit/bin/ and /usr/share/doc/gentoolkit-<version>/deprecated/qpkg/ if you have gentoolkit-0.2.0 and gentookit-0.2.1, respectively.

2004-10-21: Portage-2.0.51 updates
2005-12-22: Added deprecation notice of qpkg --kallamej

_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Frequently Asked Questions All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum