View previous topic :: View next topic |
Author |
Message |
^marcs Apprentice
Joined: 09 Mar 2005 Posts: 169
|
Posted: Fri Apr 01, 2011 9:24 pm Post subject: [solved]Lord of the strings needed! System missing files |
|
|
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 |
|
|
wthrowe Tux's lil' helper
Joined: 19 Aug 2009 Posts: 141
|
Posted: Fri Apr 01, 2011 11:03 pm Post subject: |
|
|
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 |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Fri Apr 01, 2011 11:15 pm Post subject: |
|
|
equery b cache |
|
Back to top |
|
|
^marcs Apprentice
Joined: 09 Mar 2005 Posts: 169
|
Posted: Sat Apr 02, 2011 8:23 am Post subject: |
|
|
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 |
|
Back to top |
|
|
|