instalee/handlers/deb/install

10 lines
238 B
Bash
Executable file

#!/bin/sh
# Install a package from a local or downloaded .deb-file and remove it
loc="/tmp/install.deb"
case "$1" in
(http*) sudo wget -O "$loc" "$arg";;
(*) loc="$arg";;
esac
sudo dpkg -i "$loc"
sudo apt -f install
sudo rm -f "$loc"