Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Complete list of installed programs?
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
jhunholz
Apprentice
Apprentice


Joined: 29 Apr 2004
Posts: 154
Location: Raleigh, NC

PostPosted: Wed May 18, 2005 10:34 pm    Post subject: Complete list of installed programs? Reply with quote

Is there a way to get a complete list of everything that has been emerged (both from the user as well as dependencies?). /var/db/portage/world only shows the packages I request, so how can I get the dependencies shown in a list as well? Thanks!
_________________
Member of the Gentoo Right Wing Conspiracy
Back to top
View user's profile Send private message
JRV
Apprentice
Apprentice


Joined: 10 Jan 2004
Posts: 291

PostPosted: Wed May 18, 2005 10:40 pm    Post subject: Re: Complete list of installed programs? Reply with quote

jholz7 wrote:
Is there a way to get a complete list of everything that has been emerged?


Code:
qpkg -I


"qpkg" is in "app-portage/gentoolkit".

Greets,
Julius
Back to top
View user's profile Send private message
Hikaru79
Tux's lil' helper
Tux's lil' helper


Joined: 07 Apr 2005
Posts: 120
Location: Windsor, Ontario (Canada)

PostPosted: Wed May 18, 2005 11:07 pm    Post subject: Reply with quote

You could also emerge a Portage frontend like Porthole and then filter it by "View Installed Packages". That will give you a nice prettyful chart with descriptions and stuff!
_________________
"The simplest schoolboy is now familiar with facts for which Archimedes would have sacrificed his life."
--Ernest Renan
Back to top
View user's profile Send private message
dmitchell
Veteran
Veteran


Joined: 17 May 2003
Posts: 1159
Location: Austin, Texas

PostPosted: Thu May 19, 2005 5:38 am    Post subject: Reply with quote

If you haven't already, emerge gentoolkit. Then equery list > pkgs. Alternatively, find /var/db/pkg -iname *.ebuild | cut -f5,6 -d/ | sort > pkgs.

Try searching first next time--there must be hundreds of threads covering this.
_________________
Your argument is invalid.
Back to top
View user's profile Send private message
chrib
Guru
Guru


Joined: 27 Sep 2003
Posts: 558
Location: Berlin, Germany

PostPosted: Thu May 19, 2005 5:52 am    Post subject: Re: Complete list of installed programs? Reply with quote

JRV wrote:
jholz7 wrote:
Is there a way to get a complete list of everything that has been emerged?


Code:
qpkg -I


"qpkg" is in "app-portage/gentoolkit".


qpkg is deprecated and will be removed from gentoolkit.
_________________
Der Mensch kämpft um zu überleben, und nicht, um zu Grunde zu gehen. - Paulo Coelho
It is the end of all hope. To lose the child, the faith. To end all the innocence. To be someone like me. - Nightwish - End of all hope
Back to top
View user's profile Send private message
zsoltika
l33t
l33t


Joined: 13 Nov 2003
Posts: 634
Location: Budapest, Hungary

PostPosted: Thu May 19, 2005 6:14 am    Post subject: Re: Complete list of installed programs? Reply with quote

chrib wrote:
JRV wrote:
jholz7 wrote:
Is there a way to get a complete list of everything that has been emerged?

Code:
qpkg -I

"qpkg" is in "app-portage/gentoolkit".

qpkg is deprecated and will be removed from gentoolkit.

But it's still there and hopefully it won't be removed in the near future 'cause equery is damn slow, and lacks some really needed function (depends) ...
Back to top
View user's profile Send private message
rhill
Retired Dev
Retired Dev


Joined: 22 Oct 2004
Posts: 1629
Location: sk.ca

PostPosted: Thu May 19, 2005 7:38 am    Post subject: Reply with quote

can't remember where i got this, but it'll work w/o needing qpkg.

Code:
#!/usr/bin/env python

import os, sys
from os.path import join
from output import green, blue
vartree = "/var/db/pkg"
catlist = os.listdir(vartree)
catlist.sort()
for item in catlist:
    sys.stdout.write(green(item+"\n"))
    pkglist = os.listdir(join(vartree, item))
    for elem in pkglist:
        sys.stdout.write(blue(elem+"\n"))

_________________
by design, by neglect
for a fact or just for effect
Back to top
View user's profile Send private message
syouth
Apprentice
Apprentice


Joined: 18 Sep 2004
Posts: 275

PostPosted: Thu May 19, 2005 7:39 am    Post subject: Reply with quote

One possible solution is "equery" in "gentoolkit":
Code:
#equery list


Another solution is "eix". It runs fast because it uses db to keep portage data, thus update to that is needed:
Code:
# update-eix
# eix -I
Back to top
View user's profile Send private message
chrib
Guru
Guru


Joined: 27 Sep 2003
Posts: 558
Location: Berlin, Germany

PostPosted: Thu May 19, 2005 7:53 am    Post subject: Re: Complete list of installed programs? Reply with quote

zsoltika wrote:
chrib wrote:
JRV wrote:
jholz7 wrote:
Is there a way to get a complete list of everything that has been emerged?

Code:
qpkg -I

"qpkg" is in "app-portage/gentoolkit".

qpkg is deprecated and will be removed from gentoolkit.

But it's still there and hopefully it won't be removed in the near future 'cause equery is damn slow, and lacks some really needed function (depends) ...


Yes, I know it's still there, but it could be removed in the next version. I also know that equery is painfully slow and lacks functions, but hey, it's open source. Patch or enhance it and then file a bugreport. :)
_________________
Der Mensch kämpft um zu überleben, und nicht, um zu Grunde zu gehen. - Paulo Coelho
It is the end of all hope. To lose the child, the faith. To end all the innocence. To be someone like me. - Nightwish - End of all hope
Back to top
View user's profile Send private message
JRV
Apprentice
Apprentice


Joined: 10 Jan 2004
Posts: 291

PostPosted: Thu May 19, 2005 8:04 am    Post subject: Re: Complete list of installed programs? Reply with quote

chrib wrote:
Yes, I know it's still there, but it could be removed in the next version. I also know that equery is painfully slow and lacks functions, but hey, it's open source.


So why is it deprecating something that worked much better? Was qpkg's much faster mechanism too "dirty" or why was a much slower way to do things favored?

Greets,
Julius
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4923
Location: Gothenburg, Sweden

PostPosted: Thu May 19, 2005 8:26 am    Post subject: Reply with quote

This is a frequently asked question... Not only is there an FAQ for it, but also loads of other threads to be found if you search for "qpkg deprecated", for instance.

Moved from Portage & Programming.
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.freenode.net
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