2018-12-21 20:04:36 +08:00
|
|
|
# add-apt-repository
|
|
|
|
|
2019-10-18 11:30:29 +08:00
|
|
|
> apt 仓库管理.
|
2018-12-21 20:04:36 +08:00
|
|
|
|
2019-10-19 14:12:27 +08:00
|
|
|
- 添加一个新的 apt 仓库:
|
2018-12-21 20:04:36 +08:00
|
|
|
|
2019-01-01 13:39:40 +08:00
|
|
|
`add-apt-repository {{指定仓库}}`
|
2018-12-21 20:04:36 +08:00
|
|
|
|
2019-10-19 14:12:27 +08:00
|
|
|
- 移除一个 apt 仓库:
|
2018-12-21 20:04:36 +08:00
|
|
|
|
2019-01-01 13:39:40 +08:00
|
|
|
`add-apt-repository --remove {{指定仓库}}`
|
2018-12-21 20:04:36 +08:00
|
|
|
|
2019-10-19 14:12:27 +08:00
|
|
|
- 添加一个仓库并更新缓存:
|
2018-12-21 20:04:36 +08:00
|
|
|
|
2019-01-01 13:39:40 +08:00
|
|
|
`add-apt-repository --update {{指定仓库}}`
|
2018-12-21 20:04:36 +08:00
|
|
|
|
2019-10-19 14:12:27 +08:00
|
|
|
- 允许从指定仓库下载源码:
|
2018-12-21 20:04:36 +08:00
|
|
|
|
2019-01-01 13:39:40 +08:00
|
|
|
`add-apt-repository --enable-source {{指定仓库}}`
|