Provide repository installation instructions instead of offering rpm and deb packages

Ville Liski 106 Reputation points
2019-12-20T08:38:50.123+00:00

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.

Skype for Business Linux
Skype for Business Linux
Skype for Business: A Microsoft communications service that provides communications capabilities across presence, instant messaging, audio/video calling, and an online meeting experience that includes audio, video, and web conferencing.Linux: A family of open-source Unix-like operating systems.
456 questions
0 comments No comments
{count} votes

Accepted answer
  1. Marian Javorka - MSFT 936 Reputation points Microsoft Employee
    2019-12-20T13:57:39.943+00:00

    Thank you for your feedback @Ville Liski . 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
    
    8 people found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Thomas Rosendal 21 Reputation points
    2020-11-10T10:57:15.31+00:00

    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 @Marian Javorka - MSFT :

    ## 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  
      
    
    1 person found this answer helpful.
    0 comments No comments

  2. ephilip 1 Reputation point
    2020-10-29T19:23:39.33+00:00

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

    0 comments No comments