# -*- coding: utf-8 -*-
from setuphelpers import *


def install():
    bin_name = glob.glob("teamviewer.*.rpm")[0]
    if get_distrib_linux() == 'fedora':
        run(f'LANG=C yum install -y {bin_name}')
    else:
        run('LANG=C yum install -y epel-release' ,timeout=900)
        install_rpm(bin_name)
    


def uninstall():
    uninstall_yum("teamviewer")
    autoremove_yum()
