Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to List my installed software with emerge
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
palamike
n00b
n00b


Joined: 11 May 2005
Posts: 1

PostPosted: Thu May 12, 2005 8:17 am    Post subject: How to List my installed software with emerge Reply with quote

does emerge have function to list installed software in my computer
Back to top
View user's profile Send private message
zieloo
Veteran
Veteran


Joined: 28 Mar 2004
Posts: 1337

PostPosted: Thu May 12, 2005 8:32 am    Post subject: Reply with quote

There're at least a few ways:
emerge is not necessary to list all the installed packages, use ls intead:P
Code:
ls /var/db/pkg/

will list the packages sorted with categories.

Knowing that you may output it to a file for instance:
Code:
for i in /var/db/pkg/*; do cd $i; ls; cd ..; done > ~/INSTALLED_SOFTWARE.txt


And even sort it alfabetically:
Code:
for i in *; do cd $i; ls; cd ..; done | sort > ~/INSTALLED_SOFTWARE.txt


Then it'll be prety easy (and fast!) to check whether a package is installed:
Code:
cat ~/INSTALLED_SOFTWARE.txt | grep <A_package_you_want_to_check>

Replace <A_package_you_want_to_check> with kde, firefox, xmms, or whatever.

A little bit OT but related:
genlop and eqeury (from gentoolkit) package are worth emerging...:)
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Thu May 12, 2005 1:39 pm    Post subject: Reply with quote

Please see this FAQ: How do I get a list of installed packages?

Moved from Installing Gentoo.
_________________
No-one's more important than the earthworm.
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