mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-25 22:52:24 +03:00
remove_package added
This commit is contained in:
commit
f93f0c1200
1 changed files with 0 additions and 6 deletions
|
@ -272,12 +272,6 @@ class Util:
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def install_package(package_name, package_version):
|
|
||||||
command = "sudo apt-get --yes --force-yes install {0}={1}".format(package_name, package_version)
|
|
||||||
result_code, p_out, p_err = Util.execute(command)
|
|
||||||
return result_code, p_out, p_err
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def remove_package(package_name, package_version):
|
def remove_package(package_name, package_version):
|
||||||
command = "sudo apt-get --yes --force-yes purge {0}={1}".format(package_name, package_version)
|
command = "sudo apt-get --yes --force-yes purge {0}={1}".format(package_name, package_version)
|
||||||
|
|
Loading…
Reference in a new issue