2018-12-21 12:04:36 +00:00
|
|
|
# add-apt-repository
|
|
|
|
|
2021-05-01 19:43:23 +01:00
|
|
|
> apt 仓库管理。
|
2018-12-21 12:04:36 +00:00
|
|
|
|
2021-05-01 19:43:23 +01:00
|
|
|
- 添加一个新的 apt 仓库:
|
2018-12-21 12:04:36 +00:00
|
|
|
|
2019-01-01 05:39:40 +00:00
|
|
|
`add-apt-repository {{指定仓库}}`
|
2018-12-21 12:04:36 +00:00
|
|
|
|
2021-05-01 19:43:23 +01:00
|
|
|
- 移除一个 apt 仓库:
|
2018-12-21 12:04:36 +00:00
|
|
|
|
2019-01-01 05:39:40 +00:00
|
|
|
`add-apt-repository --remove {{指定仓库}}`
|
2018-12-21 12:04:36 +00:00
|
|
|
|
2021-05-01 19:43:23 +01:00
|
|
|
- 添加一个仓库并更新缓存:
|
2018-12-21 12:04:36 +00:00
|
|
|
|
2019-01-01 05:39:40 +00:00
|
|
|
`add-apt-repository --update {{指定仓库}}`
|
2018-12-21 12:04:36 +00:00
|
|
|
|
2021-05-01 19:43:23 +01:00
|
|
|
- 允许从指定仓库下载源码:
|
2018-12-21 12:04:36 +00:00
|
|
|
|
2019-01-01 05:39:40 +00:00
|
|
|
`add-apt-repository --enable-source {{指定仓库}}`
|