Jeff Grossman wrote:

Richard Fish <[EMAIL PROTECTED]> wrote:

On 11/26/05, Jeff Grossman <[EMAIL PROTECTED]> wrote:
I have just realized about programs that can be installed in slots.
Is there a way for me to find out what programs are installed in more
than one slot on my computer?  Can I tell if a particular program in a
slot is still needed?
"emerge --prune --pretend world" will tell you all packages that have
more than one version installed (ie. slotted).

As for finding out whether a particular version of a slotted package
is still needed or not, well, you could do:

emerge --prune <pkg>
emerge -Dv world
revdep-rebuild

But the above is a bit dangerous, and could break your system.  Be careful.

I like the old 'etcat'. You can still find it on your system at /usr/share/doc/gentoolkit-<version>/deprecated/etcat/etcat.

I use 'etcat versions <pkg>' all the time. The number in parentheses is the slot that package is in. E.G. for php:

[ Results for search key           : php ]
[ Candidate applications found : 13 ]

Only printing found installed programs.

*  dev-lang/php :
       [ ~ ] 4.3.11-r4 (4)
       [ ~ ] 4.4.0-r4 (4)
       [  I] 4.4.1-r2 (4)
       [M~ ] 5.0.4-r4 (5)
       [M~ ] 5.0.5-r4 (5)
*  dev-php/php :
       [   ] 4.3.11 (0)
       [   ] 4.3.11-r1 (0)
       [   ] 4.3.11-r3 (0)
       [   ] 4.3.11-r4 (0)
       [   ] 4.4.0 (0)
       [   ] 4.4.0-r1 (0)
       [   ] 4.4.0-r3 (0)
       [   ] 4.4.0-r4 (0)

This shows that I have ver 4.4.1-r2 installed on my system in slot 4.

I haven't found an equivalent w/ equery. I create a symbolic link from the etcat location above to /usr/local/bin. However, everytime gentoolkit is updated, I have to update the link.

Cheers,
Kevin
--
gentoo-user@gentoo.org mailing list

Reply via email to