系统软件包
nv unset
命令会删除您使用等效 nv set
命令设置的配置。本指南仅在 nv unset
命令与 nv set
命令不同时进行描述。
nv set system packages repository <repository> distribution <distribution> pool <pool-id>
配置要从中添加软件包的存储库的发行版池。
命令语法
语法 | 描述 |
---|---|
<repository> | https 或 http 格式的存储库 URL,或交换机上的目录和文件名 (/etc/myrepo )。 |
<distribution> | 存储库发行版。 |
<pool-id> | 存储库发行版池。 |
版本历史
在 Cumulus Linux 5.12.0 中引入
示例
cumulus@switch:~$ nv set system packages repository http://test.myrepo.com distribution mydist pool mypool
nv set system packages repository <repository> insecure
配置要从中添加软件包到受信任的存储库。
命令语法
语法 | 描述 |
---|---|
<repository> | https 或 http 格式的存储库 URL,或交换机上的目录和文件名 (/etc/myrepo )。 |
版本历史
在 Cumulus Linux 5.12.0 中引入
示例
cumulus@switch:~$ nv set system packages repository http://test.myrepo.com insecure enabled
nv set system packages repository <repository> key <key>
配置要从中添加软件包的存储库的安全密钥。
命令语法
语法 | 描述 |
---|---|
<repository> | https 或 http 格式的存储库 URL,或交换机上的目录和文件名 (/etc/myrepo )。 |
<key> | 安全密钥。 |
版本历史
在 Cumulus Linux 5.12.0 中引入
示例
cumulus@switch:~$ nv set system packages repository http://test.myrepo.com key thekey.asc
nv set system packages repository <repository> source
允许从指定的存储库添加源文件。
命令语法
语法 | 描述 |
---|---|
<repository> | https 或 http 格式的存储库 URL,或交换机上的目录和文件名 (/etc/myrepo )。 |
版本历史
在 Cumulus Linux 5.12.0 中引入
示例
cumulus@switch:~$ nv set system packages repository http://test.myrepo.com source enabled
nv set system packages use-vrf
配置在添加其他存储库时要使用的 VRF。默认 VRF 为 mgmt
。
版本历史
在 Cumulus Linux 5.12.0 中引入
示例
cumulus@switch:~$ nv set system packages use-vrf default