View previous topic :: View next topic |
Author |
Message |
Haifen n00b
Joined: 14 Aug 2005 Posts: 37
|
Posted: Thu Jun 15, 2006 7:26 am Post subject: How do I get a list of all currently installed packages? |
|
|
Hi-
I recently had some filesystem corruption and lost a bunch of files, but I'm not sure which ones they were. I am planning on writing a Bash script that will print out the names of packages that have entries in 'equery f packagename' which don't correspond to files in the filesystem. However, I first need to get a list of all currently installed packages on the system. /var/lib/portage/world seems to be an incomplete list; how can I list every installed package on the system?
-Robin K. |
|
Back to top |
|
|
brims Guru
Joined: 19 Apr 2004 Posts: 492 Location: Arizona
|
|
Back to top |
|
|
Sohail Tux's lil' helper
Joined: 14 May 2005 Posts: 118 Location: Pakistan.
|
Posted: Thu Jun 15, 2006 8:19 am Post subject: |
|
|
Hey, heavily borrowed(from revdep-rebuild) and bit modified version ....
Code: | (cd /var/db/pkg; ls */*/CONTENTS) | sed s:/CONTENTS:: |
regards. |
|
Back to top |
|
|
tomk Bodhisattva
Joined: 23 Sep 2003 Posts: 7221 Location: Sat in front of my computer
|
|
Back to top |
|
|
|