<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: How to Create Local HTTP Yum/DNF Repository on RHEL 8	</title>
	<atom:link href="https://www.tecmint.com/create-local-http-yum-dnf-repository-on-rhel-8/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/create-local-http-yum-dnf-repository-on-rhel-8/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Sat, 03 Jul 2021 21:45:51 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Shaan		</title>
		<link>https://www.tecmint.com/create-local-http-yum-dnf-repository-on-rhel-8/comment-page-1/#comment-1536586</link>

		<dc:creator><![CDATA[Shaan]]></dc:creator>
		<pubDate>Sat, 03 Jul 2021 21:45:51 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=32757#comment-1536586</guid>

					<description><![CDATA[Step 9 is wrong. At the end of baseurl, you need &lt;strong&gt;/BaseOS&lt;/strong&gt; and &lt;strong&gt;/AppStream&lt;/strong&gt;. You are missing this from both repos in the &lt;strong&gt;.repo&lt;/strong&gt; file.]]></description>
			<content:encoded><![CDATA[<p>Step 9 is wrong. At the end of baseurl, you need <strong>/BaseOS</strong> and <strong>/AppStream</strong>. You are missing this from both repos in the <strong>.repo</strong> file.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Singh		</title>
		<link>https://www.tecmint.com/create-local-http-yum-dnf-repository-on-rhel-8/comment-page-1/#comment-1349512</link>

		<dc:creator><![CDATA[Singh]]></dc:creator>
		<pubDate>Sun, 02 Aug 2020 04:12:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=32757#comment-1349512</guid>

					<description><![CDATA[I was using centos 8, in docker container, should not matter. 

Issue 1: 

Ngnix default directory for me was 
&lt;pre&gt;
/usr/share/nginx/html/ not /var/www/html/
&lt;/pre&gt;
Issue 2: was getting error:

  - Status code: 404 for http://192.168.1.96/BaseOS/repodata/repomd.xml (IP: 192.168.1.96)
Error: Failed to download metadata for repo &#039;LocalRepo_BaseOS&#039;: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

Also was getting error:

No available modular metadata for modular package &#039;python36-3.6.8-2.module_el8.1.0+245+c39af44f.x86_64&#039;, it cannot be installed on the system


Read below for Fix

Thanks


Error 1 : rm: cannot remove &#039;index.html&#039;: No such file or directory
&lt;pre&gt;
[root@centos8-client ~]# yum install python36-devel.x86_64 -y
Failed to set locale, defaulting to C.UTF-8
LocalRepo_BaseOS            
Errors during downloading metadata for repository &#039;LocalRepo_BaseOS&#039;:
  - Status code: 404 for http://192.168.1.96/BaseOS/repodata/repomd.xml (IP: 192.168.1.96)
Error: Failed to download metadata for repo &#039;LocalRepo_BaseOS&#039;: Cannot download repomd.xml: 
Cannot download repodata/repomd.xml: All mirrors were tried
&lt;pre&gt;
&lt;pre&gt;
[root@centos8-client ~]# vi /etc/yum.repos.d/local-rhel8.repo
[root@centos8-client ~]# dnf clean all
Failed to set locale, defaulting to C.UTF-8
6 files removed
[root@centos8-client ~]# yum install python36-devel.x86_64 -y
Failed to set locale, defaulting to C.UTF-8
CentOS-8 - Extras                                                                                                                                       
LocalRepo_BaseOS                                                                                                                                      
LocalRepo_AppStream                                                                                                                                  
Dependencies resolved.
-
Total      
&lt;/pre&gt;
Error 2:                                                                                                                                               
Running transaction check
No available modular metadata for modular package &#039;python36-3.6.8-2.module_el8.1.0+245+c39af44f.x86_64&#039;, it cannot be installed on the system
No available modular metadata for modular package &#039;python36-devel-3.6.8-2.module_el8.1.0+245+c39af44f.x86_64&#039;, it cannot be installed on the system
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing &#039;yum clean packages&#039;.
Error: No available modular metadata for modular package
&lt;pre&gt;
[root@centos8-client ~]# vi /etc/yum.repos.d/centos8.repo
[root@centos8-client ~]# vi /etc/yum.repos.d/
CentOS-AppStream.repo   CentOS-CR.repo          CentOS-Devel.repo       
CentOS-HA.repo          CentOS-PowerTools.repo  CentOS-Vault.repo       
CentOS-fasttrack.repo    CentOS-Base.repo       CentOS-Debuginfo.repo   
CentOS-Extras.repo      CentOS-Media.repo       CentOS-Sources.repo    
CentOS-centosplus.repo  local-rhel8.repo
&lt;pre&gt;
&lt;pre&gt;
[root@centos8-client ~]# vi /etc/yum.repos.d/local-rhel8.repo
&lt;/pre&gt;
Service side:

I created the repo metadata using following command, after rebuilding it 
&lt;pre&gt;
# createrepo_c /usr/share/nginx/html/local_repo
&lt;/pre&gt;
Client side: 

I had to specifically list each of the directories for the Base repo and the AppStream Repo
&lt;pre&gt;
[root@centos8-client ~]# cat /etc/yum.repos.d/local-rhel8.repo
[LocalRepo_BaseOS]
name=LocalRepo_BaseOS
enabled=1
metadata_expire=-1
gpgcheck=0
baseurl=http://192.168.1.96/local_repo/BaseOS
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
[LocalRepo_AppStream]
name=LocalRepo_AppStream
enabled=1
metadata_expire=-1
gpgcheck=0
baseurl=http://192.168.1.96/local_repo/AppStream
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>I was using centos 8, in docker container, should not matter. </p>
<p>Issue 1: </p>
<p>Ngnix default directory for me was </p>
<pre>
/usr/share/nginx/html/ not /var/www/html/
</pre>
<p>Issue 2: was getting error:</p>
<p>  &#8211; Status code: 404 for <a target="_blank" href="http://192.168.1.96/BaseOS/repodata/repomd.xml" rel="nofollow ugc">http://192.168.1.96/BaseOS/repodata/repomd.xml</a> (IP: 192.168.1.96)<br />
Error: Failed to download metadata for repo &#8216;LocalRepo_BaseOS&#8217;: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried</p>
<p>Also was getting error:</p>
<p>No available modular metadata for modular package &#8216;python36-3.6.8-2.module_el8.1.0+245+c39af44f.x86_64&#8217;, it cannot be installed on the system</p>
<p>Read below for Fix</p>
<p>Thanks</p>
<p>Error 1 : rm: cannot remove &#8216;index.html&#8217;: No such file or directory</p>
<pre>
[root@centos8-client ~]# yum install python36-devel.x86_64 -y
Failed to set locale, defaulting to C.UTF-8
LocalRepo_BaseOS            
Errors during downloading metadata for repository 'LocalRepo_BaseOS':
  - Status code: 404 for http://192.168.1.96/BaseOS/repodata/repomd.xml (IP: 192.168.1.96)
Error: Failed to download metadata for repo 'LocalRepo_BaseOS': Cannot download repomd.xml: 
Cannot download repodata/repomd.xml: All mirrors were tried
</pre>
<pre>
</pre>
<pre>
[root@centos8-client ~]# vi /etc/yum.repos.d/local-rhel8.repo
[root@centos8-client ~]# dnf clean all
Failed to set locale, defaulting to C.UTF-8
6 files removed
[root@centos8-client ~]# yum install python36-devel.x86_64 -y
Failed to set locale, defaulting to C.UTF-8
CentOS-8 - Extras                                                                                                                                       
LocalRepo_BaseOS                                                                                                                                      
LocalRepo_AppStream                                                                                                                                  
Dependencies resolved.
-
Total      
</pre>
<p>Error 2:<br />
Running transaction check<br />
No available modular metadata for modular package 'python36-3.6.8-2.module_el8.1.0+245+c39af44f.x86_64', it cannot be installed on the system<br />
No available modular metadata for modular package 'python36-devel-3.6.8-2.module_el8.1.0+245+c39af44f.x86_64', it cannot be installed on the system<br />
The downloaded packages were saved in cache until the next successful transaction.<br />
You can remove cached packages by executing 'yum clean packages'.<br />
Error: No available modular metadata for modular package</p>
<pre>
[root@centos8-client ~]# vi /etc/yum.repos.d/centos8.repo
[root@centos8-client ~]# vi /etc/yum.repos.d/
CentOS-AppStream.repo   CentOS-CR.repo          CentOS-Devel.repo       
CentOS-HA.repo          CentOS-PowerTools.repo  CentOS-Vault.repo       
CentOS-fasttrack.repo    CentOS-Base.repo       CentOS-Debuginfo.repo   
CentOS-Extras.repo      CentOS-Media.repo       CentOS-Sources.repo    
CentOS-centosplus.repo  local-rhel8.repo
</pre>
<pre>
</pre>
<pre>
[root@centos8-client ~]# vi /etc/yum.repos.d/local-rhel8.repo
</pre>
<p>Service side:</p>
<p>I created the repo metadata using following command, after rebuilding it </p>
<pre>
# createrepo_c /usr/share/nginx/html/local_repo
</pre>
<p>Client side: </p>
<p>I had to specifically list each of the directories for the Base repo and the AppStream Repo</p>
<pre>
[root@centos8-client ~]# cat /etc/yum.repos.d/local-rhel8.repo
[LocalRepo_BaseOS]
name=LocalRepo_BaseOS
enabled=1
metadata_expire=-1
gpgcheck=0
baseurl=http://192.168.1.96/local_repo/BaseOS
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
[LocalRepo_AppStream]
name=LocalRepo_AppStream
enabled=1
metadata_expire=-1
gpgcheck=0
baseurl=http://192.168.1.96/local_repo/AppStream
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Aras		</title>
		<link>https://www.tecmint.com/create-local-http-yum-dnf-repository-on-rhel-8/comment-page-1/#comment-1333979</link>

		<dc:creator><![CDATA[Aras]]></dc:creator>
		<pubDate>Sun, 17 May 2020 20:16:28 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=32757#comment-1333979</guid>

					<description><![CDATA[How do we keep our local repo up to date?]]></description>
			<content:encoded><![CDATA[<p>How do we keep our local repo up to date?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Xavier NG		</title>
		<link>https://www.tecmint.com/create-local-http-yum-dnf-repository-on-rhel-8/comment-page-1/#comment-1309332</link>

		<dc:creator><![CDATA[Xavier NG]]></dc:creator>
		<pubDate>Mon, 30 Dec 2019 08:02:24 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=32757#comment-1309332</guid>

					<description><![CDATA[It seems we missing one step: &lt;strong&gt;GPG-key generate&lt;/strong&gt;?

I got the error [Errno 14] PYCURL ERROR 22 - &quot;The requested URL returned an error: 403 Forbidden&quot; may be related to this]]></description>
			<content:encoded><![CDATA[<p>It seems we missing one step: <strong>GPG-key generate</strong>?</p>
<p>I got the error [Errno 14] PYCURL ERROR 22 &#8211; &#8220;The requested URL returned an error: 403 Forbidden&#8221; may be related to this</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: stine		</title>
		<link>https://www.tecmint.com/create-local-http-yum-dnf-repository-on-rhel-8/comment-page-1/#comment-1304119</link>

		<dc:creator><![CDATA[stine]]></dc:creator>
		<pubDate>Sun, 08 Dec 2019 18:07:12 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=32757#comment-1304119</guid>

					<description><![CDATA[How do you keep your local repo up-to-date?  Under &lt;strong&gt;RHEL6&lt;/strong&gt; is was sane and logical. Under &lt;strong&gt;RHEL7&lt;/strong&gt; it was a mess.  I&#039;ve considered moving to Debian even before they were bought by IBM.]]></description>
			<content:encoded><![CDATA[<p>How do you keep your local repo up-to-date?  Under <strong>RHEL6</strong> is was sane and logical. Under <strong>RHEL7</strong> it was a mess.  I&#8217;ve considered moving to Debian even before they were bought by IBM.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
