Ask Your Question
1

How is a local repository set up on fc 28?

asked 2018-08-21 21:29:04 -0600

Paul Maina gravatar image

I have been searching on instructions on how to set up a local yum repository on fc28. the closest I have gotten to is from the link below:

https://bencane.com/2013/04/15/creati...

I have seen no official communication of how to do this on fc 28. Kindly help.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2018-08-22 09:28:49 -0600

florian gravatar image

updated 2018-08-22 09:30:05 -0600

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)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2018-08-21 21:29:04 -0600

Seen: 267 times

Last updated: Aug 22 '18