Skip to content

Instantly share code, notes, and snippets.

@hornbeck
Forked from dysinger/ubuntu-pinning.sh
Created February 17, 2010 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hornbeck/306702 to your computer and use it in GitHub Desktop.
Save hornbeck/306702 to your computer and use it in GitHub Desktop.
#!/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