Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in AWS by (19.1k points)

I managed to create an EC2 instance Amazon Linux AMI 2017.09.1 (randomly chosen) on Amazon Web Services (AWS). I can send and receive files from my local desktop to AWS properly.

Now I would like to install R (RStudio Server) on AWS. When searching for an answer, I found the script below that is to be written into Putty:

# install R base

$ sudo yum install r-base

#install RStudio-Server 1.1.442

$ sudo yum install gdebi-core

$ wget https://download2.rstudio.org/rstudio-server-1.1.442-amd64.deb

$ sudo gdebi rstudio-server-1.1.442-amd64.deb

#add user(s)

useradd username

echo username:password | passwordtest

But the answer I get each time is: "No package r-base available" or also "No package gdebi-core available".

Are they some prerequisite steps that I am missing?

1 Answer

0 votes
by (44.4k points)

As you are using Amazon Linux AMI, it is based on CentOS and not as a debian/ubuntu machine. So, the commands you entered are right upto a point and the installation command is wrong.

Follow the below steps:

  1. $ sudo yum install R 
  2. $ wget https://download2.rstudio.org/rstudio-server-rhel-1.1.442x86_64.rpm //Downloads the rstudio server package
  3. $ sudo yum install rstudio-server-rhel-1.1.442-x86_64.rpm //Install the downloaded setup

This should work!

Also, i guess you are currently learning AWS, so I will leave some useful links below.

Related questions

0 votes
1 answer

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
asked Mar 19, 2020 in AWS by chandra (29.3k points)
0 votes
1 answer

Browse Categories

...