Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

What exactly is the "world" file?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
afabbro
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 92
Joined: Sun Jan 12, 2003 10:08 pm
Location: Portland, OR

What exactly is the "world" file?

  • Quote

Post by afabbro » Fri Jan 20, 2006 6:51 pm

I looked through the portage docs but couldn't find a good definition of what the "world" file is.

There's one in /var/lib/portage/world and one in /var/cache/edb/world. What is the difference?

When I do an emerge -up world, is this file referenced somehow?

If I delete it, what happens? Can I rebuild it?

Just curious. I read somewhere that doing a qpkg -nc -I (qpkg is deprecated now, I know) into the world file and then an emerge -u world updates more packages...I don't really understand why that is.
Top
HermanR
Apprentice
Apprentice
User avatar
Posts: 293
Joined: Thu Jan 08, 2004 8:41 pm
Location: The Netherlands

  • Quote

Post by HermanR » Fri Jan 20, 2006 9:10 pm

The world file stores the packages which you have installed (emerged) yourself as opposed to any packages that were installed through dependencies. The file /var/lib/portage/world is the actual world file; /var/cache/edb/world is the old location used in previous versions of portage (as far as I know, you can delete this file).

If you do 'emerge -u world' the packages in your world file will be updated with possible new (stable) versions. In the process, any required dependencies will also be pulled in. Any other dependencies will not be updated however, even when there are more recent (stable) versions in portage. For this you can use 'emerge -u --deep world'.

You'll understand that it would not be wise to delete the world file. :-) In some cases, however, you can delete single entries from the file if you want to speed things up by keeping your world file as small as possible. (For example: if you have done 'emerge digikam digikamimageplugins', both packages will be in your world file. But in fact only digikamimageplugins is required because it depends on digikam.) But unless you absolutely know what you're doing, I advise you to stay away from the world file.
Gentoo (64 bits) on AMD64 X2 4400+, MSI K8T Neo2-FIR, 2 Gb RAM, 320 + 160 Gb SATA, nVidia Geforce 6600
Top
Eidi
Tux's lil' helper
Tux's lil' helper
Posts: 82
Joined: Thu Sep 02, 2004 2:08 am
Location: Arizona
Contact:
Contact Eidi
Website

  • Quote

Post by Eidi » Sun Jan 22, 2006 5:04 am

I just wanted to say thanks for saying where the world file is. Just searched and wanted to know, and if it was located within /usr/portage, I would've been screwed. :-P So, thanks.

<on-topic>

How would keeping your world file as small as possible speed portage up?
Top
HermanR
Apprentice
Apprentice
User avatar
Posts: 293
Joined: Thu Jan 08, 2004 8:41 pm
Location: The Netherlands

  • Quote

Post by HermanR » Sun Jan 22, 2006 8:02 pm

Eidi wrote:How would keeping your world file as small as possible speed portage up?
Well, if you just do an 'emerge -u world', it will have to check less packages. That will not be the cause of a major speedup of an emerge-cycle, but it may be of use to some people. There may also be some speedups 'under the hood' of portage, but I wouldn't know.
Gentoo (64 bits) on AMD64 X2 4400+, MSI K8T Neo2-FIR, 2 Gb RAM, 320 + 160 Gb SATA, nVidia Geforce 6600
Top
drwook
Veteran
Veteran
Posts: 1324
Joined: Wed Mar 30, 2005 3:02 pm
Location: London

  • Quote

Post by drwook » Sun Jan 22, 2006 9:36 pm

Basically just dependancy checking. I wouldn't go hand editing the world file unless you're certain you know what you're doing. I have been known to, but it took a while before I was comfortable enough to do so.

Other thing is, there may be some packages that are in there (you explicitly emerged), but are both dependancies of something else you have installed & you're not too bothered about being up to date with it. Most people do an 'emerge --deep --update world' or equivalent much less often than a simple 'emerge --update world' - so the second command would be a lot 'lighter' with a smaller world file. No real effect on the first command.

Also don't remove world file entries for anything you need/want to keep unless something else depends on it & will stay on your system! Otherwise you could end out in a sticky situation after a --depclean.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Portage & Programming”

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