How to add a CentOS repo, having URL of Packages

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
In Centos 7, I want to install some packages that I see in the following URL:http://mirror.centos.org/centos/7.4.1708/extras/x86_64/Packages/
How can I add this URL to my yum package manager ?
PS: downloading a single rpm file doesn't work, because it looks recursively for dependencies with the same version.
centos package-management yum rpm repository
 |Â
show 2 more comments
up vote
0
down vote
favorite
In Centos 7, I want to install some packages that I see in the following URL:http://mirror.centos.org/centos/7.4.1708/extras/x86_64/Packages/
How can I add this URL to my yum package manager ?
PS: downloading a single rpm file doesn't work, because it looks recursively for dependencies with the same version.
centos package-management yum rpm repository
2
That repo is already in the base set of repos for CentOS 7.
â Ignacio Vazquez-Abrams
May 18 at 16:46
With version 7, not with a specific version7.4.1708
â ForzaGreen
May 18 at 17:06
Why do you want to pin the repo to a specific version?
â Ignacio Vazquez-Abrams
May 18 at 17:07
I want a specific package version that exists only in this repo version.
â ForzaGreen
May 18 at 17:23
Force the releasever and then pin the package.
â Ignacio Vazquez-Abrams
May 18 at 17:27
 |Â
show 2 more comments
up vote
0
down vote
favorite
up vote
0
down vote
favorite
In Centos 7, I want to install some packages that I see in the following URL:http://mirror.centos.org/centos/7.4.1708/extras/x86_64/Packages/
How can I add this URL to my yum package manager ?
PS: downloading a single rpm file doesn't work, because it looks recursively for dependencies with the same version.
centos package-management yum rpm repository
In Centos 7, I want to install some packages that I see in the following URL:http://mirror.centos.org/centos/7.4.1708/extras/x86_64/Packages/
How can I add this URL to my yum package manager ?
PS: downloading a single rpm file doesn't work, because it looks recursively for dependencies with the same version.
centos package-management yum rpm repository
edited May 18 at 19:36
Jeff Schaller
31.1k846105
31.1k846105
asked May 18 at 16:41
ForzaGreen
1014
1014
2
That repo is already in the base set of repos for CentOS 7.
â Ignacio Vazquez-Abrams
May 18 at 16:46
With version 7, not with a specific version7.4.1708
â ForzaGreen
May 18 at 17:06
Why do you want to pin the repo to a specific version?
â Ignacio Vazquez-Abrams
May 18 at 17:07
I want a specific package version that exists only in this repo version.
â ForzaGreen
May 18 at 17:23
Force the releasever and then pin the package.
â Ignacio Vazquez-Abrams
May 18 at 17:27
 |Â
show 2 more comments
2
That repo is already in the base set of repos for CentOS 7.
â Ignacio Vazquez-Abrams
May 18 at 16:46
With version 7, not with a specific version7.4.1708
â ForzaGreen
May 18 at 17:06
Why do you want to pin the repo to a specific version?
â Ignacio Vazquez-Abrams
May 18 at 17:07
I want a specific package version that exists only in this repo version.
â ForzaGreen
May 18 at 17:23
Force the releasever and then pin the package.
â Ignacio Vazquez-Abrams
May 18 at 17:27
2
2
That repo is already in the base set of repos for CentOS 7.
â Ignacio Vazquez-Abrams
May 18 at 16:46
That repo is already in the base set of repos for CentOS 7.
â Ignacio Vazquez-Abrams
May 18 at 16:46
With version 7, not with a specific version
7.4.1708â ForzaGreen
May 18 at 17:06
With version 7, not with a specific version
7.4.1708â ForzaGreen
May 18 at 17:06
Why do you want to pin the repo to a specific version?
â Ignacio Vazquez-Abrams
May 18 at 17:07
Why do you want to pin the repo to a specific version?
â Ignacio Vazquez-Abrams
May 18 at 17:07
I want a specific package version that exists only in this repo version.
â ForzaGreen
May 18 at 17:23
I want a specific package version that exists only in this repo version.
â ForzaGreen
May 18 at 17:23
Force the releasever and then pin the package.
â Ignacio Vazquez-Abrams
May 18 at 17:27
Force the releasever and then pin the package.
â Ignacio Vazquez-Abrams
May 18 at 17:27
 |Â
