LLI Wiki — My Digital Knowledge Base

Add and remove a PPA repository on Ubuntu

Add, remove and inspect PPA APT repositories on Ubuntu and derivatives.

On Ubuntu and its derivatives, a PPA (Personal Package Archive) adds an extra APT repository. The commands below add a PPA, remove it, and show which repositories are configured.

Install the helper tool

sudo apt-get install software-properties-common

Add a PPA

sudo apt-add-repository ppa:example/ppa

Remove a PPA

sudo apt-add-repository --remove ppa:example/ppa

A PPA can also be removed by deleting its .list file in /etc/apt/sources.list.d/.

List the configured repositories

ls /etc/apt/sources.list.d/
cat /etc/apt/sources.list
Mastodon LLIMastodon SocialFosstodon