Package / system tool

add-apt-repository — Debian family

add-apt-repository is used for package management or system administration in the Debian family. Consult the distribution manual for release-specific behaviour.

Availability: Debian and Ubuntu releases; package sources and privileges vary.中文

Syntax

add-apt-repository [options] repository

Examples

add-apt-repository is used for package management or system administration in the Debian family. Consult the distribution manual for release-specific behaviour.

sudo add-apt-repository <repository>

Show command help and options where supported.

add-apt-repository --help

Parameters, options and clauses

Option / clauseDescription
--remove <repository>Remove a configured repository or PPA.
-y, --yesRun without an interactive confirmation prompt.
--updateRefresh indexes after changing repository configuration.
Safety note

Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.

Official reference ↗Back to directory