show 2 more comments
2 Answers
2
active
oldest
votes
up vote
0
down vote
Take a peek at the files /etc/yum.conf and the ones in /etc/yum.repos.d, you should be able to cobble up something for unofficial repositories. That if they don't publish a package containing the required configuration.
You certainly can also download all needed packages, and install them "by hand" with yum. But that way you won't get updates automatically.
1
Since this is an official repository, that seems unnecessary.
â mattdm
May 18 at 16:58
The question was about unofficial repositories...
â vonbrand
May 18 at 17:03
It was? Are we looking at the same question? The one I am looking at, right above this answer, refers to mirror.centos.org/centos/7.4.1708/extras/x86_64/Packages
â mattdm
May 18 at 17:05
add a comment |Â
up vote
0
down vote
accepted
I had to add a new repo file: e.g. /etc/yum.repos.d/CentOS-7.4.1708.repo with repo configuration:
[extras741708]
name=Extras packages for CentOS 7.4.1708 for x86_64
baseurl=http://mirror.centos.org/centos/7.4.1708/extras/x86_64/
enabled=1
Then, to install for example docker-1.12.6-55.gitc4618fb.el7.centos (which has dependencies in the same Packages), run:
$ sudo yum install -y docker-1.12.6-55.gitc4618fb.el7.centos
Options --disablerepo=* with --enablerepo=extras741708 can be used to enforce only the new repo file to be considered.
--- UPDATE ---
Package version 7.4.1708 doesn't exist anymore in mirror.centos.org. You should rather use: baseurl=http://vault.centos.org/centos/7.4.1708/extras/x86_64/
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Take a peek at the files /etc/yum.conf and the ones in /etc/yum.repos.d, you should be able to cobble up something for unofficial repositories. That if they don't publish a package containing the required configuration.
You certainly can also download all needed packages, and install them "by hand" with yum. But that way you won't get updates automatically.
1
Since this is an official repository, that seems unnecessary.
â mattdm
May 18 at 16:58
The question was about unofficial repositories...
â vonbrand
May 18 at 17:03
It was? Are we looking at the same question? The one I am looking at, right above this answer, refers to mirror.centos.org/centos/7.4.1708/extras/x86_64/Packages
â mattdm
May 18 at 17:05
add a comment |Â
up vote
0
down vote
Take a peek at the files /etc/yum.conf and the ones in /etc/yum.repos.d, you should be able to cobble up something for unofficial repositories. That if they don't publish a package containing the required configuration.
You certainly can also download all needed packages, and install them "by hand" with yum. But that way you won't get updates automatically.
1
Since this is an official repository, that seems unnecessary.
â mattdm
May 18 at 16:58
The question was about unofficial repositories...
â vonbrand
May 18 at 17:03
It was? Are we looking at the same question? The one I am looking at, right above this answer, refers to mirror.centos.org/centos/7.4.1708/extras/x86_64/Packages
â mattdm
May 18 at 17:05
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Take a peek at the files /etc/yum.conf and the ones in /etc/yum.repos.d, you should be able to cobble up something for unofficial repositories. That if they don't publish a package containing the required configuration.
You certainly can also download all needed packages, and install them "by hand" with yum. But that way you won't get updates automatically.
Take a peek at the files /etc/yum.conf and the ones in /etc/yum.repos.d, you should be able to cobble up something for unofficial repositories. That if they don't publish a package containing the required configuration.
You certainly can also download all needed packages, and install them "by hand" with yum. But that way you won't get updates automatically.
answered May 18 at 16:53
vonbrand
13.9k22443
13.9k22443
1
Since this is an official repository, that seems unnecessary.
â mattdm
May 18 at 16:58
The question was about unofficial repositories...
â vonbrand
May 18 at 17:03
It was? Are we looking at the same question? The one I am looking at, right above this answer, refers to mirror.centos.org/centos/7.4.1708/extras/x86_64/Packages
â mattdm
May 18 at 17:05
add a comment |Â
1
Since this is an official repository, that seems unnecessary.
â mattdm
May 18 at 16:58
The question was about unofficial repositories...
â vonbrand
May 18 at 17:03
It was? Are we looking at the same question? The one I am looking at, right above this answer, refers to mirror.centos.org/centos/7.4.1708/extras/x86_64/Packages
â mattdm
May 18 at 17:05
1
1
Since this is an official repository, that seems unnecessary.
â mattdm
May 18 at 16:58
Since this is an official repository, that seems unnecessary.
â mattdm
May 18 at 16:58
The question was about unofficial repositories...
â vonbrand
May 18 at 17:03
The question was about unofficial repositories...
â vonbrand
May 18 at 17:03
It was? Are we looking at the same question? The one I am looking at, right above this answer, refers to mirror.centos.org/centos/7.4.1708/extras/x86_64/Packages
â mattdm
May 18 at 17:05
It was? Are we looking at the same question? The one I am looking at, right above this answer, refers to mirror.centos.org/centos/7.4.1708/extras/x86_64/Packages
â mattdm
May 18 at 17:05
add a comment |Â
up vote
0
down vote
accepted
I had to add a new repo file: e.g. /etc/yum.repos.d/CentOS-7.4.1708.repo with repo configuration:
[extras741708]
name=Extras packages for CentOS 7.4.1708 for x86_64
baseurl=http://mirror.centos.org/centos/7.4.1708/extras/x86_64/
enabled=1
Then, to install for example docker-1.12.6-55.gitc4618fb.el7.centos (which has dependencies in the same Packages), run:
$ sudo yum install -y docker-1.12.6-55.gitc4618fb.el7.centos
Options --disablerepo=* with --enablerepo=extras741708 can be used to enforce only the new repo file to be considered.
--- UPDATE ---
Package version 7.4.1708 doesn't exist anymore in mirror.centos.org. You should rather use: baseurl=http://vault.centos.org/centos/7.4.1708/extras/x86_64/
add a comment |Â
up vote
0
down vote
accepted
I had to add a new repo file: e.g. /etc/yum.repos.d/CentOS-7.4.1708.repo with repo configuration:
[extras741708]
name=Extras packages for CentOS 7.4.1708 for x86_64
baseurl=http://mirror.centos.org/centos/7.4.1708/extras/x86_64/
enabled=1
Then, to install for example docker-1.12.6-55.gitc4618fb.el7.centos (which has dependencies in the same Packages), run:
$ sudo yum install -y docker-1.12.6-55.gitc4618fb.el7.centos
Options --disablerepo=* with --enablerepo=extras741708 can be used to enforce only the new repo file to be considered.
--- UPDATE ---
Package version 7.4.1708 doesn't exist anymore in mirror.centos.org. You should rather use: baseurl=http://vault.centos.org/centos/7.4.1708/extras/x86_64/
add a comment |Â
up vote
0
down vote
accepted
up vote
0
down vote
accepted
I had to add a new repo file: e.g. /etc/yum.repos.d/CentOS-7.4.1708.repo with repo configuration:
[extras741708]
name=Extras packages for CentOS 7.4.1708 for x86_64
baseurl=http://mirror.centos.org/centos/7.4.1708/extras/x86_64/
enabled=1
Then, to install for example docker-1.12.6-55.gitc4618fb.el7.centos (which has dependencies in the same Packages), run:
$ sudo yum install -y docker-1.12.6-55.gitc4618fb.el7.centos
Options --disablerepo=* with --enablerepo=extras741708 can be used to enforce only the new repo file to be considered.
--- UPDATE ---
Package version 7.4.1708 doesn't exist anymore in mirror.centos.org. You should rather use: baseurl=http://vault.centos.org/centos/7.4.1708/extras/x86_64/
I had to add a new repo file: e.g. /etc/yum.repos.d/CentOS-7.4.1708.repo with repo configuration:
[extras741708]
name=Extras packages for CentOS 7.4.1708 for x86_64
baseurl=http://mirror.centos.org/centos/7.4.1708/extras/x86_64/
enabled=1
Then, to install for example docker-1.12.6-55.gitc4618fb.el7.centos (which has dependencies in the same Packages), run:
$ sudo yum install -y docker-1.12.6-55.gitc4618fb.el7.centos
Options --disablerepo=* with --enablerepo=extras741708 can be used to enforce only the new repo file to be considered.
--- UPDATE ---
Package version 7.4.1708 doesn't exist anymore in mirror.centos.org. You should rather use: baseurl=http://vault.centos.org/centos/7.4.1708/extras/x86_64/
edited May 29 at 14:21
answered May 19 at 1:17
ForzaGreen
1014
1014
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f444651%2fhow-to-add-a-centos-repo-having-url-of-packages%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
2
That repo is already in the base set of repos for CentOS 7.
â Ignacio Vazquez-Abrams
May 18 at 16:46
With version 7, not with a specific version
7.4.1708â ForzaGreen
May 18 at 17:06
Why do you want to pin the repo to a specific version?
â Ignacio Vazquez-Abrams
May 18 at 17:07
I want a specific package version that exists only in this repo version.
â ForzaGreen
May 18 at 17:23
Force the releasever and then pin the package.
â Ignacio Vazquez-Abrams
May 18 at 17:27