How to Install Slack on Pop!_OS 20.04

Slack is one of the most popular collaboration communication platforms in the world. From it was initial launch in 2013, it has grown. It is now favored amongst development teams and corporations to integrate many services, run groups, meetings, etc. The way Slack works is to create channels for your teams, topics, customers, or co-workers. Slack also features voice and video calls, file sharing.

In the following tutorial, you will know how to install the Slack communication platform on Pop!_OS 20.04.

Prerequisites

  • Recommended OS: Pop!_OS 20.04 or higher.
  • User account: A user account with sudo or root access.

Update Operating System

Update your Pop!_OS 20.04 operating system to make sure all existing packages are up to date:

sudo apt update && sudo apt upgrade

The tutorial will be using the sudo command and assuming you have sudo status.

To verify sudo status on your account:

sudo whoami

Example output showing sudo status:

[joshua@popos ~]$ sudo whoami
root

To set up an existing or new sudo account, visit our tutorial on adding a User to Sudoers on Pop!_OS.

To use the root account, use the following command with the root password to log in.

su

Method 1. Install Slack with APT Manager

The first option is to use the default apt repository provided by Pop_OS 20.04’s repository. This is a stable and secure version and often the most recommended.

First, execute the following apt install command:

sudo apt install slack-desktop

Example output:

How to Install Slack on Pop!_OS 20.04

Type “Y,” then press the “ENTER KEY” to proceed with the installation.

Once installed, confirm the installation by checking the apt-cache policy on Slack.

sudo apt-cache policy slack

Example output:

How to Install Slack on Pop!_OS 20.04

Updates are handled using the standard apt update & upgrade command and internally within the application.

If you no longer wish to have Slack installed with APT, use the following command to remove the package.

sudo apt autoremove slack-desktop --purge -y

This will automatically remove any unused dependencies that were initially installed.

Method 2. Install Slack with Snap (Snapcraft)

The second option is to use the Snap package manager. Pop!_OS users may be familiar with Snap as it is created and maintained by Ubuntu; however, it is not natively installed on your system. However, this can be installed relatively quickly.

To install Snap, use the following command:

sudo apt install snapd

Example output:

How to Install Slack on Pop!_OS 20.04

Type “Y,” then press the “ENTER KEY” to proceed with the installation.

Once Snap is installed, it is highly recommended to log out and back in again or restart your service to ensure snap’s paths are updated correctly.

sudo systemctl restart snapd

Next, some packages come in classic, so you need to create a symlink to enable classic snap support.

sudo ln -s /var/lib/snapd/snap /snap

Next, you need to install the “snap core files” for everything to work correctly. Failure to do this may result in issues down the track.

sudo snap install core

Example output:

core 16-2.52.1 from Canonical✓ installed

Next, install the Slack package using snap:

sudo snap install slack --classic

Example output:

slack 4.20.0 from Slack✓ installed

As above, this informs you the Slack was successfully installed and the version number.

YOU MUST RESTART YOUR DESKTOP SESSION IF THE ICON IS MISSING!

To view the Slack Icon, you can log in and out of your session or use the following terminal command.

sudo systemctl restart gdm3

Ignore the above if the Slack icon is present. However, sometimes this bug can occur when installing new packages.

Snap packages are more significant in size than traditional repositories through the APT package manager for several reasons. However, the trade-off is more straightforward maintained packages that are often updated to the latest available version.

For the future, to update along with and any other packages installed by Snap, run the following command:

sudo snap refresh

If you no longer need to have Slack installed, remove it using the Snap remove command.

sudo snap remove slack

Example output:

slack removed

Method 3. Install Slack with Flatpak

The third option is to use the Flatpak package manager. By default, Flatpak is installed with Pop!_OS 20.04 unless you have removed it. This is another popular option similar to Snap.

First, if Flatpak has been removed, re-install it and its dependencies.

sudo apt install flatpak -y

Next, you need to enable Flatpack for Debian using the following command in your terminal:

sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Now install Slack using the following flatpak command:

flatpak install flathub com.slack.Slack

Example output:

How to Install Slack on Pop!_OS 20.04

A prompt will appear asking to install on (user) or system (root). Typically you will always pick option 2.

Type “Y” X2 times, then press the “ENTER KEY” X2 times to proceed with the installation.

YOU MUST RESTART YOUR DESKTOP SESSION IF THE ICON IS MISSING!

To view the Slack Icon, you can log in and out of your session or use the following terminal command.

sudo systemctl restart gdm3

Ignore the above if the Slack icon is present. However, sometimes this bug can occur when installing new packages.

Updates are handled by Flatpack automatically every time you log into your system, generally within the first 10 minutes.

To manually update Flatpak packages, run the following command.

flatpak update

To remove the Flatpack version of Slack, run the following command:

flatpak uninstall --delete-data com.slack.Slack

Example output:

How to Install Slack on Pop!_OS 20.04

How to Launch Slack Client

Now that you have the Slack client installed, launching can be done in two ways.

In your terminal type:

slack

If you would like to launch Slack and use the terminal, send it to the background:

slack &

Alternatively, Flatpak users will need to launch using the command below from a terminal instance:

flatpak run com.slack.Slack

However, this isn’t practical, and you would use the following path on your desktop to open with the path: Activities > Show Applications > Slack. If you cannot find it, use the search function in the Show Applications menu if you have many applications installed.

Example:

How to Install Slack on Pop!_OS 20.04

The first time you open Slack, you will be greeted by the following.

How to Install Slack on Pop!_OS 20.04

Please create a new account, or use your existing account to sign in, and that is it. Slack has been successfully installed on your desktop.

Comments and Conclusion

In the tutorial, you have learned to install Slack on Pop!_OS 20.04 using three methods. The most recommended is the APT or Flatpak version. Both package managers are natively installed on Pop!_OS 20.04, where Snap is an outsider.

Overall, Slack is a great program, one of the drawbacks, though, is the cost. Slack charges by the user, so If you get a few hundred to few thousand, it quickly becomes a drawback, hence why you only find corporations that use it and pay for a license. Most small businesses and development teams could not afford to pay for the premium features. However, it can still be used for free with relative ease if you accept missing out on a few things.

For more information, you can investigate and further learn about Slack by visiting the documentation page.



Follow LinuxCapable.com!

Like to get automatic updates? Follow us on one of our social media accounts!