Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Frequently Asked Questions
  • Search

GF16: Corrupt or empty world file, what do I do?

Some of the most commonly heard questions in the Gentoo Community, along with answers.
Post Reply
Advanced search
1 post • Page 1 of 1
Author
Message
tomk
Bodhisattva
Bodhisattva
User avatar
Posts: 7221
Joined: Tue Sep 23, 2003 1:41 pm
Location: Sat in front of my computer

GF16: Corrupt or empty world file, what do I do?

  • Quote

Post by tomk » Sat Feb 14, 2004 3:04 pm

Navigation: [Gentoo Fundamentals] [Table of Contents]

If you notice that packages are missing when you run

Code: Select all

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: Select all

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: Select all

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: Select all

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 | [topic=119906]Answer[/topic] | [topic=28820]Report[/topic] | [topic=160179]Strip[/topic]
Top
Post Reply
1 post • Page 1 of 1

Return to “Frequently Asked Questions”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic