How to Install Apps on Ubuntu: A Complete Guide
This guide explains how to install apps on Ubuntu using the graphical Software Center, the terminal with APT, Snap packages, Flatpak, and third‑party repositories (PPAs). It provides step‑by‑step instructions, explanations of the underlying concepts, and answers to common questions, making it easy for beginners and experienced users alike to add software to their Ubuntu system Worth keeping that in mind..
Using the Ubuntu Software Center (GUI)
The Ubuntu Software Center is the official graphical interface for adding applications. It is designed for users who prefer point‑and‑click actions.
- Open the Software Center
- Click the grid icon on the dock or search for “Ubuntu Software” in the application menu.
- Browse or Search for an App
- Use the search bar at the top to type the name of the application you want, or scroll through categories such as Games, Productivity, or Development.
- Select the Application
- Click on the app’s entry to view its details page, which includes screenshots, a short description, user ratings, and system requirements.
- Install the App
- Press the Install button (often shown as a cloud with a downward arrow).
- Enter your user password when prompted; the system will download and install the package automatically.
- Launch the App
- Once installation completes, the button changes to Launch. Click it to start the newly installed program, or find it in the application menu.
Why use the Software Center?
- It handles dependencies automatically.
- Updates are managed through the same interface, ensuring you always run the latest version.
Installing Apps via Terminal with APT
For users comfortable with the command line, the APT package manager is the traditional way to install software on Ubuntu. APT works with the .deb package format and resolves dependencies automatically The details matter here. That alone is useful..
Basic Commands
-
Update the package list
sudo apt updateThis refreshes the local package index from the repositories configured on your system Worth knowing..
-
Install a package
sudo apt installReplace
<package-name>with the exact name of the software you wish to install (e.g.,vim,gparted). -
Remove a package
sudo apt removeUse
sudo apt purge <package-name>to delete configuration files as well Small thing, real impact..
Adding Software from the Command Line
-
Search for a package
apt searchThis helps you locate the correct package name And it works..
-
Install from a specific repository (if the package is not in the default repositories)
- First, add the repository (see the Adding Third‑Party Repositories section).
- Then run
sudo apt updateagain to make the new packages visible.
Important: Always use sudo because installing or removing software affects the whole system.
Installing Snap Packages
Snap is a universal package format created by Canonical. Snaps are self‑contained, include their own dependencies, and update automatically. They are ideal for applications that need frequent updates or run on multiple Linux distributions.
Installing a Snap
- Check if snapd is installed (it comes pre‑installed on most recent Ubuntu releases).
snap version - Search for a snap
snap find - Install the snap
Here's one way to look at it:sudo snap installsudo snap install code --classicinstalls Visual Studio Code with classic confinement.
Key points:
- Snap confinement isolates the app from the rest of the system, enhancing security.
- Snap packages may be larger than traditional
.debfiles because they bundle dependencies.
Installing Flatpak Packages
Flatpak is another universal package system that focuses on sandboxing and cross‑distribution compatibility. It is especially popular for desktop applications that require a consistent environment.
Installing Flatpak
- Enable the Flathub repository (the default source for most Flatpak apps)
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo - Install a Flatpak app
Example:flatpak install flathubflatpak install flathub org.gimp.GIMPinstalls GIMP.
Advantages of Flatpak:
- Apps run in a sandbox, limiting access to system resources.
- Updates are handled centrally via the Flathub repository.
Adding Third‑Party Repositories (PPAs)
Personal Package Archives (PPAs) are user‑maintained repositories that provide newer or unofficial versions of software. Adding a PPA extends the range of packages available beyond the official Ubuntu repositories.
Steps to Add a PPA
- Install the software-properties package (if not already present)
sudo apt install software-properties-common - Add the PPA
2. **Add the PPA**
```bash
sudo add-apt-repository ppa:/
- Replace
<username>with the PPA maintainer’s Launchpad username and<ppa-name>with the specific PPA identifier (e.g.,ppa:ubuntu-mate-dev/mate-1.4). - You will be prompted to press ENTER to continue; confirm the operation by typing Y and pressing ENTER again.
-
Update the package index
sudo apt updateThis refreshes the list of available packages, now including those from the newly added PPA.
-
Install the desired software
sudo apt install- To give you an idea, to install a newer version of GIMP from a PPA, you would run
sudo apt install gimp. - If the PPA provides multiple versions of a package, you can explicitly request a version with
sudo apt install <package-name>=<version>.
- To give you an idea, to install a newer version of GIMP from a PPA, you would run
-
Optional: Pin the PPA (to prioritize its packages)
If you want to make sure the PPA’s packages take precedence over the default Ubuntu repositories, create a pinning file:echo -e "Package: *\nOrigin: PPA/ \nLabel: PPA- \nSuite: /\nComponent: /\nVersion: 1.0\nPin: release o=PPAs a= n= p=all\nPin-Priority: 500" | sudo tee /etc/apt/pin-notes > /dev/null Then run
sudo apt updateagain. ThePin-Priorityvalue (higher numbers have more priority) can be adjusted as needed Which is the point.. -
Remove a PPA (when it’s no longer needed)
sudo add-apt-repository --remove ppa:/ sudo apt update Removing a PPA cleans up the sources list and prevents accidental installation of outdated or incompatible packages.
Quick Reference Summary
| Method | Typical Use‑Case | Key Commands |
|---|---|---|
| APT (default repos) | Stable, officially supported software | sudo apt update && sudo apt install <pkg> |
| APT (third‑party repo) | Access newer or distribution‑specific releases | Add repo → sudo apt update → install |
| Snap | Cross‑distribution, auto‑updating apps with sandboxing | sudo snap install <snap> |
| Flatpak | Desktop apps needing strong isolation | flatpak install flathub <app-id> |
| PPA | Community‑maintained or beta software for Ubuntu | sudo add-apt-repository ppa:<user>/<ppa> → sudo apt update → install |
Conclusion
Ubuntu offers a versatile toolkit for software installation, ranging from the familiar APT ecosystem to modern containerized formats like Snap and Flatpak, and the flexible world of PPAs. By mastering these methods—adding third‑party repositories, leveraging Snap’s self‑contained packages, utilizing Flatpak’s sandboxed applications, and managing PPAs—you gain the freedom to choose the right tool for any scenario. Whether you need the latest desktop environment, a development toolchain, or a tightly secured application, Ubuntu’s package management landscape empowers you to keep your system up‑to‑date, secure, and perfectly meant for your workflow. Happy installing!