Re: The 'rpm -q --whatrequires' variant to get list of all dependant packages?

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

 



On Qui, 2016-11-10 at 08:08 +0100, Pavel Raiskup wrote:
> On Wednesday, November 2, 2016 5:51:51 PM CET Pavel Raiskup wrote:
> > 
> > Consider we have package 'foo-libs' that provides set of libraries.
> > 
> > How do I get all dependant packages (for batch rebuild of
> > dependencies after
> > package update)?  Something which takes soft dependencies into
> > account, too.
> > 
> > Some packages might depend on 'foo-libs' explicitly, some depend on
> > soname
> > (implicitly), some depend on particular file within package (say
> > /usr/libexec/libfoohelper).
> > 
> > Is there facility within 'dnf repoquery' that gives ultimate
> > answer?  I can do
> > sub-queries later do pick the important rebuild candidates.
> > 
> > Also, I would be curious about "ultimate" repoquery to get list of
> > SOURCE
> > dependants, e.g. on 'foo-devel'.
> Is there something similar to 'dnf repoquery --whatrequires foo-libs
> --all-deps'
> in RPM?  See the following:
> 
>     $ rpm -q --whatrequires libarchive
>     no package requires libarchive
>     $ sudo dnf remove libarchive
>     Dependencies resolved.
>     Error: The operation would result in removing the following
> protected packages: dnf.

I don't think so in dnf repoquery you may use --installed  to query
just installed packages.

    dnf repoquery --whatrequires libarchive --alldeps --installed 

with rpm you may query requires of all packages 

   rpm -qa --requires | grep libarchive

and with a few commands you can get the result . 

> Thanks,
> Pavel
> _______________________________________________
> devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
-- 
Sérgio M. B.

_______________________________________________
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