Skip to main content

Command Palette

Search for a command to run...

How to Install Apps on Linux

Published
6 min readView as Markdown

Installing apps on Linux might seem tricky if you're new to it, but once you get the hang of it, it’s quite straightforward. Whether you’re using Ubuntu, Fedora, or any other Linux distribution, there are multiple ways to add software to your system. You don’t have to rely on a single method; instead, you can choose the one that fits your needs best.

In this article, I’ll guide you through the most common and reliable ways to install apps on Linux. From using built-in package managers to exploring newer options like Snap and Flatpak, you’ll learn how to get your favorite apps up and running quickly and safely.

Understanding Linux Package Managers

Linux uses package managers to handle software installation, updates, and removal. These tools make managing apps easier by automating the process and ensuring compatibility.

What Are Package Managers?

Package managers are programs that download and install software packages from repositories. These repositories are collections of software maintained by your Linux distribution or third parties.

  • APT (Advanced Package Tool): Used by Debian, Ubuntu, and related distros.
  • DNF/YUM: Used by Fedora, CentOS, and Red Hat.
  • Pacman: Used by Arch Linux and its derivatives.
  • Zypper: Used by openSUSE.

Each package manager uses its own commands and package formats, but they all serve the same purpose: making software installation easy and safe.

How to Use APT on Ubuntu/Debian

APT is one of the most popular package managers. Here’s how you can install an app using APT:

  1. Open your terminal.
  2. Update your package list to get the latest versions:
    sudo apt update
    
  3. Install the app you want, for example, VLC media player:
    sudo apt install vlc
    
  4. Once installed, you can launch the app from your applications menu or by typing its name in the terminal.

APT also handles dependencies automatically, so you don’t have to worry about missing libraries.

Using DNF on Fedora

Fedora uses DNF, which works similarly to APT but with different commands:

  1. Open the terminal.
  2. Update your system packages:
    sudo dnf check-update
    
  3. Install an app, for example, GIMP:
    sudo dnf install gimp
    
  4. Launch the app from your menu or terminal.

DNF is fast and reliable, making Fedora a great choice for users who want up-to-date software.

Installing Apps with Snap Packages

Snap is a universal packaging system developed by Canonical, the company behind Ubuntu. It allows you to install apps that work across many Linux distributions.

Why Use Snap?

  • Cross-distribution compatibility: Snap apps run on most Linux distros.
  • Automatic updates: Snaps update themselves in the background.
  • Sandboxing: Apps run in isolation, improving security.

How to Install Snap and Use It

Most Ubuntu versions come with Snap pre-installed. If you don’t have it, install Snap first:

sudo apt install snapd

To install an app with Snap, use:

sudo snap install <app-name>

For example, to install Spotify:

sudo snap install spotify

Snaps are easy to manage and update automatically, which is convenient if you want hassle-free software.

Using Flatpak for App Installation

Flatpak is another universal package system that focuses on sandboxing and security. It’s popular among users who want the latest app versions without waiting for distro updates.

Benefits of Flatpak

  • Works on many Linux distributions.
  • Provides sandboxed environments for apps.
  • Allows multiple versions of the same app.

How to Set Up Flatpak

First, install Flatpak on your system. On Ubuntu, you can do this with:

sudo apt install flatpak

Then, add the Flathub repository, which hosts most Flatpak apps:

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

To install an app, for example, VLC:

flatpak install flathub org.videolan.VLC

Run the app with:

flatpak run org.videolan.VLC

Flatpak is a great choice if you want newer app versions and strong security.

Installing Apps from Source Code

Sometimes, the app you want isn’t available in package managers or universal formats. In that case, you can install it from source code.

When to Use Source Installation

  • The app is not in repositories.
  • You want the latest development version.
  • You need to customize the build.

Basic Steps to Install from Source

  1. Download the source code (usually a .tar.gz or .zip file).
  2. Extract the files.
  3. Open a terminal in the extracted folder.
  4. Run the following commands:
./configure
make
sudo make install

These commands configure the build, compile the code, and install the app. Note that you may need to install development tools and dependencies first.

Things to Keep in Mind

  • Installing from source can be complex.
  • You need to manage updates manually.
  • It’s best for advanced users or specific needs.

Using Graphical Software Centers

If you prefer not to use the terminal, most Linux distributions offer graphical software centers. These apps provide a user-friendly way to browse, install, and update software.

  • Ubuntu Software Center: Default on Ubuntu, supports APT, Snap, and Flatpak.
  • GNOME Software: Used on Fedora and other GNOME-based distros.
  • Discover: KDE’s software manager.

How to Use a Software Center

  1. Open the software center from your applications menu.
  2. Search for the app you want.
  3. Click “Install” and enter your password if prompted.
  4. Wait for the installation to finish.
  5. Launch the app from your menu.

Software centers are great for beginners and those who prefer a visual approach.

Tips for Managing Installed Apps on Linux

Once you’ve installed apps, you’ll want to keep them updated and organized.

Updating Apps

  • Use your package manager’s update commands (sudo apt update && sudo apt upgrade for APT).
  • Snap and Flatpak apps update automatically but can be manually refreshed (sudo snap refresh, flatpak update).

Removing Apps

To uninstall apps:

  • With APT:
    sudo apt remove <app-name>
    
  • With Snap:
    sudo snap remove <app-name>
    
  • With Flatpak:
    flatpak uninstall <app-id>
    

Checking Installed Apps

You can list installed packages with:

  • APT:
    apt list --installed
    
  • Snap:
    snap list
    
  • Flatpak:
    flatpak list
    

This helps you keep track of what’s on your system.

Conclusion

Installing apps on Linux is easier than many people think. Whether you use package managers like APT or DNF, universal systems like Snap and Flatpak, or graphical software centers, you have plenty of options. Each method has its strengths, so you can pick what suits your needs best.

By understanding these tools, you’ll feel more confident managing software on your Linux system. You don’t need to be a command-line expert to enjoy a wide range of apps. Just follow the steps, and you’ll have your favorite programs running in no time.

FAQs

How do I know which package manager my Linux distro uses?

Most distros use one main package manager. For example, Ubuntu uses APT, Fedora uses DNF, and Arch uses Pacman. You can check your distro’s official website or documentation to confirm.

Can I install Windows apps on Linux?

You can run some Windows apps on Linux using compatibility layers like Wine or virtualization software. However, not all Windows apps work perfectly, so native Linux apps are usually better.

What is the difference between Snap and Flatpak?

Both are universal packaging systems, but Snap is developed by Canonical and focuses on Ubuntu, while Flatpak is community-driven and emphasizes sandboxing and cross-distro compatibility.

Is it safe to install apps from third-party repositories?

Third-party repositories can be risky if not trusted. Always use official or well-known sources to avoid malware or unstable software.

How do I update all my installed apps at once?

Use your package manager’s update commands. For example, on Ubuntu, run sudo apt update && sudo apt upgrade to update all APT apps. Snap and Flatpak apps update automatically but can be manually refreshed if needed.

More from this blog

L

LinuxBloke | Linux Tips, Tricks & Troubleshooting

672 posts