question

VilleLiski-4094 avatar image
4 Votes"
VilleLiski-4094 asked ·

Provide repository installation instructions instead of offering rpm and deb packages

It's not good practice to offer directly rpm and deb packages from web page an it's difficult to install said software programmatically that way.

It would be better to provide repository installation instructions for both apt and yum repositories and then provide the package name.

This can be offered as an alternative installation alongside the actual software installation packages is you feel that users may want to download unnecessary packages instead of using their underlying OS's package management from repositories.

office-teams-linux-itpro
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MarianJavorkaMSFT avatar image
6 Votes"
MarianJavorkaMSFT answered ·

Thank you for your feedback @VilleLiski-4094 . I will make sure we have our official docs updated with these instructions as well. I'll leave instructions here too

Debian and Ubuntu based distributions

 curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -

 sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/ms-teams stable main" > /etc/apt/sources.list.d/teams.list'

 sudo apt update
 sudo apt install teams

RHEL, Fedora and CentOS based distributions

 sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc

 sudo sh -c 'echo -e "[teams]\nname=teams\nbaseurl=https://packages.microsoft.com/yumrepos/ms-teams\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/teams.repo'

 sudo dnf check-update
 sudo dnf install teams

 # alternatively
 # yum check-update
 # sudo yum install teams

openSUSE based distributions

 sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc

 sudo sh -c 'echo -e "[teams]\nname=teams\nbaseurl=https://packages.microsoft.com/yumrepos/ms-teams\nenabled=1\nautorefresh=1\nkeeppackages=0\ntype=rpm-md\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/zypp/repos.d/teams.repo'

 sudo zypper refresh
 sudo zypper install teams
· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

This was what I needed (openSUSE) thanks!

1 Vote 1 ·
ephilip-6530 avatar image
0 Votes"
ephilip-6530 answered ·

All I needed to know using Opensuse Leap 15.2, Marian thanks

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ThomasRosendal-5884 avatar image
1 Vote"
ThomasRosendal-5884 answered ·

If you are using Ansible to configure a RHEL, Fedora or CentOS you could add the following to your .yml to do the same as the answer by @MarianJavorkaMSFT:

 ## Install the microsoft key.
   - name: Import a key from microsoft
     rpm_key:
       state: present
       key: https://packages.microsoft.com/keys/microsoft.asc
 ## Add the repo
   - name: Enable the microsoft repository for fedora
     copy:
       dest: /etc/yum.repos.d/ms-teams.repo
       content: |
         [teams]
         name=teams
         baseurl=https://packages.microsoft.com/yumrepos/ms-teams
         enabled=1
         gpgcheck=1
         gpgkey=https://packages.microsoft.com/keys/microsoft.asc
 ## Install teams
   - name: Ensure teams is installed from microsoft
     dnf:
       name:
         - teams
       state: latest
·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.