From 0dc279d961992ce17c953c4230791969e6fcc25c Mon Sep 17 00:00:00 2001 From: cemrealpsoy Date: Wed, 20 Jul 2016 16:16:19 +0300 Subject: [PATCH] Remove PAckage Eklendi --- opt/ahenk/base/util/util.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/opt/ahenk/base/util/util.py b/opt/ahenk/base/util/util.py index 48b0f83..4925481 100644 --- a/opt/ahenk/base/util/util.py +++ b/opt/ahenk/base/util/util.py @@ -262,3 +262,9 @@ class Util: result_code, p_out, p_err = Util.execute(command) 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 +