Linux - Repo

maelamrani

Member
Joined
Jan 3, 2020
Messages
76
Reaction score
7
Credits
437
Hello
I have a question about repo in centos/red hat distro
i created the base.repo it doesnt work should i use something else or config-manager --add-repo= ?
I cant ping the repo nor install packages

What i did
[baseos]
name=CentOS
baseurl=http://repo.eight.example.com/BaseOS
gpgcheck=0
enabled=1
 


f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
3,907
Reaction score
2,640
Credits
28,241
Code:
Host repo.eight.example.com not found: 3(NXDOMAIN)
The domain doesn't exist. My guess is you copied that from some website which used that as an example of how to add a repo with yum-config-manager?
 
OP
M

maelamrani

Member
Joined
Jan 3, 2020
Messages
76
Reaction score
7
Credits
437
yes but normaly what i did is correct
[baseos]
name=CentOS
baseurl=The correct IRL
gpgcheck=0
enabled=1
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
3,907
Reaction score
2,640
Credits
28,241
Yes what you did is correct so like this.
Code:
yum config-manager --add-repo http://example.com/some/additional.repo
You are going to have to be more specific than saying it doesn't work, I am not a mind reader.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online


Top