Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to use aliases with bindep requirements?

I came to a case where the rpm dependencies do vary between distribution VERSION, mainly older relases use libselinux-python and newer one python3-libselinux

I found a command line trick that works for installing using yum and dnf that is visible below:

yum(dnf) install -y libselinux-python* python*-libselinux

The trick is to keep both wildcards because otherwise dnf would return an error code when it fails to find the first one. With wilcards both, yum and dnf behave the same: returning an error only if at the end none of the packages is installed. If one of the packages is installed, they will return success.

The question is how to do this with bindep.txt?