From 94728f74fb067b6236154fb7ddee872df27dc62e Mon Sep 17 00:00:00 2001 From: Prabuddha Chakraborty Date: Thu, 12 Nov 2015 16:15:25 +0530 Subject: [PATCH 1/3] apt.php added --- php/apt.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 php/apt.php diff --git a/php/apt.php b/php/apt.php new file mode 100644 index 00000000..ae067f49 --- /dev/null +++ b/php/apt.php @@ -0,0 +1,24 @@ +cmd = 'apt-get install '.$this->pkg ; + $this->execute_local(); + + } + + + function execute_local() { + $output = array(); + $res = exec( $this->cmd, $output, $return ); + $this->res = $output; + print_r( $this->res ); + } + + + +} From 29ef77d6cfb2ba3fb72c5419ab70acba7acc0969 Mon Sep 17 00:00:00 2001 From: Prabuddha Chakraborty Date: Fri, 13 Nov 2015 15:44:44 +0530 Subject: [PATCH 2/3] base class for apt,yum,etc --- php/pkgm/package_manager.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 php/pkgm/package_manager.php diff --git a/php/pkgm/package_manager.php b/php/pkgm/package_manager.php new file mode 100644 index 00000000..701a7d46 --- /dev/null +++ b/php/pkgm/package_manager.php @@ -0,0 +1,13 @@ + Date: Fri, 13 Nov 2015 15:46:18 +0530 Subject: [PATCH 3/3] Update apt --- php/apt.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/php/apt.php b/php/apt.php index ae067f49..56433f3d 100644 --- a/php/apt.php +++ b/php/apt.php @@ -2,7 +2,7 @@ -class APT +class APT extends PKG_MANAGER { function install() { @@ -22,3 +22,5 @@ class APT } + +