View previous topic :: View next topic |
Author |
Message |
hanzotutu Apprentice
Joined: 10 Apr 2003 Posts: 170
|
Posted: Sat May 03, 2003 4:52 am Post subject: How to list packages that depend on a certan package? |
|
|
I have qt installed in my gentoo. Now I wanna know which packages depend
on qt. Is there anyway I can check?
Thanks. |
|
Back to top |
|
|
dma Guru
Joined: 31 Jan 2003 Posts: 437 Location: Charlotte, NC, USA
|
Posted: Sat May 03, 2003 5:03 am Post subject: |
|
|
Which packages depend on qt depends on whether or not "qt" is set in USE.
(The same system is used for kde, gnome, and lots of other packages.)
Recompiling existing packages to add "qt" support is a little more complicated, although it need not be hard. |
|
Back to top |
|
|
hanzotutu Apprentice
Joined: 10 Apr 2003 Posts: 170
|
Posted: Sat May 03, 2003 5:09 am Post subject: |
|
|
Actually, I wanna delete qt. I have only gnome installed, and the USE flag
is set with "-qt -kde gnome gtk gtk2". |
|
Back to top |
|
|
puddpunk l33t
Joined: 20 Jul 2002 Posts: 681 Location: New Zealand
|
Posted: Sat May 03, 2003 5:13 am Post subject: |
|
|
Not that I know of, there were a few hacks around the forums at one stage, but I think you may have to wait until portage 2.1 and reverse dependancies come along.
Saying that, dep-clean may be worth a look! |
|
Back to top |
|
|
dma Guru
Joined: 31 Jan 2003 Posts: 437 Location: Charlotte, NC, USA
|
Posted: Sat May 03, 2003 5:38 am Post subject: |
|
|
"qpkg --query-deps qt" is the best way I know of to find the packages that CURRENTLY require qt. Some of them can be recompiled to work without qt, others can't.
To find the ones that can be recompiled, my stupid script above can at least give output like this:
Code: | root@laureate:~# usechange
dev-php/mod_php-4.3.1-r1: (/var/db/pkg/dev-php/mod_php-4.3.1-r1/mod_php-4.3.1-r1.ebuild)
Added flags:
Removed flags: qt
dev-php/php-4.3.1-r1: (/var/db/pkg/dev-php/php-4.3.1-r1/php-4.3.1-r1.ebuild)
Added flags:
Removed flags: qt
media-video/avifile-0.7.32.20030219: (/var/db/pkg/media-video/avifile-0.7.32.20030219/avifile-0.7.32.20030219.ebuild)
Added flags: dvd
Removed flags: qt
|
And if you REALLY want qt to be gone, you can do this:
Code: | find `echo $PATH | tr ':' ' '` -type f | xargs ldd | grep -E ':|/qt/' |
and search for "/qt/" in it. You'll find all binaries in your path that link to the qt libs or something.
Code: |
/usr/bin/php:
libqt-mt.so.3 => /usr/qt/3/lib/libqt-mt.so.3 (0x4852b000)
/usr/bin/avicap:
libqt-mt.so.3 => /usr/qt/3/lib/libqt-mt.so.3 (0x41e0f000)
/usr/bin/aviplay:
libqt-mt.so.3 => /usr/qt/3/lib/libqt-mt.so.3 (0x4f267000)
|
You get the idea.
You can use qpgk to find out who owns these files. |
|
Back to top |
|
|
|