2022-02-08 15:57:42 +01:00
|
|
|
#!/bin/sh
|
|
|
|
# Install a package from a local or downloaded .deb-file and remove it
|
|
|
|
loc="/tmp/install.deb"
|
2022-07-04 23:14:58 +02:00
|
|
|
case "$1" in
|
2022-02-08 15:57:42 +01:00
|
|
|
(http*) sudo wget -O "$loc" "$arg";;
|
|
|
|
(*) loc="$arg";;
|
|
|
|
esac
|
|
|
|
sudo dpkg -i "$loc"
|
|
|
|
sudo apt -f install
|
|
|
|
sudo rm -f "$loc"
|