Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Testing /var/db/pkg/database integrity
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
TheLexx
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2005
Posts: 137
Location: Austin Tx

PostPosted: Sun Jun 30, 2013 12:11 am    Post subject: Testing /var/db/pkg/database integrity Reply with quote

Is there a way to test the /var/db/pkg/ database integrity?

Being am "old-schooler" I have /var on a separate filesystem from /usr. When I tried using some portage commands. I got some complaints, something like "Invalid db entry", but I don't remember the exact wording.

From Finnix, I used fsck and found out that there were flaws in some of my filesystems. I then was able to use fsck & smartctrl to correct the problem and test the drive. I had problems inside both the /usr/portage and /var/db/pkg/ directories. Although the damage inside /usr/portage was much greater. I found it simpler to just delete the portage dir and reinstall from a portage snapshot. Now that I have fixed the effected filesystems, I can use commands like "emerge --pretend evolution" and "equery files wireshark" without error. I am still concerned that there could still be errors within the /var/db/pkg/ database that could turn up while doing later upgrades. Is there a way to test the entire database for bad entries?
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Tue Jul 02, 2013 8:57 am    Post subject: Reply with quote

Being old-school as well as having very little knowledge of portage internals, I'd emerge -e world using saved binary packages if you have any. Otherwise you might attempt to reconstruct your db/pkg directory tree. I have seen there are some scripts around for a couple of years but I guess the recent versions of portage do include such "medical" assistance.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
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