Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
List PPA repositories on an Ubuntu system
#! /bin/sh
# listppa Script to get all the PPA installed on a system ready to share for reininstall
# From:
for APT in `find /etc/apt/ -name \*.list`; do
grep -o "^deb[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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.