Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[TIP] List All Installed Packages Using eix
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
robbyjo
Guru
Guru


Joined: 06 Apr 2003
Posts: 462

PostPosted: Tue Mar 13, 2007 8:53 pm    Post subject: [TIP] List All Installed Packages Using eix Reply with quote

You'll need eix. If you don't have it installed, type:
Code:
emerge -va eix


The script is as follows:
Code:
eix -Ic | grep "\[[A-Z]" | awk '{print $2}'


You can even customize it to include a full range of eix command, as long as it's output in compact mode:
Code:
eix -c $* | grep "\[[A-Z]" | awk '{print $2}'


It's pretty handy and it saved me some time. I thought I could share it to everyone.
Back to top
View user's profile Send private message
agrypa1
Apprentice
Apprentice


Joined: 31 Mar 2005
Posts: 244

PostPosted: Tue Mar 13, 2007 9:49 pm    Post subject: Reply with quote

Thank you for sharing this method with eix. Do you know how to use eix so it only prints those packages that are stable for a given arch? Let's say eix -c asterisk will print not only stable but also unstable and masked packages. How to single out only stable packages?

thanks
Agryppa
_________________
The first successor of Saint Peter was Linus (a.d. 68-79) - whose namesake became the creator of Linux in our time. Torvalds' middle name is Benedict - the name assumed by the previous Pope who resigned from office.
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2152

PostPosted: Thu Mar 15, 2007 3:22 pm    Post subject: Reply with quote

@robbyjo,

what about
Code:
eix -Ic --format-compact '<category>/<name>'
?
Back to top
View user's profile Send private message
agrypa1
Apprentice
Apprentice


Joined: 31 Mar 2005
Posts: 244

PostPosted: Tue Mar 20, 2007 6:43 am    Post subject: Reply with quote

It cannot work because '-I' stands for installed packages only. I want stable only packages displayed.
I tried different things. It seems it can't be done in a simple manner. Am I the only guy that wants to see stable only packages available for any given search string?

Wierd indeed.

Agryppa
_________________
The first successor of Saint Peter was Linus (a.d. 68-79) - whose namesake became the creator of Linux in our time. Torvalds' middle name is Benedict - the name assumed by the previous Pope who resigned from office.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Tue Mar 20, 2007 1:22 pm    Post subject: Reply with quote

Thanks for this trick :)
Back to top
View user's profile Send private message
bmichaelsen
Veteran
Veteran


Joined: 17 Nov 2002
Posts: 1277
Location: Hamburg, Germany

PostPosted: Tue Mar 20, 2007 2:06 pm    Post subject: Reply with quote

Code:
find /var/db/pkg -name DESCRIPTION |cut -d / -f 5,6|sort

no need for eix
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Tue Mar 20, 2007 5:52 pm    Post subject: Reply with quote

and.. since we're no longer talking about eix:
Code:
qdepends -k DESCRIPTION .
;)
_________________
The End of the Internet!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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