[Rpm-ecosystem] Required version of rpm?

Marcus Hüwe suse-tux at gmx.de
Tue Jun 26 11:19:44 UTC 2018


On 2018-06-26 10:57:48 +0200, Miroslav Suchý wrote:
> Dne 25.6.2018 v 13:04 Igor Gnatenko napsal(a):
> > rpmlib(RichDependencies) <= 4.12.0-1
> 
> But on my F28:
> 
> $ LC_ALL=C rpm -q --whatprovides 'rpmlib(RichDependencies)'
> no package provides rpmlib(RichDependencies)
> 
To see if your rpm supports rich deps check the "rpm --showrc" output
(check the "Features supported by rpmlib" section) or you could do it
programmatically, for instance, via rpm-python


#!/usr/bin/python
from __future__ import print_function

import rpm


def has_richdep_support():
    dep = rpm.dsSingle(rpm.RPMTAG_PROVIDENAME, 'rpmlib(RichDependencies)')
    rpmlib_ds = rpm.ds.Rpmlib()
    return rpmlib_ds.Search(dep) != -1


print('has rich dep support:', has_richdep_support())


(I haven't found a way to query it directly via "rpm ...", though)


Marcus


More information about the Rpm-ecosystem mailing list