Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

A command line utility to add and remove APT software repositories, such as PPAs. It is part of the software-properties-common package and installed in Ubuntu by default.

add-apt-repository is a python script that can be used to control APT software repositories via command line. It is generally used to add external sources such as PPAs (ppa-purge can be used to remove such sources more gracefully)

The script can append repositories to the /etc/apt/sources.list file or create a new file in the /etc/apt/sources.list.d directory. It requires root privilege.

Common usage example:

sudo apt-add-repository ppa:atareao/telegram

This creates a file, for example /etc/apt/sources.list.d/atareao-ubuntu-telegram-yakkety.list. After adding the repository, update APT:

sudo apt update

And packages from the added repository are now available and can be installed with APT:

sudo apt install telegram

related tags:

history | excerpt history