mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 14:22:17 +03:00
Remove PAckage Eklendi
This commit is contained in:
parent
cda00f2810
commit
0dc279d961
1 changed files with 6 additions and 0 deletions
|
@ -262,3 +262,9 @@ class Util:
|
||||||
result_code, p_out, p_err = Util.execute(command)
|
result_code, p_out, p_err = Util.execute(command)
|
||||||
return result_code, p_out, p_err
|
return result_code, p_out, p_err
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def remove_package(package_name, package_version):
|
||||||
|
command = "sudo apt-get --yes --force-yes purge {0}={1}".format(package_name, package_version)
|
||||||
|
result_code, p_out, p_err = Util.execute(command)
|
||||||
|
return result_code, p_out, p_err
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue