Skip to content

Commit

Permalink
install-deb-from-url.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
slspeek committed May 7, 2024
1 parent 531f0ff commit a34afd3
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 19 deletions.
11 changes: 11 additions & 0 deletions scripts/install-deb-from-url.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -e

URL=$1
DEB_FILE=$(basename $URL)

TEMPDIR=$(mktemp -d)
cd $TEMPDIR

wget --no-verbose $URL
DEBIAN_FRONTEND=noninteractive apt-get install --yes -qq ./$DEB_FILE
11 changes: 3 additions & 8 deletions scripts/install-dotnet.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
#!/usr/bin/env bash
set -e

cd /tmp
wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb

export DEBIAN_FRONTEND=noninteractive
dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
apt-get update
apt-get install -y dotnet-sdk-8.0
install-deb-from-url.sh https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb
apt-get -qq update || true
apt-get install --yes -qq dotnet-sdk-8.0
3 changes: 1 addition & 2 deletions scripts/install-earth-pro.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env bash
set -e

wget --no-verbose https://dl.google.com/dl/earth/client/current/google-earth-stable_current_amd64.deb -P /tmp
apt-get install --yes /tmp/google-earth-stable*.deb
install-deb-from-url.sh https://dl.google.com/dl/earth/client/current/google-earth-stable_current_amd64.deb
4 changes: 1 addition & 3 deletions scripts/install-google-chrome.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/usr/bin/env bash
set -e

cd /tmp
wget --no-verbose https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
apt-get install -y ./google-chrome-stable_current_amd64.deb
install-deb-from-url.sh https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
7 changes: 1 addition & 6 deletions scripts/install-megasync.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
#!/usr/bin/env bash
set -e

TEMPDIR=$(mktemp -d)

cd $TEMPDIR

wget --no-verbose https://mega.nz/linux/repo/Debian_12/amd64/megasync-Debian_12_amd64.deb
sudo apt-get install --yes ./megasync-Debian_12_amd64.deb
install-deb-from-url.sh https://mega.nz/linux/repo/Debian_12/amd64/megasync-Debian_12_amd64.deb

0 comments on commit a34afd3

Please sign in to comment.