What Is PPA and How Does It Install Software on Ubuntu Linux?

PPAs or Personal Package Archives are a type of repository used in Linux systems to store and distribute software packages.

Let’s learn what a PPA is, how they differ from standard repositories, how to add and remove PPAs, whether PPAs are safe to use, and finally, the advantages of using PPAs.

4

What Is PPA?

The world of free and open-source software (FOSS) relies on individual contributions. You may not be an official developer of distribution and yetmake critical contributions to open-source codeor develop applications that improve the user experience.

Note that you shouldn’t confuse PPA on Linux with the medical condition Primary Progressive Aphasia. PPA in the Linux ecosystem deals with packages, while PPA in medical terminology is a neurological disorder that affects language and communication.

cat in a package with ubuntu logo on its forehead

Sometimes, these applications may not be merged with the official repository of the software. This is where PPA comes to play. A personal package archive (PPA) is a repository that hosts software packages built and maintained by individuals or groups and made available for others.

PPAs are a convenient way to access the latest software versions that are not yet available in the official repositories of the operating system. They allow developers and users to easily distribute and install software packages that are not part of the official repositories or that provide newer versions of software than what is available in the official repositories.

launchpad website

Anyone wanting to download an app that is not yet part of the official repository can add the PPA of that application and install it on their system using the default package manager.

Ubuntu allows developers to create PPAs and host them onLaunchpad. Users can search for a package or repository on this site and add its PPA to their system.

adding a ppa in Ubuntu

How Are PPAs Different From Standard Repositories?

A Personal Package Archive (PPA), as the name hints, is a repository you can use to store your own packages or packages that are not available in the official repositories of your operating system. PPAs allow users to easily install and update software not provided by the official repositories of their Linux distribution.

On the other hand, standard repositories are collections of software packages officially provided by the operating system’s developers. The default package manager on a distro generally manages these repositories.

removing a ppa in Ubuntu

Standard repositories typically include a wide range of software packages that are thoroughly tested and maintained by the distro’s developers.

There are some key differences between PPAs and standard repositories:

How to Add a PPA on Ubuntu

Ubuntu references a special file calledsources.listto derive all the official and unofficial PPAs. To add a PPA, you need to update thesources.listfile with the address of the PPA and then revise your system.

Thankfully there’s a command that does all the work for you. Here’s what the process would look like for adding a PPA to Ubuntu:

Fire up a terminal and run the following command as superuser:

upgrade your system using the package manager of your distro. On Ubuntu, that would be using the APT tool:

Finally, install the software from the PPA you just added using the package manager:

That’s all the steps you need to follow to add a PPA. You can now download software from that PPA using the default package manager on your distro.

On Ubuntu, you should use the APT package manager to install software, or if you haveinstalled a different package manager, then use that.

Security Issues With PPAs

PPAs can pose security risks if they are not properly managed and used without caution. Some PPAs may contain packages not signed with a digital certificate, which means there is no way to verify the authenticity of the package. This can potentially allow an attacker to distribute malicious packages through the PPA, which could compromise your system’s security.

PPAs are often created and maintained by third-party individuals or groups rather than the operating system’s official developers. This means that the packages in a PPA may not be as thoroughly tested and supported as packages in the official repositories.

This can increase the risk of security vulnerabilities or other issues with the packages in the PPA. Adding a PPA to your system may also cause conflicts with packages in the official repositories, which can potentially break existing software or introduce security vulnerabilities.

How to Remove a PPA on Ubuntu

To remove a PPA, you simply need to delete the address of the PPA in thesources.listfile and then refresh your system’s repository list. Here are all the steps to follow:

Use the APT tool to remove the PPA repository from thesources.listfile:

upgrade your system using the package manager on your distro:

That’s all the steps you need to follow to remove a PPA. To check if the process worked, try installing software that is part of the PPA you removed. The package manager should throw an error.

As a rule of thumb, you should always uninstall the software of the PPA before removing the PPA itself. This is a good practice that prevents dated software from taking up space and potentially avoiding vulnerabilities that may not be mitigated as the installed software isn’t updated.

Advantages of Using PPAs on Ubuntu

There are several advantages to using PPAs. Let’s glance at a few of them:

PPAs are great when used with caution. Since these packages aren’t officially maintained and tested, you should always be wary of what permissions the software from a PPA requires.

If a package of a PPA requires root permissions to execute, we recommend avoiding it unless you are 100 percent sure it’s not malicious.

Now You Know What PPAs Are and How to Use Them

PPAs are a great way of sharing software. However, since these packages are not officially supported, sometimes, they may end up breaking your system.

Efficient package management is key to the longevity of your distribution and ensuring that you don’t have to go through the repeated hassle of formatting your disk. You should definitely learn how to find and fix broken packages if you want your system to function properly and stay healthy.

Broken packages need repairing or the software won’t run. Here’s how to find the broken packages and fix them in Linux.

Not Linux, not Windows. Something better.

Your phone is a better editor than you give it credit for.

Quality apps that don’t cost anything.

you may’t call this offline, Notion.

Sometimes the smallest cleaning habit makes the biggest mess.

Technology Explained

PC & Mobile