View previous topic :: View next topic |
Author |
Message |
robbyjo Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
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 |
|
![](templates/gentoo/images/spacer.gif) |
agrypa1 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/1111122895426e28ea2e7e3.gif)
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 |
|
![](templates/gentoo/images/spacer.gif) |
avx Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/22194535045e47d317d4f5.jpg)
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 |
|
![](templates/gentoo/images/spacer.gif) |
agrypa1 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/1111122895426e28ea2e7e3.gif)
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 |
|
![](templates/gentoo/images/spacer.gif) |
d2_racing Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/1190120345458c61e31ec3c.jpg)
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Tue Mar 20, 2007 1:22 pm Post subject: |
|
|
Thanks for this trick ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bmichaelsen Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/8206921454311a2208aadc.jpg)
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 |
|
![](templates/gentoo/images/spacer.gif) |
truc Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/128604942846f4cd99d01cb.jpg)
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 . | ![Wink ;)](images/smiles/icon_wink.gif) _________________ The End of the Internet! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|