From wikieduonline
Jump to navigation Jump to search

add-apt-repository is a python script included in software-properties-common package.

apt-add-repository -y ppa:ansible/ansible

sudo apt-add-repository "deb [arch=amd64] $(lsb_release -cs) main"

Example execution[edit]

sudo add-apt-repository 'deb [arch=amd64,arm64,ppc64el] bionic main'
Get:1 bionic InRelease [242 kB]
Hit:2 bionic InRelease
Get:3 bionic-updates InRelease [88.7 kB]
Get:4 bionic-backports InRelease [74.6 kB]
Get:5 bionic InRelease [6244 B]
Get:6 bionic-security InRelease [88.7 kB]
Get:7 bionic/main arm64 Packages [11.3 kB]
Get:8 bionic/main amd64 Packages [11.7 kB]
Get:9 bionic/main ppc64el Packages [11.3 kB]
Fetched 535 kB in 1s (679 kB/s)
Reading package lists... Done

Related commands[edit]

See also[edit]