View previous topic :: View next topic |
Author |
Message |
robbyjo Guru
Joined: 06 Apr 2003 Posts: 462
|
Posted: Tue Mar 13, 2007 8:53 pm Post subject: [TIP] List All Installed Packages Using eix |
|
|
You'll need eix. If you don't have it installed, type:
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 |
|
|
agrypa1 Apprentice
Joined: 31 Mar 2005 Posts: 244
|
Posted: Tue Mar 13, 2007 9:49 pm Post subject: |
|
|
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 |
|
|
avx Advocate
Joined: 21 Jun 2004 Posts: 2152
|
Posted: Thu Mar 15, 2007 3:22 pm Post subject: |
|
|
@robbyjo,
what about Code: | eix -Ic --format-compact '<category>/<name>' | ? |
|
Back to top |
|
|
agrypa1 Apprentice
Joined: 31 Mar 2005 Posts: 244
|
Posted: Tue Mar 20, 2007 6:43 am Post subject: |
|
|
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 |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Tue Mar 20, 2007 1:22 pm Post subject: |
|
|
Thanks for this trick |
|
Back to top |
|
|
bmichaelsen Veteran
Joined: 17 Nov 2002 Posts: 1277 Location: Hamburg, Germany
|
Posted: Tue Mar 20, 2007 2:06 pm Post subject: |
|
|
Code: | find /var/db/pkg -name DESCRIPTION |cut -d / -f 5,6|sort |
no need for eix |
|
Back to top |
|
|
truc Advocate
Joined: 25 Jul 2005 Posts: 3199
|
Posted: Tue Mar 20, 2007 5:52 pm Post subject: |
|
|
and.. since we're no longer talking about eix: Code: | qdepends -k DESCRIPTION . | _________________ The End of the Internet! |
|
Back to top |
|
|
|