How to add new repository in CentOs
Asked Answered
C

1

6

I am trying to install readR package from R on EC2 instance.

I found a solution on this post:

I would like the script for CentOS but the answer is for Ubuntu:

[1] apt-get update     # refresh
[2] apt-get install software-properties-common
[3] add-apt-repository -y "ppa:marutter/rrutter"
[4] add-apt-repository -y "ppa:marutter/c2d4u"
[5] apt-get update     # now with new repos
[6] apt-get install r-cran-readr

Below is my attempt to translate, I understood line 2 is not necesary in my case, and what I am missing are the two lines allowing to add repositories in CentOs:

sudo yum update
sudo mkdir ppa:marutter/rrutter
sudo mkdir ppa:marutter/c2d4u
sudo yum update
sudo yum install r-cran-readr

Help much appreciated !

Converge answered 6/4, 2018 at 8:45 Comment(2)
Did you ever find the solution?Yaroslavl
devopsroles.com/add-repositories-on-linuxDeclinature
D
-1

Try using config-manager it works for me

yum-config-manager --add-repo=ppa:marutter/rrutter

Dioptometer answered 3/2, 2022 at 12:37 Comment(1)
Says Cannot add repo from ppa:----/-----: URL must be http, ftp, file or https not "ppa"Necrophobia

© 2022 - 2024 — McMap. All rights reserved.