def get_default_tool(self):
    os_name = platform.system()
    if (os_name in ['Linux', 'FreeBSD']):
        import distro
        os_name = (distro.id() or os_name)
    elif ((os_name == 'Windows') and (self._conanfile.conf.get('tools.microsoft.bash:subsystem') == 'msys2')):
        os_name = 'msys2'
    manager_mapping = {'apt-get': ['Linux', 'ubuntu', 'debian'], 'yum': ['pidora', 'scientific', 'xenserver', 'amazon', 'oracle', 'amzn', 'almalinux', 'rocky'], 'dnf': ['fedora', 'rhel', 'centos', 'mageia'], 'brew': ['Darwin'], 'pacman': ['arch', 'manjaro', 'msys2'], 'choco': ['Windows'], 'zypper': ['opensuse', 'sles'], 'pkg': ['freebsd'], 'pkgutil': ['Solaris']}
    for (tool, distros) in manager_mapping.items():
        if (os_name in distros):
            return tool
def get_default_tool(self):
    os_name = platform.system()
    if (os_name in ['Linux', 'FreeBSD']):
        import distro
        os_name = (distro.id() or os_name)
    elif ((os_name == 'Windows') and (self._conanfile.conf.get('tools.microsoft.bash:subsystem') == 'msys2')):
        os_name = 'msys2'
    manager_mapping = {'apt-get': ['Linux', 'ubuntu', 'debian'], 'yum': ['pidora', 'scientific', 'xenserver', 'amazon', 'oracle', 'amzn', 'almalinux', 'rocky'], 'dnf': ['fedora', 'rhel', 'centos', 'mageia'], 'brew': ['Darwin'], 'pacman': ['arch', 'manjaro', 'msys2'], 'choco': ['Windows'], 'zypper': ['opensuse', 'sles'], 'pkg': ['freebsd'], 'pkgutil': ['Solaris']}
    for (tool, distros) in manager_mapping.items():
        if (os_name in distros):
            return tool