The Wayback Machine - https://web.archive.org/web/20240602135122/https://www.geeksforgeeks.org/how-to-add-or-remove-ppa-in-ubuntu-using-gui-and-terminal/
Open In App

How to Add or Remove PPA in Ubuntu Using GUI and Terminal

Last Updated : 02 Jun, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

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.

Dash interface

 

In the “Software & Updates” interface below, head over to the “Other Software” tab and click on the “Add” button to add a new PPA.

Adding PPA URL

 

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.

Authenticate to make 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.

Remove PPA in Ubuntu

 

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.

Adding PPA from Terminal

 

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 from Terminal

 

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

Installing ppa-purge

 

Once it gets installed, we can remove a PPA using the following commands:

sudo ppa-purge ppa:shutter/ppa
Removing PPA using ppa-purge

 


Similar Reads

Using PPA in Linux
Personal Package Archives (PPA) is a unique software repository intended for non-standard software/updates. The PPA allows application developers and Linux users to create their own repositories to distribute software. It allows us to upload Ubuntu source packages to be built and published as an apt repository by Launchpad. With PPA, we can easily
6 min read
Create Desktop Shortcuts Using The Terminal on Ubuntu
Ubuntu is the most popular Linux distribution based on Debian. Linux is always tricky to use. We can easily create a Desktop shortcut for our files, folders, and installed software easily on Windows or Mac but on Ubuntu, it needs some work. In this article, we are going to discuss how to create a desktop shortcut for an installed application and fi
2 min read
How to Install Tilix Terminal Emulator in Ubuntu/Fedora/Arch Linux?
A terminal emulator is a software that helps in interacting with the computer machine and perform operations using commands. Tilix is a tiling terminal emulator formerly known as Terminix. It is an enhancement over a regular terminal and provides some important features. Features of Tilix Terminal Emulator: Enable users to split the terminal into d
3 min read
How To Open Gparted Terminal in Ubuntu?
Gparted is a GUI application that is useful for creating, editing, and deleting disk partitions. Gparted has a GUI interface which makes this tool easy to use for individuals who prefer GUI interfaces rather than the command line. How to install Gparted on LinuxStep 1: Update the system sudo apt-get updateStep 2: Now, run the below command to downl
6 min read
How to Open a TextEditor in an Ubuntu Terminal
The default text editor for Ubuntu and many other Linux distributions utilizing the GNOME desktop environment is the GNOME Text Editor, also referred to as Gedit. Gedit is a well-liked option for Linux users since it offers an easy-to-use interface for editing text files. This post will explain how to launch Ubuntu's GNOME Text Editor and provide s
3 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 instances when we wanted to have a GUI on our server. L
3 min read
How to Browse From the Linux Terminal Using W3M?
W3M is an open-source text-based terminal web browser for Linux used to browse through the terminal. It is simple to use and do not require any additional interacting interface application though it interacts through the terminal. It renders the web pages in a form as their original layout. How to Install W3M? As W3M is not included by default on m
1 min read
Using Lynx to Browse the Web From the Linux Terminal
Lynx is a terminal-based web browser for all Linux distributions. It shows the result as plain text on the terminal. It is a classic non-graphical text-mode web browser which displays the pages on the terminal. Lynx does not load images and multimedia contents, hence it is fast as compared to other browsers. One who do not want so many images and m
2 min read
How to Build Simple Terminal like Website using jQuery ?
Terminal is one of the most common tool used by developers. Many applications, frameworks, and even programming languages have more function which can be invoked using command line interface. Most of the computers come with at least one terminal in their operating system with command prompt now most replaced by cross-platform powershell in windows,
4 min read
Making a Port-Scanner in Kali Linux Terminal Using Python
In computer networking, a port is a virtual point where network connections start and end. It's like an open door of your home, If you don't close this then anyone can Enter your home. A port scanner is a program that is searching ports in a network and tries to find which ports are virtually open and close. It is common technique hackers or cyber-
4 min read
Article Tags :