View previous topic :: View next topic |
Author |
Message |
katfish Tux's lil' helper
Joined: 14 Nov 2011 Posts: 147
|
Posted: Sun Feb 12, 2012 7:29 am Post subject: world file damage (workarounded) |
|
|
Hi, my world seems to be very empty today.
Checking for package upgrades feels like an almost empty world and hundreds of packages will be pulled in.
Portage advise to run 'emaint --check world' nor 'regenworld' helps.
http://hbox.binarysignals.net/pub/portage
Any ideas?
Thx,
Ingo
Last edited by katfish on Sat Feb 18, 2012 2:16 pm; edited 2 times in total |
|
Back to top |
|
|
epsilon72 Guru
Joined: 20 Sep 2007 Posts: 568
|
Posted: Sun Feb 12, 2012 8:22 am Post subject: |
|
|
Is there anything at all in your world file?
Code: | $ cat /var/lib/portage/world |
|
|
Back to top |
|
|
katfish Tux's lil' helper
Joined: 14 Nov 2011 Posts: 147
|
Posted: Sun Feb 12, 2012 8:32 am Post subject: |
|
|
About 20 packages only. There should be many more! |
|
Back to top |
|
|
jormartr Apprentice
Joined: 02 Jan 2008 Posts: 174
|
Posted: Sun Feb 12, 2012 10:50 am Post subject: |
|
|
Then, try emerge --depclean -p, and take from its output the packages that you explicitly installed, and add them manually.
If there is other way, I do not know it. |
|
Back to top |
|
|
Hypnos Advocate
Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
|
Back to top |
|
|
ultraincognito Guru
Joined: 03 Jun 2011 Posts: 346 Location: Ukraine
|
Posted: Sun Feb 12, 2012 2:51 pm Post subject: |
|
|
You can manually add wanted items to the world file. |
|
Back to top |
|
|
epsilon72 Guru
Joined: 20 Sep 2007 Posts: 568
|
Posted: Mon Feb 13, 2012 1:36 am Post subject: |
|
|
If the package is already installed but not in world, you can have portage add it to the world file with
Code: | $ emerge -u <package names> |
It will add them to the world file in alphabetical order without re-compiling them, assuming they don't need to be upgraded. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21631
|
Posted: Mon Feb 13, 2012 4:43 am Post subject: |
|
|
You could also use emerge --noreplace, which will add it without rebuilding even if it does need an upgrade. |
|
Back to top |
|
|
epsilon72 Guru
Joined: 20 Sep 2007 Posts: 568
|
Posted: Mon Feb 13, 2012 7:54 am Post subject: |
|
|
Hu wrote: | You could also use emerge --noreplace, which will add it without rebuilding even if it does need an upgrade. |
Thanks, that's good to know |
|
Back to top |
|
|
katfish Tux's lil' helper
Joined: 14 Nov 2011 Posts: 147
|
Posted: Sat Feb 18, 2012 8:01 am Post subject: |
|
|
Thanks for the tips mates.
It wasn't only the world file which was damaged, the complete portage db is gone and I had no backup.
"emerge world -eavuDN --keep-going --jobs=2 --complete-graph" runs fine now and should recreate the db. |
|
Back to top |
|
|
katfish Tux's lil' helper
Joined: 14 Nov 2011 Posts: 147
|
Posted: Sat Feb 18, 2012 2:22 pm Post subject: |
|
|
Hi, it's me again.
Remerging world makes portage usable again, but doesn't solve my problem.
Is there any other way to figure out, which packages are installed on my system?
I had a look on portageq but that tool needs a prober portage db to work.... |
|
Back to top |
|
|
epsilon72 Guru
Joined: 20 Sep 2007 Posts: 568
|
Posted: Sat Feb 18, 2012 3:31 pm Post subject: |
|
|
As jormartr said, you could try
Code: | emerge -p --depclean |
and look at the packages it wants to uninstall - out of the ones there, pick out the ones you explicitly want your world file, and then do
Code: | emerge --noreplace <list of wanted packages goes here> |
If your world entries are truly gone then there might not be an easier way around this. Just think back to when you installed your Gentoo system, and what packages you explicitly told portage to install. |
|
Back to top |
|
|
katfish Tux's lil' helper
Joined: 14 Nov 2011 Posts: 147
|
Posted: Sat Feb 18, 2012 3:52 pm Post subject: |
|
|
naah, it's not only the world file. portage keeps track of each packages you emerge.
The DB is normally at /var/db/pkg/ - and mine is gone. So I have remerge everything, it seems. |
|
Back to top |
|
|
|