Re: Requires for local install

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Sep 22, 2017 at 09:47:15PM -0400, David Muse wrote:
> But, when doing a yum localinstall or dnf install with a local path,
> the user has to either install all rpm's or manually resolve
> dependencies.
> 
> Is it common to specify inter-subpackage dependencies using Requires
> to resolve this, or are users just on their own if they're
> installing packages manually?

You should certainly use inter-subpackage requires in any case, if they
are genuine. But that won't help DNF (or Yum), as with local install
they only know about the files they are told about. But, what you
*could* do is:

 1. run "createrepo_c" on your directory of downloaded RPMs,
 2. use `dnf --repofrompath local,.`, and then
 3. use `dnf install packagename`

In step 1, createrepo_c is a drop-in but faster replacement for
createrepo.

In step 2, the syntax is "--repofrompath made-reponame,path", so you
could do '--repofrompath "My Repository",/home/mattdm/Downloads/RPMs'.

In step 3, use the package name not the file name, so no .rpm on the
end.

-- 
Matthew Miller
<mattdm@xxxxxxxxxxxxxxxxx>
Fedora Project Leader
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux