1 |
On Thu, 22 Jun 2006 13:46:51 +0200, Mick wrote: |
2 |
|
3 |
> I am trying to unmerge KDE 3.4 using the script below and it comes up |
4 |
> with an error. |
5 |
> ========================================= |
6 |
> for x in `ls /usr/portage/kde-base`; do |
7 |
> if [ "$x" != "CVS" ]; then |
8 |
> echo -n "=kde-base/$x-3.4* " |
9 |
> fi |
10 |
> done |xargs emerge -Cv |
11 |
> ========================================= |
12 |
> |
13 |
> The error is: |
14 |
> ========================================= |
15 |
> # ./unmerge-kde.sh |
16 |
> --- Couldn't find '=kde-base/akode-3.4*' to unmerge |
17 |
> ========================================= |
18 |
|
19 |
You are trying to unmerge akode 3.4 when you don't have it installed. I |
20 |
take it you are trying to unmerge 3.4 having merged 3.5. The problem with |
21 |
this script is that it assumes that the two releases used the same |
22 |
package names. I prefer to use this, which removes all but the latest |
23 |
version of each package. |
24 |
|
25 |
equery --no-color --quiet list kde-base/ | awk '{print $1}' | sed 's:\(.*\)-3\.5.*:\1:' | xargs emerge --prune --pretend |
26 |
|
27 |
Because it doesn't try to remove anything by explicit version number, it |
28 |
won't have the sort of error you found. Remove --pretend when you are |
29 |
happy with the results. You can check for any stray 3.4 packages left |
30 |
over with |
31 |
|
32 |
equery list kde-base/ | grep 3.4 |
33 |
|
34 |
|
35 |
-- |
36 |
Neil Bothwick |
37 |
|
38 |
*Libra*: /(Sept 23--Oct 23)/ An unfortunate typo on your application |
39 |
results in your being accepted into the Legion Of Superherpes. |