aims-install-rstudio 938 Bytes
Newer Older
1
2
#!/bin/bash

3
4
5
6
7
8
# Rstudio 1.0.143 and before required 3 jessie packages to run on stretch
[ -f /etc/apt/sources.list.d/jessie.list ] && mv /etc/apt/sources.list.d/jessie.list{,.disabled}
for PKG in libgstreamer0.10-0 libgstreamer-plugins-base0.10-0 libssl1.0.0; do
	dpkg -s $PKG >/dev/null 2>&1 && apt-get -y purge $PKG;
done

Jan Groenewald's avatar
Jan Groenewald committed
9
RSTUDIO=https://download1.rstudio.org/desktop/debian9/x86_64/rstudio-1.2.5001-amd64.deb
10

11
# New rstudio does not require jessie packages
12
gpg --keyserver keys.gnupg.net --recv-keys 3F32EE77E331692F
13
apt-get -qq update
Jan Groenewald's avatar
Jan Groenewald committed
14
apt-get -y install r-recommended libjpeg62 libedit2 libssl1.0.2 libgstreamer1.0-0 libgstreamer-plugins-base1.0-0 libobjc-6-dev libclang1-3.8 libobjc4 libllvm3.8 libclang-3.8-dev libclang-dev libclang-common-3.8-dev
15
cd /tmp
16
wget -c $RSTUDIO
Jan Groenewald's avatar
Jan Groenewald committed
17
18
dpkg-sig --verify ${RSTUDIO#https://download1.rstudio.org/desktop/debian9/amd64/} && \
dpkg -i ${RSTUDIO#https://download1.rstudio.org/desktop/debian9/amd64/}