1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-05 01:15:23 +02:00
tldr/pages/linux/add-apt-repository.md

21 lines
522 B
Markdown
Raw Permalink Normal View History

2018-08-21 10:33:37 +01:00
# add-apt-repository
> Manage `apt` repository definitions.
> More information: <https://manned.org/add-apt-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 {{[-r|--remove]}} {{repository_spec}}`
2018-08-21 10:33:37 +01:00
- 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 {{[-s|--enable-source]}} {{repository_spec}}`