The Ubuntu and other Debian based systems uses APT (Advanced Packages Tool) as package manager. Apt keeps all the configuration files under /etc/apt directory. This tutorial will help you to list all installed repositories under a Ubuntu or Debian based system via command line.

List Installed Repositories In Ubuntu

The remote repository references are configured in /etc/apt/sources.list file and all files under /etc/apt/sources.list.d/ directory. Use the following command to list all the configured repositories on apt based system: You will see the output like below: Alternatively, you can use apt-cache command to list all repositories. This command will provide also provide more details about the repository. Let’s try below command: Output:

Conclusion

In this tutorial, you have learned to find all the repositories configured on Ubuntu or Debian based system.