<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Dec 8, 2015 at 3:26 AM, arnaud gaboury <span dir="ltr">&lt;<a href="mailto:arnaud.gaboury@gmail.com" target="_blank">arnaud.gaboury@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have some rpm packages I have built myself. I need to create a local<br>
repo in order to reference these packages and solve dependency issues.<br>
<br>
What I did:<br>
- put all my .rpm in one folder<br>
- # createrepo /my/path/to/rpm<br>
<br>
The last command create and populate a subdir repodata<br>
<br>
then:<br>
# dnf config-manager --add-repo file:///my/path/to/rpm<br>
<br>
It added a file in /etc/yum.repo.d:<br>
----------------------------------------<br>
name=created by dnf config-manager from file:///storage/development/rpm/<br>
baseurl=file:///storage/development/rpm/<br>
enabled=1<br>
---------------------------------------<br>
<br>
% dnf repolist<br>
Failed to synchronize cache for repo &#39;storage_development_rpm_&#39; from<br>
&#39;file:///storage/development/rpm/&#39;: Yum repo downloading error:<br>
Downloading error(s):<br>
repodata/05309df762126d0acf74bbdb339aca4cccb304abb6305383785dcf3ff207d68e-filelists.xml.gz<br>
- Cannot download, all mirrors were already tried without success,<br>
disabling.<br>
Last metadata expiration check performed 16:11:26 ago on Mon Dec  7<br>
18:13:09 2015.<br>
repo id                                     repo name<br>
                  status<br>
*fedora                                     Fedora 23 - x86_64<br>
                  46,074<br>
home_jeroenooms_opencpu-1.5                 OpenCPU 1.5 (Fedora_22)<br>
                      14<br>
trillian                                    Trillian<br>
                       2<br>
*updates                                    Fedora 23 - x86_64 -<br>
Updates                  6,69<br>
<br>
There is no surprise as it is a local sqlite DB (as far as I understood).<br>
<br>
How shall I solve this issue without setting a http/ftp service ?</blockquote><div><br></div><div>It can handle local repo&#39;s fine so that&#39;s not your problem. I basically do the same thing but I put mine in /var/local/packages/$releasever</div><div><br></div><div>I would check permissions instead although I&#39;ve never used the dnf addrepo command, I wrote my own .repo file.</div><div><br></div><div>Thanks,</div><div>Richard</div></div></div></div>