So let's say you want to join all the cool kids and use gemcutter but you're Debian Lenny and it's still got a 1.3.4 version of rubygems (gemcutter apparently needs 1.3.5)? Well you could go install a local copy and screw up your dependencies, or you could just pull the version out of debian unstable as it doesn't seem to mess up anything else:
First, make sure you have the stable repopsitory pinned and create or edit:
/etc/apt/preferences
Package: *
Pin: release a=stable
Pin-Priority: 700
Then to add the unstable repository to your sources edit:
/etc/apt/sources.list
deb http://http.us.debian.org/debian/ unstable main contrib non-free
Finall update your packages and install the new version of ruby gems:
$ sudo apt-get update
$ sudo apt-get -t unstable install rubygems
And you should be good to go (we had to get starling installed on a production server and it requires gemcutter, so that's to motiviation)
If you want to be safe - I would recommend opening up your sources.list and remove unstable.
....and follow @cykod on twitter
Leave a Comment