1 |
Just showing a couple of tricks. |
2 |
|
3 |
On Thursday 22 June 2006 20:15, James wrote: |
4 |
> Yes, That solves how to install a new kde (mono, meta, split) but |
5 |
> does not really address cleanzing the sytem of all the old kde kruft. |
6 |
> I have stuff from kde 3.2, 3.3., 3.4 on some of my older systems. |
7 |
|
8 |
This removes everything in kde-base that is version 3.2, 3.3 or 3.4 (and |
9 |
installed of course): |
10 |
|
11 |
# cd /var/db/pkg && emerge -Cva kde-base/*-3.{2,3,4}* |
12 |
|
13 |
> > #cd /var/db/pkg && emerge -Cva `ls -d kde-base/* | grep -v -r \ |
14 |
> > 'kdelibs\|arts'` |
15 |
|
16 |
One could add a version too so that only the newest version of kdelibs and |
17 |
arts is kept since it is still required. Like this: |
18 |
|
19 |
# cd /var/db/pkg && emerge -Cva `ls kde-base | grep -v -r 'kdelibs-3\.5\.3\|arts-3\.5\.3'` |
20 |
|
21 |
> Beside, my thoughts are to remove everthing and start from fresh, as |
22 |
> I seem to be tracking down a multitude of kde related trivial issues |
23 |
> on a variety of kde/gentoo systems I manage. |
24 |
|
25 |
This removes everything in kde-base. It's equivalent to Neils suggestion. |
26 |
|
27 |
# cd /var/db/pkg && emerge -Cva kde-base/* |
28 |
|
29 |
Also after removing old slots there may still be third party apps left that has |
30 |
been compiled against the old versions. They need to be remerged after the new |
31 |
version of kde has been emerged to compile them against the new version and |
32 |
remove the old cruft in /usr/kde/3.4 etc. |
33 |
|
34 |
This will show you what packages still have cruft in /usr/kde/3.2 - 3.4: |
35 |
|
36 |
# find /usr/kde/3.{2,3,4} | xargs equery belongs | cat |
37 |
|
38 |
Unmerge what you don't need or remerge (after emerging kde 3.5) what you still |
39 |
need. When you are done with that the above command should give no output and |
40 |
any files still in /usr/kde/3.2 - 3.4 can be safely deleted since they belong |
41 |
to no package. Pay attention to what you do though. A revdep-rebuild before |
42 |
this step will probably take care of most of this. |
43 |
|
44 |
> xfree_vs_xorg, dev_vs_udev, and now kde seem to need major surgery.... |
45 |
> Historical experiences with Gentoo. Gentoo is great for the current |
46 |
> new stuff, but often, I'm learning and dealing with minutia, I would |
47 |
> prefer to avoid. When I do avoid the gentoo minutia, I get burned, |
48 |
> like now having to move to meta or split. Granted, in the long run, |
49 |
> these migrations have been good, but it's still painful (time consuming) |
50 |
> to walk the gentoo path, at times.... |
51 |
|
52 |
The split packages are replacing the monolithic. Not the other way around. And |
53 |
KDE 4.x will get out next spring. |
54 |
|
55 |
-- |
56 |
Bo Andresen |