Often when you install zoom in linux you would have encountered broken install issue. Here is a function to save you from installing and keeping it updated:
#!/bin/bash
update_zoom() {
curl -LO https://zoom.us/client/latest/zoom_amd64.deb
package_names=$(dpkg --info zoom_amd64.deb | grep -oP 'Depends: \K.*' | sed 's/ ([^)]*)//g' | tr -d ',')
sudo apt install -y $package_names
sudo dpkg -i zoom_amd64.deb
rm zoom_amd64.deb
echo "Zoom has been installed..."
}
alias update_zoom="update_zoom"
Save the script into a file named update_zoom.sh
and save it in $HOME/scripts
directory.
Then source this file in your .bashrc
file as source $HOME/scripts/update_zoom.sh
Open a new terminal and you are all set to just execute update_zoom
command to install or update zoom.
Top comments (0)