Ubuntu using the command to delete the PPA repository

  
                

The PPA repository is a software depot designed for Ubuntu users and is easier to use than other third-party software, but when you add a new PPA repository, you need to remove the old PPA repository. Do it? Let's take a look at how to delete the PPA repository under Ubuntu.

Personal Package Archive (PPA) is Ubuntu's unique solution that allows independent developers to build and contributors, the contribution of any custom packages to APT as a third party warehouse by starting the panel. If you are an Ubuntu user, it is possible that you have added some popular third-party PPA repositories to your Ubuntu system. If you need to delete a pre-configured PPA repository, here's how to do it.

If you want to add a third-party PPA repository to your system, click here:

The code is as follows:

$ sudo add-apt-repository ppa:webapps/preview

If you want to delete a PPA repository individually, run the following command:

The code is as follows:

$ sudo add-apt-repository --remove ppa:someppa/ppa

Note that the above command will not remove any packages that have already been installed or updated.

If you want to completely delete a PPA repository and include packages from this PPA installed or updated, you need the ppa-purge command.

First install the ppa-purge package:

The code is as follows:

$ sudo apt-get install ppa-purge

Then use the following command to delete PPA repository and related packages:

The code is as follows:

$ sudo ppa-purge ppa:webapps/preview

Special drops, after the release update, This method is especially useful when you are distinguishing and clearing corrupted PPA warehouses!

The above is the introduction of the method of deleting the PPA warehouse under Ubuntu. This article mainly uses the ppa-purge command to delete the PPA warehouse, which is simple and practical, and can completely delete the PPA warehouse.

Copyright © Windows knowledge All Rights Reserved