Skip to content

Instantly share code, notes, and snippets.

@dysinger
Created February 16, 2010 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dysinger/305541 to your computer and use it in GitHub Desktop.
Save dysinger/305541 to your computer and use it in GitHub Desktop.
Shows how to pin ubuntu's erlang to the latest release 13
#!/bin/bash
sudo su -
# ubuntu
cat >/etc/apt/preferences <<EOF
Package: *
Pin: release a=lucid
Pin-Priority: -1
Package: *
Pin: release a=lucid-updates
Pin-Priority: -1
Package: *
Pin: release a=lucid-security
Pin-Priority: -1
EOF
cp /etc/apt/sources.list /etc/apt/sources.list.d/lucid.list
perl -p -i -e 's/karmic/lucid/g' /etc/apt/sources.list.d/lucid.list
apt-get update
apt-get upgrade -y
# install erlang 13 from lucid
apt-get install -t lucid erlang # ; or erlang-nox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment