How to Add or Remove PPA in Ubuntu Using GUI and Terminal
Last Updated :
02 Jun, 2022
The Ubuntu programs are available to meet the needs of Ubuntu users. Many of these programs are stored in software archives commonly referred to as repositories. Repositories make it easy to install new software, while also providing a high level of security since the software is thoroughly tested and built specifically for each version of Ubuntu. Personal Package Archives (PPA) is a unique software repository intended for non-standard software/updates. It helps us to share out software and updates directly to Ubuntu users. PPA allows us to upload Ubuntu source packages to be built and published as an apt repository by Launchpad.
PPA's are the only way to get your software updated in Ubuntu between two distro releases. In other words, if a new version of your favorite software comes out then you may not have to wait until the next version of the Ubuntu LTS comes out because the latest versions are not available in the repository so here we can use PPA to install the latest version of any software from the repository in Ubuntu All we need to do is to create our own source package, upload it and the Launchpad will build binaries and then host them in our own apt repository. This makes it easy for Ubuntu users to install packages in the same way they install standard Ubuntu packages, and one of the advantages is that they will automatically get updated once we make them available.
Adding PPA in Ubuntu(22.04LTS) via GUI
In Ubuntu, click on Unity Dash and search for “Software & Updates” as shown in the below figure.
In the “Software & Updates” interface below, head over to the "Other Software" tab and click on the "Add" button to add a new PPA.
In this example for demonstration, we are using the PPA of a screenshot tool named Shutter. To know the PPA for the latest version of any software we go to the website launchpad.net and type the software name we need in the search dialogue box for example shutter screenshot. Launchpad is a software collaboration platform for building and hosting ubuntu packages.
PPA of Shutter:
deb https://ppa.launchpadcontent.net/shutter/ppa/ubuntu hirsute main
Once the new PPA URL is added, click on Add Source button to add it as the source. An authentication dialogue box will appear and we enter the password to confirm the changes.
Removing PPA in Ubuntu(22.04LTS) via GUI
It is very easy to remove a PPA we just have to select the PPA from the list as shown in the picture below, then click on the Remove button to remove it.
Adding PPA in Ubuntu(22.04LTS) via Terminal
To add a PPA from the terminal, we use the syntax as shown below:
sudo add-apt-repository ppa:shutter/ppa
Here we are adding the PPA of a screenshot tool named Shutter. The command above will create a file under /etc/apt/sources.list.d.
Removing PPA in Ubuntu(22.04LTS) via Terminal
To remove the PPA using terminal, we use the syntax as shown below:
sudo add-apt-repository --remove ppa:shutter/ppa
This command is similar to adding a PPA. We use --remove option in the command following the exact name of the PPA. It will delete the PPA from the system.
Removing PPA using ppa-purge via terminal
The above two methods for removing PPA will only delete the PPA from the system but the packages installed from it will remain on the system, but we will not receive any updates from the PPA. Here is when PPA Purge comes into the picture. It is a command-line tool that disables a PPA repository from your software sources list. Apart from that, it reverts the system back to official Ubuntu packages provided by your distribution. In other words, it deletes a PPA and downgrades all the packages installed from it to the original version provided by your distribution.
To install ppa-purge, run the following command below:
sudo apt-get install ppa-purge
Once it gets installed, we can remove a PPA using the following commands:
sudo ppa-purge ppa:shutter/ppa
Similar Reads
How To Install and Use Remmina on Ubuntu
In today's digitally interconnected world, remote desktop software plays a pivotal role in various scenarios, from system administration to remote work. Among the plethora of options available, Remmina stands out as a robust, open-source remote desktop client specifically designed for Linux systems
5 min read
How to Open a TextEditor in an Ubuntu Terminal
Ubuntu and other Linux distributions using the GNOME desktop environment come pre-installed with a default text editor known as the GNOME Text Editor, commonly referred to as Gedit. Gedit is a user-friendly, lightweight, and powerful text editor with rich features, making it an ideal choice for casu
3 min read
How to Use 'git remote add origin' Command?
The `git remote add origin` command is used to add a remote repository to your local Git repository. This allows you to push and pull changes between your local and remote repositories. The term "origin" is an alias that refers to the remote repository URL. By convention, "origin" is used for the pr
2 min read
How To Login Using The Git Terminal?
Git is a widely used version control system that allows developers to collaborate on code. When working with remote repositories hosted on platforms like GitHub, GitLab, or Bitbucket, it's essential to authenticate yourself to perform actions such as cloning, pulling, or pushing code. This article w
3 min read
How to Install, Configure and Use GIT on Ubuntu?
Git is a powerful version control system widely used for tracking changes in source code during software development. This article will walk you through the steps to install, configure, and use Git on an Ubuntu system. Table of Content Installing Git with Default PackagesInstalling/Downloading Git f
5 min read
How to Install GUI on Ubuntu Server?
The Ubuntu Server is a variant of the standard Ubuntu. It is a tailored version for networks and services. Ubuntu Server is an open-source operating system for IoT devices and Servers. Unlike standard Ubuntu, the Ubuntu server doesn't have any Graphical User Interface or GUI. There may be many insta
3 min read
How to add remote origin in git?
Git, most popular version control system, revolutionized the way developers collaborate and manage code. One important feature of Git is remote repositories, which serve as centralized hubs for code collaboration. In this article, we'll explore the process of adding a remote origin to your Git repos
2 min read
How to Change Git Username in Terminal?
Suppose you're using Git for version control. In that case, you might want to change your Git username for various reasonsâwhether it's for correcting a typo, updating it to a new username, or switching to a different account. You can change your Git username in two ways:Globally: This sets the user
3 min read
How to Use the Git Submodule Init and Update Command?
Git submodules allow you to include and manage external repositories within your main repository. This is particularly useful for projects that rely on libraries or other codebases that are maintained separately. The `git submodule init` and `git submodule update` commands are essential for initiali
3 min read
How To Change The Project In GCP Using CLI Commands ?
Google Cloud Platform(GCP) offers various Cloud services such as cloud storage, cloud computing, deploying and scaling applications in the cloud e,c. GCP offers pay-per-use services. Apart from these, GCP offers many other services like hosting your websites in the cloud, running your own Operation
4 min read