Ways to Install Discord on Ubuntu 22.04
Originally developed as a communication tool for gamers, Discord has evolved into a communication app for everyone. Anyone can sign up for free and talk via voice, video, and text with anyone directly or with whole groups, also known as servers, all while sharing media and files as well.
It’s a cross-platform tool that you can use with all major operating systems. So, you can communicate with your friends on Windows, macOS, or Linux alike. In this guide, we’re going to take a look at the ways you can use to install Discord on Ubuntu 22.04.
Flatpak is a popular package manager for Linux. However, it’s not included in your Ubuntu 22.04 out of the box, therefore, you need to install it, if you want to proceed using it.
To install the package manager, you can use the following to start:
$sudo apt install flatpak -y
Once this is done, you need to reboot your computer. You can do so through the following:
As soon as you log back into your system, you need to enable the flatpak package using the following:
$sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
This command will take a couple of seconds and once you get the prompt back, you are ready to start using the Flatpak package manager.
With these steps, we are now ready to start with the Discord installation. Type this:
$flatpak install flathub com.discordapp.Discord
One thing I prefer of Flatpak is that it shows you the permissions your tool is going to have:
As the process continues, it flatpak will show you the status of the installation in real time.
Once it is done, you will be prompted with this output rather than just getting the prompt back.
Unlike other options, you will not get an icon in the applications drawer to launch Discord if you installed using the flatpak method. You need to type in the following to run Discord via terminal:
$flatpak run com.discordapp.Discord
When you execute this, it will run start showing your terminal process your request to launch Discord. Following that, the Discord app will pop up and you need to enter your credentials to log in.
Uninstalling the Flatpak
You need to use the following in your terminal to uninstall the Discord Flatpak from your Ubuntu 22.04.
$flatpak uninstall --delete-data com.discordapp.Discord
Unlike the installation process, the uninstallation is fairly shorter. And just like that you are done. You can verify by trying to run Discord again.
Using the deb package
You can use the deb package from the official website to install it on Ubuntu 22.04 as well.
Download the package
You need to navigate to download the Discord deb package.
Depending on your bandwidth, the download will be complete in a matter of seconds.
When the package has completely downloaded, in your terminal navigate to the download directory and run the following to start the installation:
$sudo apt install ./discord-0.0.18.deb
Please note that at the time of writing this guide the latest version of Discord is 0.0.18, whenever you are executing the command above you need to replace “18” with the version mentioned in the name of your deb package.
You can simply use the following to start up Discord on your Ubuntu 22.04:
Here you can sign up or enter your credentials to log into your Discord account.
Uninstalling the deb package
Following this method, you can remove the deb package installation and all the related data as well as dependencies using this:
$sudo apt autoremove discord --purge -y
You will get the prompt back after the uninstallation has completed.
Using the software store
Launch your Ubuntu Software Store from taskbar.
You can open up search through the icon in the upper left corner, and type in “Discord” in the search text box.
From the options, select the one highlighted in the screenshot. In the next window, select the button to start the installation process and provide your password to start the installation process.
After you provide your password, the installation will proceed.
Once the installation is complete, the “Install” button will be replaced.
You can launch it through the applications search bar.
Here you can click on the icon to launch it.
You need to head back into the Ubuntu Software Store and click on the bin icon to remove this installation of Discord.
In the next dialog box, confirm that you really want to uninstall Discord from your computer.
Like installation, you’ll need to provide your password to proceed with the uninstallation and it will continue the process.
Once this is completed, you will see the “Install” button will appear again.
In this guide we saw methods to install Discord using the Flatpak package manager, the Deb package, and the Ubuntu Software Store on your Ubuntu 22.04. The Software Store method is pretty convenient for users who don’t want to tinker around the terminal with commands.
If at any point you face issues with installation, you can reach out to us through the comments below and we’ll help out.