1 |
Blake Watters wrote: |
2 |
|
3 |
> On Mon, 3 Feb 2003 16:07:47 +0100 gabor <gabor@××××.net> wrote: |
4 |
>> i'm searching for a feature of the mandrake-urpmi system: when i do |
5 |
>> a "urpme gtk" on mandrake, it not only uninstalls gtk, but also |
6 |
>> removes all the packages that depend on gtk... so i don't have any |
7 |
>> broken dependencies on my computer. |
8 |
>> |
9 |
>> as far as i know a simple "emerge unmerge gtk" removes only gtk, |
10 |
>> and leaves all the gtk apps on the computer. |
11 |
>> |
12 |
>> is there a way to achieve what i need? |
13 |
> |
14 |
> Make sure you have gentoolkit installed and then: |
15 |
> |
16 |
> qpkg -I -nc -q gtk+ |
17 |
> |
18 |
> will give you a list of packages that depend on gtk+. You can |
19 |
> redirect to a file, clean it up, and then run it through xargs to |
20 |
> remove them all at once. |
21 |
|
22 |
Here is a one line wonder: |
23 |
|
24 |
for i in `qpkg -I -nc -q gtk+ | grep / | cut -d/ -f2`; do emerge |
25 |
unmerge $i; done |
26 |
|
27 |
|
28 |
|
29 |
|
30 |
-- |
31 |
gentoo-dev@g.o mailing list |