User Tools

Site Tools


ubuntu:apt:list_all_repositories_and_ppas

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ubuntu:apt:list_all_repositories_and_ppas [2023/06/18 13:56] peterubuntu:apt:list_all_repositories_and_ppas [2023/06/18 14:00] (current) peter
Line 8: Line 8:
  
 <code bash> <code bash>
 +grep ^[^#] /etc/apt/sources.list /etc/apt/sources.list.d/*
 +
 +or
 +
 grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/* grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/*
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  The top option removes comments from the output.
 +</WRAP>
 +
 +----
 +
 +===== Using add-apt-repository =====
 +
 +<code bash>
 +add-apt-repository --list
 +</code>
 +
 +returns:
 +
 +<code bash>
 +deb http://je.archive.ubuntu.com/ubuntu/ jammy restricted main universe multiverse
 +deb http://je.archive.ubuntu.com/ubuntu/ jammy-updates restricted main universe multiverse
 +deb http://je.archive.ubuntu.com/ubuntu/ jammy-backports restricted main universe multiverse
 +deb http://security.ubuntu.com/ubuntu jammy-security restricted main universe multiverse
 +deb https://repo.radeon.com/amdgpu/5.4.6/ubuntu jammy main
 +deb [arch=amd64] https://repo.radeon.com/rocm/apt/5.4.6 jammy main
 +deb https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu/ jammy main
 </code> </code>
  
Line 46: Line 74:
   * If a repo has been added with **add-apt-repository**, it will not show up with **apt-cache policy** until **apt update** is run.   * If a repo has been added with **add-apt-repository**, it will not show up with **apt-cache policy** until **apt update** is run.
 </WRAP> </WRAP>
 +
  
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