Skip to content

Instantly share code, notes, and snippets.

@onjin
Created July 29, 2021 08:05
Show Gist options
  • Save onjin/ef1ba348b2ff79808811e280df2d263c to your computer and use it in GitHub Desktop.
Save onjin/ef1ba348b2ff79808811e280df2d263c to your computer and use it in GitHub Desktop.
install/upgrade zoom by apt
#!/bin/bash
url=https://zoom.us/client/latest/zoom_amd64.deb
debdir=/usr/local/zoomdebs
aptconf=/etc/apt/apt.conf.d/100update_zoom
sourcelist=/etc/apt/sources.list.d/zoomdebs.list
sudo mkdir -p $debdir
( echo 'APT::Update::Pre-Invoke {"cd '$debdir' && wget -qN '$url' && apt-ftparchive packages . > Packages && apt-ftparchive release . > Release";};' | sudo tee $aptconf
echo 'deb [trusted=yes lang=none] file:'$debdir' ./' | sudo tee $sourcelist
) >/dev/null
sudo apt update
sudo apt install zoom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment