instalee/handlers/apt/install_deb
2022-09-10 00:06:33 +02:00

10 lines
235 B
Bash
Executable file

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