Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]Lord of the strings needed! System missing files
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
^marcs
Apprentice
Apprentice


Joined: 09 Mar 2005
Posts: 169

PostPosted: Fri Apr 01, 2011 9:24 pm    Post subject: [solved]Lord of the strings needed! System missing files Reply with quote

I had a little accident today. Long story short, my system is now missing files and dirs containing "cache" in it's path :>
Can anyone who knows this stuff use "his awk sed regexp etc" magic, and write command to show every package that installed such files?
I tried use equery for this job, but my formatting skill are too poor.


Last edited by ^marcs on Sat Apr 02, 2011 8:24 am; edited 1 time in total
Back to top
View user's profile Send private message
wthrowe
Tux's lil' helper
Tux's lil' helper


Joined: 19 Aug 2009
Posts: 141

PostPosted: Fri Apr 01, 2011 11:03 pm    Post subject: Reply with quote

Probably not the prettiest solution, but this seems to work:
Code:
find /var/db/pkg/ -name CONTENTS | xargs grep -l cache | sed 's#.*pkg/\(.*\)/CONTENTS#\1#'


Hope everything rebuilds ok. Looks like there are some pretty important packages on the list.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Fri Apr 01, 2011 11:15 pm    Post subject: Reply with quote

equery b cache
Back to top
View user's profile Send private message
^marcs
Apprentice
Apprentice


Joined: 09 Mar 2005
Posts: 169

PostPosted: Sat Apr 02, 2011 8:23 am    Post subject: Reply with quote

krinn wrote:
equery b cache

This not check full path for "cache", only files :( but thanks for interest.

wthrowe wrote:
Probably not the prettiest solution, but this seems to work:
Code:
find /var/db/pkg/ -name CONTENTS | xargs grep -l cache | sed 's#.*pkg/\(.*\)/CONTENTS#\1#'

Hope everything rebuilds ok. Looks like there are some pretty important packages on the list.

Indeed it did just fine, system is up and running again with some hacks along the way. Thanks, You saved me a saturday :mrgreen:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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