Re: Requires for local install

2017-09-23 Thread Sérgio Basto
On Sat, 2017-09-23 at 09:51 -0400, Matthew Miller wrote:
> 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.

no , dnf install localpath , resolve all dependencies and install it as
well 


> > 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`

repofrompath and enablerepo and dnf command must be in same instructioni.e.  

dnf --enablerepo=abc --repofrompath=abc,/var/lib/mock/fedora-25-
x86_64/result --refresh update

> 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
> 
> Fedora Project Leader
> ___
> devel mailing list -- devel@lists.fedoraproject.org
> To unsubscribe send an email to devel-le...@lists.fedoraproject.org
-- 
Sérgio M. B.
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org


Re: Requires for local install

2017-09-23 Thread Philip Kovacs
Or use Fedora Copr to create personal repos for your projects.  There is a lot 
of utility in doing that,esp.  when you start dealing with multiple boxes or 
vms.  Doing local installs directly from rpms doesnot scale and becomes tedious 
very quickly.  If you're writing or modifying the spec yourself, try Copr.
https://copr.fedorainfracloud.org/
 

On Saturday, September 23, 2017 9:52 AM, Matthew Miller 
 wrote:
 

 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

Fedora Project Leader
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org


   ___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org


Re: Requires for local install

2017-09-23 Thread Matthew Miller
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

Fedora Project Leader
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org


Re: Requires for local install

2017-09-22 Thread Samuel Sieb

On 09/22/2017 06:47 PM, David Muse wrote:
I have a package with many subpackages.  Some of the subpackages depend 
on libraries provided by other subpackages.


When downloading with yum/dnf, the rpm's know what they depend on, and 
the dnf/yum can figure out what to install to satisfy the dependencies. 
No problem there.


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?


I'm not quite clear on what you're doing here, an example would be 
helpful.  But in general, if you are installing local packages, you have 
to pass all the local rpm files on the command line.  dnf will resolve 
any dependencies needed from the repos if necessary.  But obviously if 
there is a local file that is needed, dnf can't automatically find it.

___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org


Requires for local install

2017-09-22 Thread David Muse

Hello list,

I have a package with many subpackages.  Some of the subpackages depend 
on libraries provided by other subpackages.


When downloading with yum/dnf, the rpm's know what they depend on, and 
the dnf/yum can figure out what to install to satisfy the dependencies. 
No problem there.


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?


Thanks!

David Muse
david.m...@firstworks.com
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org