#!/usr/bin/env bash # If you have Zoom installed, it might be safer to uninstall first. # This creates folders and downloads Zoom there, and uses apt-ftparchive # to get the release number and determine if a new version needs to be # downloaded again. 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