Gangmax Blog

Add, list and remove PPA repositories

Add

From here.

1
2
sudo add-apt-repository ppa:ppa_name
sudo apt-get install package_name

List

From here.

Create a bash shell script with the following content.

1
2
3
4
5
6
7
8
9
#! /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

Remove

From here.

1
sudo add-apt-repository --remove ppa:dyatlov-igor/la-capitaine

Comments