What Is PPA And How To Add Or Remove It In Ubuntu Using Command Line?
This post was last updated on August 1st, 2020 at 09:56 pm
In the context of the Linux operating system, PPA stands for “personal package archive”. By using PPA anyone can distribute software packages and update directly to the Ubuntu users. PPA makes it easy to add and remove software packages that are not available in apt repositories.
PPA allows one to upload Ubuntu source packages to be built and published as an apt repository by launchpad.net. This provides non-standard updates to Ubuntu users. To host your own package as PPA you need to create a source package and upload it to the launchpad it will build binaries and then host them in your own repository.
How to add a PPA?
You can add a PPA easily from your terminal. Here in this example, I will add an existing PPA of the grub customizer and then will install it. First, open the terminal by pressing Ctrl+Alt+T and then execute the below command –
sudo apt-add-repository ppa:danielrichter2007/grub-customizer
Once the repository gets added you can install the software by using the following command in the terminal –
sudo apt-get install grub-customizer
How To Remove a PPA?
There are various ways to remove a PPA. You can remove it by using the commands that are given below
sudo apt-add-repository --remove ppa:danielrichter2007/grub-customizer
The other way to remove it is by executing two commands that are given below –
sudo ls /etc/apt/sources.list.d
And then look at desired PPA that you want to remove and then execute the following command –
sudo rm -i /etc/apt/sources.list.d/ppa-name.list sudo rm -i /etc/apt/sources.list.d/danielrichter2007-grub-customizer-bionic.list
How to use ppa-purge to remove a PPA and the installed application?
If you want to remove a PPA along with the application installed with it then you should use the
ppa-purge. By default, you may not find it in many Ubuntu-based distributions so you can install it by using the following command –
sudo apt-get install ppa-purge
And then you can use it to remove a PPA by using the command that is given below-
sudo ppa-purge ppa-url
sudo ppa-purge ppa:danielrichter2007/grub-customizer
Is it Safe to Install from any PPA?
PPAs are used to include a specific software to your Ubuntu or other PPA compatible distributions such as Linux Mint, Kubuntu, etc. To use it safely in your system you should keep a few things in your mind.
- Who published the PPA? Please make sure that you are using the official PPA from a trusted publisher.
– For example, the official PPA of LibreOffice i.e
ppa:libreoffice/ppawould be considered more trusted than someone who created a similar PPA. The PPA from unknown sources can lead you to download corrupted and incompatible software that may harm your system.
- How many people have used the PPA? A number of users with good feedback can give you a sense of security and it can encourage you to use it.
This can be used as a sign of security, but at the same time, you must be cautious to see other parameters of the PPA as well to measure the reliability.
- When was the PPA last updated? You should always use an updated PPA because if the package dependencies that PPA needs are very old and newer version changes so much code of it then it is also possible that this old package won’t work on your system and your system can crash after using it.
That’s all for now on adding, removing PPA. If you want to say something on this topic you can write to us in the comments below.
You might also like
The cockpit is a web console that makes it easy to administer the GNU/Linux server. It has a user-friendly web-based interface that enables you to carry out different system admin
This post was last updated on August 1st, 2020 at 12:14 pmLinux or Unix is the multi-user operating system that means more than one user can use system resources simultaneously.
This post was last updated on August 1st, 2020 at 10:36 pmWhen you power on a Linux system it initializes different services and runs different processes. The whole process can