Skip to content

Instantly share code, notes, and snippets.

@CerebralMastication
Created June 28, 2010 15:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save CerebralMastication/455962 to your computer and use it in GitHub Desktop.
Save CerebralMastication/455962 to your computer and use it in GitHub Desktop.
#!/bin/bash
#debian R upgrade
echo "deb http://streaming.stat.iastate.edu/CRAN/bin/linux/debian lenny-cran/" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get -t lenny-cran install --yes --force-yes r-base r-base-dev
@TimothyDalbey
Copy link

Just a note that this was failing on my AMIs. I did the following to correct the issue:

gpg --keyserver pgpkeys.mit.edu --recv-key 06F90DE5381BA480
gpg -a --export 06F90DE5381BA480 | sudo apt-key add -
echo "deb http://streaming.stat.iastate.edu/CRAN/bin/linux/debian lenny-cran/" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get -t lenny-cran install --yes --force-yes r-base r-base-dev

Which kinda sucks - doesn't work out of the box - gotta get the key value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment