Archive for the 'Debian' Category

Debian sapt

Auto Date Tuesday, September 12th, 2006

Do you find your self struggling with typing apt-cache search the whole time. It’s too time consuming and its easy to make a typo, typing in the whole string. There are quicker and easier ways accomplishing the same thing.

Read the rest of this entry »

Debian update-alternatives

Auto Date Tuesday, August 29th, 2006

A real brilliant feature of Debian is the alternatives system. Couple of days ago i was playing with java. and I wanted both the Sun java and the Kaffe version installed on my system. The problem here is, how to easily tell wich java compiler to use, the sun version or kaffe? I’m a big fan of the ruby language and i regularly switch between version of the ruby interpeter for testing. You could achieve this in a couple of ways, change the shebang to point to the correct version of the interpeter or don’t use the shebang but instead call the correct interpeter before executing each script or maybe you change the PATH and have the preferred interpeter somewhere in the beginning of your PATH. I don’t really like any of these solutions for various reasons, there is a solution and you might have guessed it “the alternatives system”.

Read the rest of this entry »