ubuntu:apt:list_all_repositories_and_ppas

This is an old revision of the document!


Ubuntu - apt - List all repositories and PPAs

apt repositories are found in /etc/apt/sources.list and /etc/apt/sources.list.d.


Using grep

grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/*

Using apt-cache

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

returns:

http://je.archive.ubuntu.com/ubuntu jammy-backports/main
http://je.archive.ubuntu.com/ubuntu jammy-backports/universe
http://je.archive.ubuntu.com/ubuntu jammy/main
http://je.archive.ubuntu.com/ubuntu jammy/multiverse
http://je.archive.ubuntu.com/ubuntu jammy/restricted
http://je.archive.ubuntu.com/ubuntu jammy/universe
http://je.archive.ubuntu.com/ubuntu jammy-updates/main
http://je.archive.ubuntu.com/ubuntu jammy-updates/multiverse
http://je.archive.ubuntu.com/ubuntu jammy-updates/restricted
http://je.archive.ubuntu.com/ubuntu jammy-updates/universe
http://security.ubuntu.com/ubuntu jammy-security/main
http://security.ubuntu.com/ubuntu jammy-security/multiverse
http://security.ubuntu.com/ubuntu jammy-security/restricted
http://security.ubuntu.com/ubuntu jammy-security/universe
https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu jammy/main
https://repo.radeon.com/amdgpu/5.4.6/ubuntu jammy/main
https://repo.radeon.com/rocm/apt/5.4.6 jammy/main

NOTE: apt-cache policy will only show the repos after you have run apt update.

  • If a repo has been added with add-apt-repository, it will not show up with apt-cache policy until apt update is run.
ubuntu/apt/list_all_repositories_and_ppas.1687096588.txt.gz · Last modified: 2023/06/18 13:56 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki