Automatically recognize available package managers #187
Labels
distro
Anything outside of Fedora
effort/high
Requires 3 or more days
gain/medium
Affects multiple users
RFE
Currently, we have a hardcoded dictionary in
System.package_manager
saying what package managers should be used on what distributions. I think this is no longer a good enough solution.Maybe we could go through all package managers that Tracer can work with and see if they are available on the system. Each implementation of
IPackageManager
could provideis_available
method running whatever check is necessary to decide whether such package manager is available on the system. If no package manager is found, we will raise an exception.We should also do something like this for
if System.distribution() in ["rhel", "fedora", "centos", "centos-7", "mageia", "suse", "ol"]:
conditions.The text was updated successfully, but these errors were encountered: