Welcome to our article of the day on the installation of Microsoft Teams on Rocky Linux 8 / AlmaLinux 8. Microsoft Teams is a proprietary software build to power business communications. It is developed by Microsoft Corporation as part of the Microsoft 365 products family.

Microsoft Teams offer good features such as Chat, Video Conferencing, File Sharing, Screen sharing, e.t.c, similar to other competing solutions such as Slack, Zoom, Google Meet, Webex, BlueJeans among many other products.

Microsoft Teams can run on Linux, Windows, macOS, Android, iOS and on a web browser. Installation on your Desktop machine or Mobile device is not compulsory if Web browser option works for you. In this guide we are more focused on the installation of Microsoft Teams on Rocky Linux 8 | AlmaLinux 8.

You should have a running installation of Rocky Linux 8 / AlmaLinux 8 operating system. You can refer to our previous guides with detailed instructions on how to install Rocky Linux 8 and Steps To Install AlmaLinux OS on VirtualBox|VMware|Xen|XCP-ng

Install Microsoft Teams on Rocky Linux 8 | AlmaLinux 8

We have two methods from which we can install Microsoft Teams on Rocky Linux 8 | AlmaLinux 8:

Method 1: Install Microsoft Teams on Rocky Linux 8 | AlmaLinux 8 from YUM repository

Add YUM repository to your Rocky / AlmaLinux system:

sudo tee /etc/yum.repos.d/msteams.repo<<EOF
[ms-teams]
name=MS Teams YUM Repository
baseurl=https://packages.microsoft.com/yumrepos/ms-teams/
enabled=1
gpgcheck=0
EOF

Update repolist to confirm the added repository is working:

$ sudo yum repolist
repo id                                                     repo name
anydesk                                                     AnyDesk CentOS - stable
appstream                                                   Rocky Linux 8 - AppStream
baseos                                                      Rocky Linux 8 - BaseOS
epel                                                        Extra Packages for Enterprise Linux 8 - x86_64
epel-modular                                                Extra Packages for Enterprise Linux Modular 8 - x86_64
extras                                                      Rocky Linux 8 - Extras
ms-teams                                                    MS Teams YUM Repository
powertools                                                  Rocky Linux 8 - PowerTools

Let’s try search for teams package:

$ sudo dnf search teams
MS Teams YUM Repository                                                                                                            21 kB/s |  41 kB     00:01
================================================================= Name & Summary Matched: teams ==================================================================
teams.x86_64 : Microsoft Teams for Linux is your chat-centered workspace in Office 365.
teams-insiders.x86_64 : Microsoft Teams for Linux is your chat-centered workspace in Office 365.
====================================================================== Name Matched: teams =======================================================================
python3-openid-teams.noarch : OpenID support for Flask

To show all the versions of the package available in the repository, run the following command:

$ sudo dnf  --showduplicates list teams
Last metadata expiration check: 0:01:14 ago on Sun 06 Jun 2021 11:03:27 PM EAT.
Available Packages
teams.x86_64                                                                1.2.00.32451-1                                                                ms-teams
teams.x86_64                                                                1.3.00.958-1                                                                  ms-teams
teams.x86_64                                                                1.3.00.5153-1                                                                 ms-teams
teams.x86_64                                                                1.3.00.16851-1                                                                ms-teams
teams.x86_64                                                                1.3.00.25560-1                                                                ms-teams
teams.x86_64                                                                1.3.00.30857-1                                                                ms-teams
teams.x86_64                                                                1.4.00.4855-1                                                                 ms-teams
teams.x86_64                                                                1.4.00.7556-1                                                                 ms-teams

As seen that the package is available let’s proceed to install it:

$ sudo dnf install teams
Last metadata expiration check: 0:02:52 ago on Sun 06 Jun 2021 11:03:27 PM EAT.
Dependencies resolved.
==================================================================================================================================================================
 Package                                  Architecture                      Version                                    Repository                            Size
==================================================================================================================================================================
Installing:
 teams                                    x86_64                            1.4.00.7556-1                              ms-teams                             101 M
Installing dependencies:
 libXScrnSaver                            x86_64                            1.2.3-1.el8                                appstream                             30 k

Transaction Summary
==================================================================================================================================================================
Install  2 Packages

Total download size: 101 M
Installed size: 273 M
Is this ok [y/N]: y

Wait as the packages are downloaded locally to the system and installation to be completed.

...
Downloading Packages:
(1/2): libXScrnSaver-1.2.3-1.el8.x86_64.rpm                                                                                        33 kB/s |  30 kB     00:00
(2/2): teams-1.4.00.7556-1.x86_64.rpm                                                                                             1.1 MB/s | 101 MB     01:28
------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                             1.1 MB/s | 101 MB     01:29
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                          1/1
  Installing       : libXScrnSaver-1.2.3-1.el8.x86_64                                                                                                         1/2
  Installing       : teams-1.4.00.7556-1.x86_64                                                                                                               2/2
  Running scriptlet: teams-1.4.00.7556-1.x86_64                                                                                                               2/2
Redirecting to /bin/systemctl start atd.service

  Verifying        : libXScrnSaver-1.2.3-1.el8.x86_64                                                                                                         1/2
  Verifying        : teams-1.4.00.7556-1.x86_64                                                                                                               2/2
Installed products updated.

Installed:
  libXScrnSaver-1.2.3-1.el8.x86_64                                                   teams-1.4.00.7556-1.x86_64

Complete!

The application can be launched from the command line using the following command:

$ teams

Or from your current Desktop environment session:

Then signup with your personal Microsoft account or Company’s profile to start using the software.

Method 2: Install Microsoft Teams on Rocky Linux 8 | AlmaLinux 8 from Snap

The second method is installation of Microsoft Teams on Rocky Linux 8 | AlmaLinux 8 from Snap packages.

NOTE: This may give you an outdated version of Microsoft Teams for Linux. The first method is recommended

But we first need to install Snapd on our Rocky Linux 8 | AlmaLinux 8 system:

sudo dnf -y install epel-release
sudo dnf install snapd
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap

Validate that snapd socket is in Listening state:

$ systemctl status snapd.socket
● snapd.socket - Socket activation for snappy daemon
   Loaded: loaded (/usr/lib/systemd/system/snapd.socket; enabled; vendor preset: disabled)
   Active: active (listening) since Sun 2021-06-06 22:48:43 EAT; 10s ago
   Listen: /run/snapd.socket (Stream)
           /run/snapd-snap.socket (Stream)
    Tasks: 0 (limit: 23400)
   Memory: 0B
   CGroup: /system.slice/snapd.socket

Jun 06 22:48:43 almalinux.techviewleo.com systemd[1]: Starting Socket activation for snappy daemon.
Jun 06 22:48:43 almalinux.techviewleo.com systemd[1]: Listening on Socket activation for snappy daemon.

Finally install Teams for Linux on on Rocky Linux 8 | AlmaLinux 8 using the following command:

$ sudo snap install teams-for-linux
Setup snap "snapd" (12057) security profiles                                                                                                                     2021-06-06T22:52:14+03:00 INFO Waiting for automatic snapd restart...
teams-for-linux 1.0.6 from Julian Alarcon (alarconj) installed

We hope this article helped you to install Microsoft Teams Desktop application on your Rocky Linux / AlmaLinux 8 operating system. You can go through many other articles on on the same distro in the links below:

How To Install KDE Desktop Environment on Rocky Linux 8

Install KVM With Virtualization Manager on Rocky Linux 8

Install and Configure vsftpd FTP Server on Rocky Linux 8