Difference between revisions of "Add-apt-repository"

From wikieduonline
Jump to navigation Jump to search
Line 7: Line 7:
 
<code>sudo [[apt-add-repository]] "deb [arch=amd64] https://apt.releases.hashicorp.com $([[lsb_release -cs]]) main"</code>
 
<code>sudo [[apt-add-repository]] "deb [arch=amd64] https://apt.releases.hashicorp.com $([[lsb_release -cs]]) main"</code>
  
==Example execution ==
+
== Example ==
 
  sudo add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://mirror.netinch.com/pub/mariadb/repo/10.4/ubuntu bionic main'
 
  sudo add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://mirror.netinch.com/pub/mariadb/repo/10.4/ubuntu bionic main'
 
  Get:1 http://mirrors.digitalocean.com/ubuntu bionic InRelease [242 kB]
 
  Get:1 http://mirrors.digitalocean.com/ubuntu bionic InRelease [242 kB]
Line 20: Line 20:
 
  Fetched 535 kB in 1s (679 kB/s)
 
  Fetched 535 kB in 1s (679 kB/s)
 
  Reading package lists... Done
 
  Reading package lists... Done
 
  
 
== Related commands ==
 
== Related commands ==

Revision as of 18:56, 12 September 2022

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] https://apt.releases.hashicorp.com $(lsb_release -cs) main"

Example

sudo add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://mirror.netinch.com/pub/mariadb/repo/10.4/ubuntu bionic main'
Get:1 http://mirrors.digitalocean.com/ubuntu bionic InRelease [242 kB]
Hit:2 https://download.docker.com/linux/ubuntu bionic InRelease
Get:3 http://mirrors.digitalocean.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:4 http://mirrors.digitalocean.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:5 http://mirror.netinch.com/pub/mariadb/repo/10.4/ubuntu bionic InRelease [6244 B]
Get:6 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:7 http://mirror.netinch.com/pub/mariadb/repo/10.4/ubuntu bionic/main arm64 Packages [11.3 kB]
Get:8 http://mirror.netinch.com/pub/mariadb/repo/10.4/ubuntu bionic/main amd64 Packages [11.7 kB]
Get:9 http://mirror.netinch.com/pub/mariadb/repo/10.4/ubuntu bionic/main ppc64el Packages [11.3 kB]
Fetched 535 kB in 1s (679 kB/s)
Reading package lists... Done

Related commands

See also

Advertising: