Automatically upgrading Zoom on Debian/Ubuntu Linux | Jonathan Perry-Houts
Jonathan Perry-Houts

### Automatically upgrading Zoom on Debian/Ubuntu Linux

One of Zoom's many problems is that it is not possible to install it with a proper package manager**. It is therefore easy to forget to upgrade it. As new security vulnerabilities are discovered almost daily, it's important to keep up to date with the most recent version.

I simplified this process by adding the following code to my ~/.bashrc file.

upgradezoom ()
{
curVer="$(dpkg-query --showformat '${Version}' --show zoom)";
echo "Current version: $curVer"; agent='Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20100101 Firefox/33.0'; latestVer="$(curl -s -A "${agent}" 'https://zoom.us/download#client_4meeting' \ | grep 'linux-ver-text.*Version \s*[0-9\.]*' | grep -o '[0-9\.]*')"; echo "Latest version:$latestVer";
if [ "$1" == "--check" ]; then return 0; fi; if [ "${curVer}" == "${latestVer}" ]; then echo "Zoom is up to date."; return 0; else deb="$(mktemp --suffix='.deb')";
curl -sLo "$deb" 'https://zoom.us/client/latest/zoom_amd64.deb'; sudo dpkg -i "$deb";
rm -rf "$deb"; echo "Successfully installed Zoom version$latestVer";
fi
}


You can then upgrade to the latest version of Zoom with

source ~/.bashrc

You could also put that code in a script, and run it via cron every so often. If you do that, keep in mind that the script requires superuser permissions for installing updates, so you'd need to run the whole script in the root user's crontab.
sudo snap install zoom-client