_get_package_information in the lisa.operating_system Debian class will return package info even if a package is not installed. We use apt show which will show package info for packages which are in the db but not neccesarily installed yet.
For Fedora we use rpm -q which will only show packages which have been installed already. The equivalent of apt show for Fedora would be yum info or dnf info, and if you only want info for installed packages it would be yum/dnf info --installed
I'm not sure who has taken a dependency on the current behavior of this function, does anyone care if I fix RpmDistro or Fedora to show package info for available packages instead of installed packages?
_get_package_informationin the lisa.operating_systemDebianclass will return package info even if a package is not installed. We useapt showwhich will show package info for packages which are in the db but not neccesarily installed yet.For
Fedorawe userpm -qwhich will only show packages which have been installed already. The equivalent ofapt showfor Fedora would beyum infoordnf info, and if you only want info for installed packages it would beyum/dnf info --installedI'm not sure who has taken a dependency on the current behavior of this function, does anyone care if I fix
RpmDistroorFedorato show package info for available packages instead of installed packages?