tldr/pages/linux/add-apt-repository.md

21 lines
505 B
Markdown
Raw Normal View History

2018-08-21 10:33:37 +01:00
# add-apt-repository
> Manages `apt` repository definitions.
> More information: <https://manned.org/apt-add-repository>.
2018-08-21 10:33:37 +01:00
- Add a new `apt` repository:
2018-08-21 10:33:37 +01:00
`add-apt-repository {{repository_spec}}`
- Remove an `apt` repository:
2018-08-21 10:33:37 +01:00
`add-apt-repository --remove {{repository_spec}}`
- Update the package cache after adding a repository:
`add-apt-repository --update {{repository_spec}}`
- Allow source packages to be downloaded from the repository:
2018-08-21 10:33:37 +01:00
`add-apt-repository --enable-source {{repository_spec}}`