Ask Your Question
0

How to download packages from local repo when no internet ?

asked 2016-07-14 05:38:44 -0500

I use fedora 23 and i have a centos 7 iso which i want to use as a local repo when there is no internet connection, but the problem is dnf tries to update and find no internet and exits when there are more than the local.repo file in the yum.repos.d directory. So to be clear what i want to do is use the local repo alongside remote repos and when ever there is no internet dnf falls back to local repository, i can always make a script to check internet connection every 5 minutes or so, and when there is no internet it moves all remote .repo files to a different folder and move them back to yum.repos.d when ever internet is back. But that would be very inefficient i wish a better way to do this thanks for reading, any help would be appreciated :)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-07-14 08:25:02 -0500

aeperezt gravatar image

You can create a local repo file, where you point to it to a server that could containt a copy of the repo. One way to go is to use cobbler http://cobbler.github.io/

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-07-14 05:37:03 -0500

Seen: 125 times

Last updated: Jul 14 '16