Friday, May 27, 2016

Which version of Debian am I running?

$ cat /etc/os-release

PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

$ cat /etc/debian_version
8.4

For the kernel version:

$ uname -a
Linux dell-3521 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-1 (2016-03-06) x86_64 GNU/Linux

Installing R on Debian Jessie (R language, rlanguage, rlang, etc)

This gives you a list of all the R packages available:

$ apt-cache search '^r-'

This installs a basic R system:

$ sudo apt install r-recommended

run with:

$ R

More things here: 

http://www.mayin.org/ajayshah/KB/R/documents/install.html 



For latest versions, see  https://cran.r-project.org/ As part of R's policy of doing everything differently and breaking everything, it's not possible to bookmark the actual page, so you'll have to follow the Download R for Linux link.

add

deb http://cran.ma.imperial.ac.uk/bin/linux/debian jessie-cran3/
to /etc/apt/sources.list

add the gpg key

# apt-key adv --keyserver keys.gnupg.net --recv-key 381BA480
update the packages

# apt update
# apt list --upgradable
# apt upgrade