How can I list all the ppa repositories added to my system and save it to a .txt
file, so that I don't want to spend my time in searching for ppa's for fresh installations and i can just select a ppa line in my .txt
file and append to the command sudo add-apt-repository
? Also is there any other ways to do this in which i dont want to give the gpg keys manually?
From How can I get a list of all repositories and PPAs from the command line into an install script?
Part of the answer looks to have what you are looking for:
Save this as
listppa.sh
This creates a script that you can backup somewhere, then run to add your PPAs on a fresh install by simply running:
For those who just want to check the PPAs they have installed without actually doing anything with them automatically you can do:
In my system, here's a bit of what it shows:
Quoted from here:
Source: http://ask.xmodulo.com/list-installed-repositories-ppas-ubuntu.html
From my answer on How can I get a list of all repositories and PPAs from the command line into an install script?
List PPAs in
ppa:USER/REPO
format:List all repositories including PPAs in
ppa:USER/REPO
format:Just remove the last
grep
(don't forget to remove the|\
from the previous line after thesed
command).See my answer on the other question for full scripts you can save and use, including generating an install script.