我可以将 Azure CLI 和 Google Cloud CLI 放在同一个盒子上吗?



我在安装了Google Cloud CLI后尝试安装Azure CLI。这是我在运行 azure-cli 安装命令后得到的。

$ sudo apt-get update && sudo apt-get install azure-cli
Ign:1 http://packages.linuxmint.com sonya InRelease
Ign:2 http://packages.cloud.google.com/apt cloud-sdk-sonya InRelease          
Hit:3 http://packages.microsoft.com/repos/vscode stable InRelease              
Hit:4 http://packages.linuxmint.com sonya Release                              
Hit:5 http://archive.canonical.com/ubuntu xenial InRelease                     
Hit:6 http://archive.ubuntu.com/ubuntu xenial InRelease                        
Ign:7 http://packages.cloud.google.com/apt cloud-sdk-sonya Release             
Hit:8 http://ppa.launchpad.net/cwchien/gradle/ubuntu xenial InRelease          
Get:9 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]     
Hit:10 https://dl.yarnpkg.com/debian stable InRelease         
....

似乎它共享了Google Cloud CLI使用的一些文件。他们可以一起在同一个盒子里吗?如果是,如何实现它?

您始终可以从通用的Linux软件包(而不是为Ubuntu预先打包的软件包(在您选择的位置手动安装Google Cloud SDK,这样它就不会与其他SDK重叠/干扰。您只需要在执行和/或将其连接到执行环境中时注意。