Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
world file damage (workarounded)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
katfish
Tux's lil' helper
Tux's lil' helper


Joined: 14 Nov 2011
Posts: 147

PostPosted: Sun Feb 12, 2012 7:29 am    Post subject: world file damage (workarounded) Reply with quote

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
View user's profile Send private message
epsilon72
Guru
Guru


Joined: 20 Sep 2007
Posts: 568

PostPosted: Sun Feb 12, 2012 8:22 am    Post subject: Reply with quote

Is there anything at all in your world file?
Code:
$ cat /var/lib/portage/world
Back to top
View user's profile Send private message
katfish
Tux's lil' helper
Tux's lil' helper


Joined: 14 Nov 2011
Posts: 147

PostPosted: Sun Feb 12, 2012 8:32 am    Post subject: Reply with quote

About 20 packages only. There should be many more!
Back to top
View user's profile Send private message
jormartr
Apprentice
Apprentice


Joined: 02 Jan 2008
Posts: 174

PostPosted: Sun Feb 12, 2012 10:50 am    Post subject: Reply with quote

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
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Sun Feb 12, 2012 12:05 pm    Post subject: Reply with quote

You don't have a backup?
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
ultraincognito
Guru
Guru


Joined: 03 Jun 2011
Posts: 346
Location: Ukraine

PostPosted: Sun Feb 12, 2012 2:51 pm    Post subject: Reply with quote

You can manually add wanted items to the world file.
Back to top
View user's profile Send private message
epsilon72
Guru
Guru


Joined: 20 Sep 2007
Posts: 568

PostPosted: Mon Feb 13, 2012 1:36 am    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21631

PostPosted: Mon Feb 13, 2012 4:43 am    Post subject: Reply with quote

You could also use emerge --noreplace, which will add it without rebuilding even if it does need an upgrade.
Back to top
View user's profile Send private message
epsilon72
Guru
Guru


Joined: 20 Sep 2007
Posts: 568

PostPosted: Mon Feb 13, 2012 7:54 am    Post subject: Reply with quote

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 :D
Back to top
View user's profile Send private message
katfish
Tux's lil' helper
Tux's lil' helper


Joined: 14 Nov 2011
Posts: 147

PostPosted: Sat Feb 18, 2012 8:01 am    Post subject: Reply with quote

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
View user's profile Send private message
katfish
Tux's lil' helper
Tux's lil' helper


Joined: 14 Nov 2011
Posts: 147

PostPosted: Sat Feb 18, 2012 2:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
epsilon72
Guru
Guru


Joined: 20 Sep 2007
Posts: 568

PostPosted: Sat Feb 18, 2012 3:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
katfish
Tux's lil' helper
Tux's lil' helper


Joined: 14 Nov 2011
Posts: 147

PostPosted: Sat Feb 18, 2012 3:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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