How To Get a List of Repositories and PPAS Installed in Ubuntu

Know the commands to obtain the list of repositories and PPAS installed in Ubuntu.

When managing Linux distros, we have numerous options to install various tools and applications that will be of great help within all the management that we must perform either management level, support or infrastructure.

There are a series of elements that we can add and install in the operating system, which we know as repositories and PPAs, which will allow us to extend the capabilities of the system to even higher levels than it has.

Today we will see how to list the repositories and PPAs that we have installed in Ubuntu 16.

What is a PPA?

PPA are personal files that allow developers to distribute software, including its updates, directly to the operating system without having to wait for the update to be officially released.

To know in detail the PPAs installed in Ubuntu 16 we will execute the following command:

apt-cache policy

This command will show us all the priorities of a resource:

In the generated list we can see in the first column the priority of the said process (ID) and then the process in question.

If we want to obtain a more readable list of the installed repositories we can make use of the following command:

apt-cache policy | grep http | awk '{print $2 $3}' | sort –u

We can visualize the results in a much more organized and specific way.

Differentiate packages according to their category

Those who start as follows refer to PPA packages:


The lines that begin in the following way refer to base repositories of the operating system.

http://co.archive and http://security

In this simple way, we have the possibility of obtaining the complete list of repositories and PPAs installed in our operating system Ubuntu 16.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *