From 96c053119ea711659f9d7bef1e2ff502399a2809 Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Fri, 12 Mar 2021 13:23:14 +0530 Subject: [PATCH] Use apt instead of gdebi to install local deb file Signed-off-by: Joseph Nuthalapati --- install-deb.clj | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/install-deb.clj b/install-deb.clj index 11fd2ed..662886e 100755 --- a/install-deb.clj +++ b/install-deb.clj @@ -7,12 +7,12 @@ (defn- install-deb [url] - (println "Downloading deb package..." - (download-binary url "package.deb") - (println "Installing...") - (run-cmd ["sudo" "gdebi" "--non-interactive" "package.deb"]) - (println "Cleaning up..") - (io/delete-file "package.deb") - (println "Done."))) + (println "Downloading deb package...") + (download-binary url "package.deb") + (println "Installing...") + (println (run-cmd ["sudo" "apt" "install" "./package.deb"])) + (println "Cleaning up..") + (io/delete-file "package.deb") + (println "Done.")) (unixify install-deb) -- 2.43.0