-
-
Notifications
You must be signed in to change notification settings - Fork 236
Home
Konfekt edited this page Feb 15, 2023
·
2 revisions
Welcome to the teams-for-linux wiki!
Here's a shell script to update to the latest RPM in Opensuse:
#!/bin/sh
# debug output and exit on error or use of undeclared variable or pipe error:
set -o xtrace -o errtrace -o errexit -o nounset -o pipefail
z="sudo zypper --non-interactive --ignore-unknown --gpg-auto-import-keys --no-gpg-checks"
zin="$z install --download in-advance --recommends --auto-agree-with-licenses --replacefiles --force-resolution --no-confirm"
url="https://github.com/IsmaelMartinez/teams-for-linux/releases"
latest_tag="$(curl --location --head "${url}/latest" | grep -i location: | sed 's/^.*\/tag\/\([^\/]*\)\r$/\1/')"
filename="teams-for-linux-${latest_tag:1}.x86_64.rpm"
uri_to_download="${url}/download/${latest_tag}/${filename}"
curl -sSfL "$uri_to_download" -o "/tmp/${filename}" &&
$zin "/tmp/${filename}"