DO NOT USE THIS CODE, KDE 4.2 HAS BEEN MOVED TO DEBIAN TESTING AND UNSTABLE, SO THIS IS NO LONGER NECCESARY.
KDE 4.2 is the new release for KDE that has been code names “the answer”(that will shut up most whiny babies who doubted KDE4 would ever be any good)
I managed to install KDE 4.2 in my recently installed Debian Lenny. I couldn’t wait until Lenny released since 4.2 seemed to be just ripe for the picking.
It was a simple process of apt-pinning
I added the following repositories to my /etc/apt/sources.list
#SID(needed because several dependencies are here)
deb http://ftp.de.debian.org/debian/ sid main
deb-src http://ftp.de.debian.org/debian/ sid main
#Experimental(the KDE4 repo)
deb http://ftp.de.debian.org/debian/ experimental main
deb-src http://ftp.de.debian.org/debian/ experimental main
and then added this to /etc/apt/preferences , (create it if you don’t have it)
Pin: release o=Debian,a=testing
Pin: release o=Debian,a=lenny
Pin: release o=Debian,a=sid
Pin: release o=Debian,a=experimental
MAKE SURE THAT THERE ARE NO SPACES BEFORE THE “P”’s in Package, Pin, and Pin-Priority!! Gedit added them when i wrote it and i’t took me a while before i figured out what was wrong.
What this does is make sure that when you do an update, the Sid or experimental repos aren’t used. They will only be used when u call on them specifically.
To install KDE 4 run
aptitude -t experimental install kde4
To update KDE 4.2, simply do what the KDE 4.2 on Debian website says, aptitude (or apt-get) dist-upgrade
This is KDE 4.2 only a few minutes after installation, already working fast, no extra configuration needed!