Comments on: How to Setup a Network Repository to Install or Update Packages – Part 11 https://www.tecmint.com/setup-yum-repository-in-centos-7/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Fri, 15 Mar 2019 10:05:10 +0000 hourly 1 By: Ravi Saive https://www.tecmint.com/setup-yum-repository-in-centos-7/comment-page-1/#comment-1113008 Fri, 15 Mar 2019 10:05:10 +0000 http://www.tecmint.com/?p=10908#comment-1113008 In reply to Ricardo.

@Ricardo,

First you need to set proxy connection settings in your exports path as shown.

# export HTTP_PROXY=http://user:password@proxyhost:8080

Then you can tell that you want rsync to use below proxy settings for its traffic.

# RSYNC_PROXY=user:password@proxyhost:8080

You can modify the above command as per your proxy connection requirements (some do not need user/password)

Finally you run your rsync job.

]]>
By: Ricardo https://www.tecmint.com/setup-yum-repository-in-centos-7/comment-page-1/#comment-1112607 Thu, 14 Mar 2019 18:20:00 +0000 http://www.tecmint.com/?p=10908#comment-1112607 Hi, I need to pass rsync through a proxy server to get to the mirror, what should i do?

Thanks in advance

]]>
By: Anssi Johansson https://www.tecmint.com/setup-yum-repository-in-centos-7/comment-page-1/#comment-1061387 Mon, 19 Nov 2018 14:17:18 +0000 http://www.tecmint.com/?p=10908#comment-1061387 In reply to Bruno M. V. M. Salazar.

Nope, you get the repodata from the upstream mirror. There is no need at all to run createrepo.

]]>
By: Anssi Johansson https://www.tecmint.com/setup-yum-repository-in-centos-7/comment-page-1/#comment-1061385 Mon, 19 Nov 2018 14:15:56 +0000 http://www.tecmint.com/?p=10908#comment-1061385 Hi, I’m afraid your instructions are not correct. You must not use createrepo to create the repodata, but instead you should use the repodata you get from the mirror you sync from.

If you create the repodata yourself, you will break the GPG signing of repomd.xml (see repomd.xml.asc). Please remove all references to “createrepo‘”.

For those thinking of setting up a public CentOS mirror based on this blog posting, you should sync everything with one rsync command, and not by individual version or repository. In this case the -H (preserve hard links) rsync option would save you some bandwidth and hard disk space.

Best regards, avij on behalf of the CentOS Linux Project.

]]>
By: Ravi Saive https://www.tecmint.com/setup-yum-repository-in-centos-7/comment-page-1/#comment-1021265 Mon, 06 Aug 2018 05:44:18 +0000 http://www.tecmint.com/?p=10908#comment-1021265 In reply to DINAKAR N K.

@Dinakar,

Please check this article: Integrate CentOS 7 to Active Directory.

]]>