Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do I get a list of all currently installed packages?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Haifen
n00b
n00b


Joined: 14 Aug 2005
Posts: 37

PostPosted: Thu Jun 15, 2006 7:26 am    Post subject: How do I get a list of all currently installed packages? Reply with quote

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


Joined: 19 Apr 2004
Posts: 492
Location: Arizona

PostPosted: Thu Jun 15, 2006 7:28 am    Post subject: Reply with quote

Code:
equery l

_________________
Adopt an Unanswered Post
Report violations, duplicates, misplaced, etc
Back to top
View user's profile Send private message
Sohail
Tux's lil' helper
Tux's lil' helper


Joined: 14 May 2005
Posts: 118
Location: Pakistan.

PostPosted: Thu Jun 15, 2006 8:19 am    Post subject: Reply with quote

Hey, heavily borrowed(from revdep-rebuild) and bit modified version ....

Code:
(cd /var/db/pkg; ls */*/CONTENTS) | sed s:/CONTENTS::


regards.
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Thu Jun 15, 2006 8:23 am    Post subject: Reply with quote

Moved from Portage & Programming to Duplicate Threads, please see this FAQ: GF3: How do I get a list of installed packages?.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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