
So it’s the end of the KDE monolith for me. I’ve come to like KDE and use it as my primary desktop over the years, but everything must come to an end. Never fear, I’m not switching to GNOME or Xfce (which kicks ass), but just going with the split ebuilds.
So basically, if, like me, you installed the monolithic KDE in Gentoo, circa 2005 and are now looking to upgrade to KDE 4.2.x, here’s the easy way to do it. Be warned that all your KDE 3.5.x apps will disappear, but your data will remain. For example, the new Kmail 4.2.3 replaced Kmail 3.5.9 but left all my email intact.
A caveat, you might need to install KDE 3.5.10, which is the last KDE 3.x version out there, if you intend to run apps such as Kile or Krusader, which rely on KDE 3.5 libraries. Luckily, Gentoo works with slots, which allow you to have KDE 3.5.10 and 4.2.3 installed concurrently.
So, first unmerge that evil monolithic KDE (from a terminal, of course, not within KDE, I’m not responsible if you do so)
emerge -C kdeemerge --depclean -a
Clean out everything you don’t need, trim the list if you wish.
Now, check the availability of the KDE version you require with eix:
eix -e kdebase-meta
You should see both 3.5.10 and 4.2.3, which is the latest one as of this writing. Now use autounmask to unmask them both, at least on the x86 platform:
autounmask kde-base/kdebase-meta-4.2.3
Let this run for a while, it takes around 20 minutes. Then emerge it and you should have a working kde 4.2.3:
emerge --newuse =kdebase-meta-4.2.3
Once you’re in your new KDE, you’ll see that many apps that worked before no longer do so, such as Kmplayer and Kile. Just unmerge the previous monolithic KDE 3.5.9 versions and emerge the KDE 3.5.10 equivalents
emerge -aC kdegraphicsautounmask kde-base/kdegraphics-meta-3.5.10emerge =kdegraphics-meta-3.5.10
And there you have it, a seamless upgrade from monolithic KDE 3.5.9 to a split ebuild KDE 4.2.3 on Gentoo. Enjoy.