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}" '' \
    | grep 'linux-ver-text.*Version \s*[0-9\.]*' | grep -o '[0-9\.]*')";
  echo "Latest version:  $latestVer";
  if [ "$1" == "--check" ]; then
    return 0;
  if [ "${curVer}" == "${latestVer}" ]; then
    echo "Zoom is up to date.";
    return 0;
    deb="$(mktemp --suffix='.deb')";
    echo 'Downloading latest version...';
    curl -sLo "$deb" '';
    sudo dpkg -i "$deb";
    rm -rf "$deb";
    echo "Successfully installed Zoom version $latestVer";

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.

** Edit: It turns out someone has repackaged the zoom client with snap. That is probably a better way to go, since snap packages are semi-sandboxed by default, which is important for something as sketchy as Zoom. You can install the snap package with:

sudo snap install zoom-client
Written on April 15th, 2020 by JPH