Skip to content

Instantly share code, notes, and snippets.

@cherepanov
Created October 13, 2019 12:22
Show Gist options
  • Save cherepanov/3a202a383d70675775c2804e1e9febf7 to your computer and use it in GitHub Desktop.
Save cherepanov/3a202a383d70675775c2804e1e9febf7 to your computer and use it in GitHub Desktop.
#! /bin/sh
# Script to get all the PPA installed on a system
for APT in `find /etc/apt/ -name \*.list`; do
grep -Po "(?<=^deb\s).*?(?=#|$)" $APT | while read ENTRY ; do
HOST=`echo $ENTRY | cut -d/ -f3`
USER=`echo $ENTRY | cut -d/ -f4`
PPA=`echo $ENTRY | cut -d/ -f5`
#echo sudo apt-add-repository ppa:$USER/$PPA
if [ "ppa.launchpad.net" = "$HOST" ]; then
echo sudo apt-add-repository ppa:$USER/$PPA
else
echo sudo apt-add-repository \'${ENTRY}\'
fi
done
done
sudo apt-add-repository ppa:alexlarsson/flatpak
sudo apt-add-repository ppa:webupd8team/java
sudo apt-add-repository ppa:gezakovacs/ppa
sudo apt-add-repository ppa:graphics-drivers/ppa
sudo apt-add-repository ppa:oibaf/graphics-drivers
sudo apt-add-repository 'https://deb.opera.com/opera-stable/ stable non-free'
sudo apt-add-repository 'https://deb.nodesource.com/node_12.x disco main'
sudo apt-add-repository ppa:linuxuprising/java
sudo apt-add-repository ppa:mamarley/updates
sudo apt-add-repository ppa:inkscape.dev/trunk
sudo apt-add-repository ppa:system76-dev/stable
sudo apt-add-repository ppa:otto-kesselgulasch/gimp-edge
sudo apt-add-repository '[arch=amd64] https://packages.microsoft.com/repos/vscode stable main'
sudo apt-add-repository ppa:paulo-miguel-dias/pkppa
sudo apt-add-repository 'https://dl.yarnpkg.com/debian/ rc main'
sudo apt-add-repository ppa:otto-kesselgulasch/gimp
sudo apt-add-repository '[arch=amd64] http://download.virtualbox.org/virtualbox/debian/ disco non-free contrib'
sudo apt-add-repository '[arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main'
sudo apt-add-repository 'http://archive.ubuntu.com/ubuntu eoan main restricted'
sudo apt-add-repository 'http://archive.ubuntu.com/ubuntu eoan-updates main restricted'
sudo apt-add-repository 'http://archive.ubuntu.com/ubuntu eoan universe'
sudo apt-add-repository 'http://archive.ubuntu.com/ubuntu eoan-updates universe'
sudo apt-add-repository 'http://archive.ubuntu.com/ubuntu eoan multiverse'
sudo apt-add-repository 'http://archive.ubuntu.com/ubuntu eoan-updates multiverse'
sudo apt-add-repository 'http://archive.ubuntu.com/ubuntu eoan-backports main restricted universe multiverse'
sudo apt-add-repository 'http://archive.canonical.com/ubuntu eoan partner'
sudo apt-add-repository 'http://archive.ubuntu.com/ubuntu eoan-security main restricted'
sudo apt-add-repository 'http://archive.ubuntu.com/ubuntu eoan-security universe'
sudo apt-add-repository 'http://archive.ubuntu.com/ubuntu eoan-security multiverse'
sudo apt-add-repository 'http://archive.ubuntu.com/ubuntu eoan-proposed main multiverse restricted universe'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment