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


def install():
    bin_name = glob.glob("freetube*amd64.rpm")[0]

    if get_distrib_linux() == "almalinux" and get_distrib_version().startswith("10"):   
        run('LANG=C yum install -y epel-release', timeout=900)

    if get_distrib_linux() == 'fedora':
        install_yum(bin_name)
    else:
        install_rpm(bin_name)

def uninstall():
    uninstall_yum("freetube")
