1) local repo created but empty 2) how to create a repo config for both CentOS 6 and 7?

General support questions
Post Reply
julienp
Posts: 1
Joined: 2019/04/08 16:44:12

1) local repo created but empty 2) how to create a repo config for both CentOS 6 and 7?

Post by julienp » 2019/04/08 16:56:28

Hi,

I am running a CentOS 6 server on which I created a local repo and scheduled a reposync.
Both commands reposync and createrepo execute fine and all seems good.

First I run into an issue where, when I browser the directories (base, centosplus, extras...) on nginx, they are completely empty.

Second, I see that my /etc/yum.repos.d/CentOS-Base.repo lists only CentOS 6 sources, is there a way to also sync the CentOS 7 sources? I am not sure if I should create a separate .repo configuration file or use a specific syntax in the CentOS-Base.repo file to include both versions?

Any tips here would be welcome.

P.S. Basically I followed those instructions to create my local repo, I had to fix a few issues in the steps indicated here but eventually got it to work:
https://www.tecmint.com/setup-local-htt ... -centos-7/

Post Reply