list all the ppa repositories added to my system
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
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?
14.04 apt ppa repository
add a comment |
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?
14.04 apt ppa repository
add a comment |
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?
14.04 apt ppa repository
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?
14.04 apt ppa repository
14.04 apt ppa repository
edited Dec 6 '14 at 13:14
supremum
asked Nov 5 '14 at 8:36
supremumsupremum
6182716
6182716
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
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:
#! /bin/sh
# listppa Script to get all the PPA installed on a system ready to share for reininstall
for APT in `find /etc/apt/ -name *.list`; do
grep -o "^deb http://ppa.launchpad.net/[a-z0-9-]+/[a-z0-9-]+" $APT | while read ENTRY ; do
USER=`echo $ENTRY | cut -d/ -f4`
PPA=`echo $ENTRY | cut -d/ -f5`
echo sudo apt-add-repository ppa:$USER/$PPA
done
done
Save this as listppa.sh
listppa.sh > installppa.sh
This creates a script that you can backup somewhere, then run to add your PPAs on a fresh install by simply running:
installppa.sh
add a comment |
For those who just want to check the PPAs they have installed without actually doing anything with them automatically you can do:
$ apt-cache policy
In my system, here's a bit of what it shows:
% apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 http: ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main Translation-en
500 http: ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main i386 Packages
release v=12.04,o=LP-PPA-ubuntu-toolchain-r-test,a=precise,n=precise,l=Toolchain test builds,c=main
origin ppa.launchpad.net
500 http: ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main amd64 Packages
release v=12.04,o=LP-PPA-ubuntu-toolchain-r-test,a=precise,n=precise,l=Toolchain test builds,c=main
origin ppa.launchpad.net
500 http: ppa.launchpad.net/rael-gc/scudcloud/ubuntu/ precise/main Translation-en
500 http: ppa.launchpad.net/rael-gc/scudcloud/ubuntu/ precise/main i386 Packages
release v=12.04,o=LP-PPA-rael-gc-scudcloud,a=precise,n=precise,l=ScudCloud - Linux client for Slack,c=main
origin ppa.launchpad.net
...
Quoted from here:
[
apt-cache policy
] retrieves priorities associated with each repository resource. From
its output, you can infer a list of all available repositories and
PPAs.
Source: http://ask.xmodulo.com/list-installed-repositories-ppas-ubuntu.html
5
This is nice and simple, however the output also includes Ubuntu base repositories. If you're going to do that you may as well use the full, final command used in the link you gave as your source:apt-cache policy | grep http | awk '{print $2 $3}' | sort -u
. The output is better organized and easier on the eyes.
– pjd
Feb 9 '16 at 16:12
Note:apt-cache policy
will only show the repos after you have runapt-get update
. If you just added a repo withadd-apt-repository
, it will not show up withapt-cache policy
until you runapt-get update
.
– wisbucky
Apr 10 at 21:16
add a comment |
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:
grep -E '^debs' /etc/apt/sources.list /etc/apt/sources.list.d/*.list |
cut -f2- -d: |
cut -f2 -d' ' |
sed -re 's#http://ppa.launchpad.net/([^/]+)/([^/]+)(.*?)$#ppa:1/2#g' |
grep '^ppa:'
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.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f545881%2flist-all-the-ppa-repositories-added-to-my-system%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
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:
#! /bin/sh
# listppa Script to get all the PPA installed on a system ready to share for reininstall
for APT in `find /etc/apt/ -name *.list`; do
grep -o "^deb http://ppa.launchpad.net/[a-z0-9-]+/[a-z0-9-]+" $APT | while read ENTRY ; do
USER=`echo $ENTRY | cut -d/ -f4`
PPA=`echo $ENTRY | cut -d/ -f5`
echo sudo apt-add-repository ppa:$USER/$PPA
done
done
Save this as listppa.sh
listppa.sh > installppa.sh
This creates a script that you can backup somewhere, then run to add your PPAs on a fresh install by simply running:
installppa.sh
add a comment |
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:
#! /bin/sh
# listppa Script to get all the PPA installed on a system ready to share for reininstall
for APT in `find /etc/apt/ -name *.list`; do
grep -o "^deb http://ppa.launchpad.net/[a-z0-9-]+/[a-z0-9-]+" $APT | while read ENTRY ; do
USER=`echo $ENTRY | cut -d/ -f4`
PPA=`echo $ENTRY | cut -d/ -f5`
echo sudo apt-add-repository ppa:$USER/$PPA
done
done
Save this as listppa.sh
listppa.sh > installppa.sh
This creates a script that you can backup somewhere, then run to add your PPAs on a fresh install by simply running:
installppa.sh
add a comment |
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:
#! /bin/sh
# listppa Script to get all the PPA installed on a system ready to share for reininstall
for APT in `find /etc/apt/ -name *.list`; do
grep -o "^deb http://ppa.launchpad.net/[a-z0-9-]+/[a-z0-9-]+" $APT | while read ENTRY ; do
USER=`echo $ENTRY | cut -d/ -f4`
PPA=`echo $ENTRY | cut -d/ -f5`
echo sudo apt-add-repository ppa:$USER/$PPA
done
done
Save this as listppa.sh
listppa.sh > installppa.sh
This creates a script that you can backup somewhere, then run to add your PPAs on a fresh install by simply running:
installppa.sh
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:
#! /bin/sh
# listppa Script to get all the PPA installed on a system ready to share for reininstall
for APT in `find /etc/apt/ -name *.list`; do
grep -o "^deb http://ppa.launchpad.net/[a-z0-9-]+/[a-z0-9-]+" $APT | while read ENTRY ; do
USER=`echo $ENTRY | cut -d/ -f4`
PPA=`echo $ENTRY | cut -d/ -f5`
echo sudo apt-add-repository ppa:$USER/$PPA
done
done
Save this as listppa.sh
listppa.sh > installppa.sh
This creates a script that you can backup somewhere, then run to add your PPAs on a fresh install by simply running:
installppa.sh
edited Apr 4 at 19:01
answered Nov 5 '14 at 10:52
NGRhodesNGRhodes
7,0963449
7,0963449
add a comment |
add a comment |
For those who just want to check the PPAs they have installed without actually doing anything with them automatically you can do:
$ apt-cache policy
In my system, here's a bit of what it shows:
% apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 http: ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main Translation-en
500 http: ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main i386 Packages
release v=12.04,o=LP-PPA-ubuntu-toolchain-r-test,a=precise,n=precise,l=Toolchain test builds,c=main
origin ppa.launchpad.net
500 http: ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main amd64 Packages
release v=12.04,o=LP-PPA-ubuntu-toolchain-r-test,a=precise,n=precise,l=Toolchain test builds,c=main
origin ppa.launchpad.net
500 http: ppa.launchpad.net/rael-gc/scudcloud/ubuntu/ precise/main Translation-en
500 http: ppa.launchpad.net/rael-gc/scudcloud/ubuntu/ precise/main i386 Packages
release v=12.04,o=LP-PPA-rael-gc-scudcloud,a=precise,n=precise,l=ScudCloud - Linux client for Slack,c=main
origin ppa.launchpad.net
...
Quoted from here:
[
apt-cache policy
] retrieves priorities associated with each repository resource. From
its output, you can infer a list of all available repositories and
PPAs.
Source: http://ask.xmodulo.com/list-installed-repositories-ppas-ubuntu.html
5
This is nice and simple, however the output also includes Ubuntu base repositories. If you're going to do that you may as well use the full, final command used in the link you gave as your source:apt-cache policy | grep http | awk '{print $2 $3}' | sort -u
. The output is better organized and easier on the eyes.
– pjd
Feb 9 '16 at 16:12
Note:apt-cache policy
will only show the repos after you have runapt-get update
. If you just added a repo withadd-apt-repository
, it will not show up withapt-cache policy
until you runapt-get update
.
– wisbucky
Apr 10 at 21:16
add a comment |
For those who just want to check the PPAs they have installed without actually doing anything with them automatically you can do:
$ apt-cache policy
In my system, here's a bit of what it shows:
% apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 http: ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main Translation-en
500 http: ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main i386 Packages
release v=12.04,o=LP-PPA-ubuntu-toolchain-r-test,a=precise,n=precise,l=Toolchain test builds,c=main
origin ppa.launchpad.net
500 http: ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main amd64 Packages
release v=12.04,o=LP-PPA-ubuntu-toolchain-r-test,a=precise,n=precise,l=Toolchain test builds,c=main
origin ppa.launchpad.net
500 http: ppa.launchpad.net/rael-gc/scudcloud/ubuntu/ precise/main Translation-en
500 http: ppa.launchpad.net/rael-gc/scudcloud/ubuntu/ precise/main i386 Packages
release v=12.04,o=LP-PPA-rael-gc-scudcloud,a=precise,n=precise,l=ScudCloud - Linux client for Slack,c=main
origin ppa.launchpad.net
...
Quoted from here:
[
apt-cache policy
] retrieves priorities associated with each repository resource. From
its output, you can infer a list of all available repositories and
PPAs.
Source: http://ask.xmodulo.com/list-installed-repositories-ppas-ubuntu.html
5
This is nice and simple, however the output also includes Ubuntu base repositories. If you're going to do that you may as well use the full, final command used in the link you gave as your source:apt-cache policy | grep http | awk '{print $2 $3}' | sort -u
. The output is better organized and easier on the eyes.
– pjd
Feb 9 '16 at 16:12
Note:apt-cache policy
will only show the repos after you have runapt-get update
. If you just added a repo withadd-apt-repository
, it will not show up withapt-cache policy
until you runapt-get update
.
– wisbucky
Apr 10 at 21:16
add a comment |
For those who just want to check the PPAs they have installed without actually doing anything with them automatically you can do:
$ apt-cache policy
In my system, here's a bit of what it shows:
% apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 http: ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main Translation-en
500 http: ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main i386 Packages
release v=12.04,o=LP-PPA-ubuntu-toolchain-r-test,a=precise,n=precise,l=Toolchain test builds,c=main
origin ppa.launchpad.net
500 http: ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main amd64 Packages
release v=12.04,o=LP-PPA-ubuntu-toolchain-r-test,a=precise,n=precise,l=Toolchain test builds,c=main
origin ppa.launchpad.net
500 http: ppa.launchpad.net/rael-gc/scudcloud/ubuntu/ precise/main Translation-en
500 http: ppa.launchpad.net/rael-gc/scudcloud/ubuntu/ precise/main i386 Packages
release v=12.04,o=LP-PPA-rael-gc-scudcloud,a=precise,n=precise,l=ScudCloud - Linux client for Slack,c=main
origin ppa.launchpad.net
...
Quoted from here:
[
apt-cache policy
] retrieves priorities associated with each repository resource. From
its output, you can infer a list of all available repositories and
PPAs.
Source: http://ask.xmodulo.com/list-installed-repositories-ppas-ubuntu.html
For those who just want to check the PPAs they have installed without actually doing anything with them automatically you can do:
$ apt-cache policy
In my system, here's a bit of what it shows:
% apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 http: ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main Translation-en
500 http: ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main i386 Packages
release v=12.04,o=LP-PPA-ubuntu-toolchain-r-test,a=precise,n=precise,l=Toolchain test builds,c=main
origin ppa.launchpad.net
500 http: ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main amd64 Packages
release v=12.04,o=LP-PPA-ubuntu-toolchain-r-test,a=precise,n=precise,l=Toolchain test builds,c=main
origin ppa.launchpad.net
500 http: ppa.launchpad.net/rael-gc/scudcloud/ubuntu/ precise/main Translation-en
500 http: ppa.launchpad.net/rael-gc/scudcloud/ubuntu/ precise/main i386 Packages
release v=12.04,o=LP-PPA-rael-gc-scudcloud,a=precise,n=precise,l=ScudCloud - Linux client for Slack,c=main
origin ppa.launchpad.net
...
Quoted from here:
[
apt-cache policy
] retrieves priorities associated with each repository resource. From
its output, you can infer a list of all available repositories and
PPAs.
Source: http://ask.xmodulo.com/list-installed-repositories-ppas-ubuntu.html
answered Oct 28 '15 at 14:05
RomárioRomário
36138
36138
5
This is nice and simple, however the output also includes Ubuntu base repositories. If you're going to do that you may as well use the full, final command used in the link you gave as your source:apt-cache policy | grep http | awk '{print $2 $3}' | sort -u
. The output is better organized and easier on the eyes.
– pjd
Feb 9 '16 at 16:12
Note:apt-cache policy
will only show the repos after you have runapt-get update
. If you just added a repo withadd-apt-repository
, it will not show up withapt-cache policy
until you runapt-get update
.
– wisbucky
Apr 10 at 21:16
add a comment |
5
This is nice and simple, however the output also includes Ubuntu base repositories. If you're going to do that you may as well use the full, final command used in the link you gave as your source:apt-cache policy | grep http | awk '{print $2 $3}' | sort -u
. The output is better organized and easier on the eyes.
– pjd
Feb 9 '16 at 16:12
Note:apt-cache policy
will only show the repos after you have runapt-get update
. If you just added a repo withadd-apt-repository
, it will not show up withapt-cache policy
until you runapt-get update
.
– wisbucky
Apr 10 at 21:16
5
5
This is nice and simple, however the output also includes Ubuntu base repositories. If you're going to do that you may as well use the full, final command used in the link you gave as your source:
apt-cache policy | grep http | awk '{print $2 $3}' | sort -u
. The output is better organized and easier on the eyes.– pjd
Feb 9 '16 at 16:12
This is nice and simple, however the output also includes Ubuntu base repositories. If you're going to do that you may as well use the full, final command used in the link you gave as your source:
apt-cache policy | grep http | awk '{print $2 $3}' | sort -u
. The output is better organized and easier on the eyes.– pjd
Feb 9 '16 at 16:12
Note:
apt-cache policy
will only show the repos after you have run apt-get update
. If you just added a repo with add-apt-repository
, it will not show up with apt-cache policy
until you run apt-get update
.– wisbucky
Apr 10 at 21:16
Note:
apt-cache policy
will only show the repos after you have run apt-get update
. If you just added a repo with add-apt-repository
, it will not show up with apt-cache policy
until you run apt-get update
.– wisbucky
Apr 10 at 21:16
add a comment |
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:
grep -E '^debs' /etc/apt/sources.list /etc/apt/sources.list.d/*.list |
cut -f2- -d: |
cut -f2 -d' ' |
sed -re 's#http://ppa.launchpad.net/([^/]+)/([^/]+)(.*?)$#ppa:1/2#g' |
grep '^ppa:'
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.
add a comment |
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:
grep -E '^debs' /etc/apt/sources.list /etc/apt/sources.list.d/*.list |
cut -f2- -d: |
cut -f2 -d' ' |
sed -re 's#http://ppa.launchpad.net/([^/]+)/([^/]+)(.*?)$#ppa:1/2#g' |
grep '^ppa:'
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.
add a comment |
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:
grep -E '^debs' /etc/apt/sources.list /etc/apt/sources.list.d/*.list |
cut -f2- -d: |
cut -f2 -d' ' |
sed -re 's#http://ppa.launchpad.net/([^/]+)/([^/]+)(.*?)$#ppa:1/2#g' |
grep '^ppa:'
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.
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:
grep -E '^debs' /etc/apt/sources.list /etc/apt/sources.list.d/*.list |
cut -f2- -d: |
cut -f2 -d' ' |
sed -re 's#http://ppa.launchpad.net/([^/]+)/([^/]+)(.*?)$#ppa:1/2#g' |
grep '^ppa:'
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.
answered Dec 4 '17 at 7:52
ejmejm
1233
1233
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f545881%2flist-all-the-ppa-repositories-added-to-my-system%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown