Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I use createrepo_c (provided by a package with the same name, dnf info createrepo_c):

Here is an example:

I place a .repo file in /etc/yum.repos.d/, lets call it testrepo.repo. It has the following content:

[testrepo]
name=testrepo
baseurl=file:///root/testrepo
enabled=1
gpgcheck=0
metadata_expire=60s

The command I use to create the repo then is:

createrepo_c /root/testrepo

(followed by dnf update -c testrepo.repo but that all depends on your use case)

I use createrepo_c (provided by a package with the same name, dnf info createrepo_c):

Here is an example:

I place a .repo file in /etc/yum.repos.d/, lets call it testrepo.repo. It has the following content:

[testrepo]
name=testrepo
baseurl=file:///root/testrepo
enabled=1
gpgcheck=0
metadata_expire=60s

The command I use to create the repo then is:

createrepo_c /root/testrepo

(followed by dnf update -c testrepo.repo testrepo.repo but that all depends on your use case)

I use createrepo_c (provided by a package with the same name, dnf info createrepo_c):

Here is an example:

I place a .repo file in /etc/yum.repos.d/, lets call it testrepo.repo. It has the following content:

[testrepo]
name=testrepo
baseurl=file:///root/testrepo
enabled=1
gpgcheck=0
metadata_expire=60s

The command I use to create the repo then is:

createrepo_c /root/testrepo

(followed by dnf update -c testrepo.repo but that all depends on your use case)