EPEL7 repo created on CentOS 8 repo server

Issues related to applications and software problems and general support
Post Reply
User avatar
warron.french
Posts: 466
Joined: 2014/03/27 20:21:58

EPEL7 repo created on CentOS 8 repo server

Post by warron.french » 2020/05/23 04:13:39

Is there a way to collect EPEL7 packages on to a CentOS 8 server that I am using as a Repo Server?

I have figured out how to get a web server built on CentOS8. I have gotten the CentOS7 packages from the repositories of base, centosplus, extras and updates download to /var/www/html/centos/7/ using the reposync command on the CentOS8 server.

I installed the epel-release package on a separate CentOS7 system, then copied the epel.repo file over to /etc/yum.repos.d of the CentOS7 server onto the CentOS8 server.
Thanks,
War

User avatar
warron.french
Posts: 466
Joined: 2014/03/27 20:21:58

Re: EPEL7 repo created on CentOS 8 repo server

Post by warron.french » 2020/05/26 17:38:13

When attempting to use reposync I experienced errors that are exactly the same. The output is here:

Code: Select all

[root@grim-repo:/var/www/html/centos/7]# reposync  --delete -m --repo=Epel7       --download-metadata  --destdir /var/www/html/centos/7/
Extra Packages for Enterprise Linux 7 - x86_64                                                                         0.0  B/s |   0  B     00:00
Failed to download metadata for repo 'Epel7'
Error: Failed to download metadata for repo 'Epel7'

Code: Select all

[root@grim-repo:/var/www/html/centos/7]# reposync -p /var/www/html/centos/7/  --download-metadata  --repo=Epel7
Extra Packages for Enterprise Linux 7 - x86_64                                                                         0.0  B/s |   0  B     00:00
Failed to download metadata for repo 'Epel7'
Error: Failed to download metadata for repo 'Epel7'
This is a copy of my relevant repo file (CentOS7-Epel.repo) for Epel7 (yes, I created it based on the original).

Code: Select all

[Epel7]
name=Extra Packages for Enterprise Linux 7 - x86_64
baseurl=http://download.fedoraproject.org/pub/epel/7/x86_64
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

[Epel7-debuginfo]
name=Extra Packages for Enterprise Linux 7 - x86_64 - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/7/x86_64/debug
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-7&arch=x86_64
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1

[Epel7-source]
name=Extra Packages for Enterprise Linux 7 - x86_64 - Source
#baseurl=http://download.fedoraproject.org/pub/epel/7/SRPMS
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-source-7&arch=x86_64
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1
I also followed the steps in this link for some hope. https://www.thegeekdiary.com/failed-to- ... repo_name/
Thanks,
War

Post Reply

Return to “CentOS 8 - General Support”