mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
20 lines
380 B
Markdown
20 lines
380 B
Markdown
![]() |
# apt-add-repository
|
||
|
|
||
|
> 管理 apt 仓库。
|
||
|
|
||
|
- 添加一个 apt 仓库:
|
||
|
|
||
|
`apt-add-repository {{repository_spec}}`
|
||
|
|
||
|
- 移除一个 apt 仓库:
|
||
|
|
||
|
`apt-add-repository --remove {{repository_spec}}`
|
||
|
|
||
|
- 添加一个 apt 仓库之后更新包缓存:
|
||
|
|
||
|
`apt-add-repository --update {{repository_spec}}`
|
||
|
|
||
|
- 开启源码包:
|
||
|
|
||
|
`apt-add-repository --enable-source {{repository_spec}}`
|