Use apt instead of gdebi to install local deb file
authorJoseph Nuthalapati <njoseph@riseup.net>
Fri, 12 Mar 2021 07:53:14 +0000 (13:23 +0530)
committerJoseph Nuthalapati <njoseph@riseup.net>
Fri, 12 Mar 2021 07:53:14 +0000 (13:23 +0530)
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
install-deb.clj

index 11fd2ed6661b1269919ea0379286364abf7def2e..662886e4a4a715555bce65ec46e710e0acfb314d 100755 (executable)
@@ -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)