admin管理员组

文章数量:1296858

After using GCP from 1 year, I noticed that I do everything from the GCP Console UI since my use-case is very basic: just GCE VM instances, autoscaling (MIG) with load balancers and managed SQL databases.

Can I remove "google-cloud-cli" package on the Ubuntu VMs without creating issues?

I will of course keep GCE system services installed.

After using GCP from 1 year, I noticed that I do everything from the GCP Console UI since my use-case is very basic: just GCE VM instances, autoscaling (MIG) with load balancers and managed SQL databases.

Can I remove "google-cloud-cli" package on the Ubuntu VMs without creating issues?

I will of course keep GCE system services installed.

Share Improve this question asked Feb 11 at 18:13 user2972081user2972081 6712 gold badges5 silver badges15 bronze badges 2
  • Why do you need to remove it? If you prefer a neutral image, do not use the default one provided by Google and prefer yours, or the community ones. – guillaume blaquiere Commented Feb 12 at 8:27
  • 1 @guillaumeblaquiere Because mainly I don't use it, it is like 650MB, it shows frequent "SyntaxWarning" validation issues (poor QA?) during updates, it has too frequent updates, it is slow when updating, etc. Good point in using custom neutral images, I was using the default ones with Ubuntu as base. – user2972081 Commented Feb 12 at 10:40
Add a comment  | 

1 Answer 1

Reset to default 1

To completely uninstall the Google Cloud CLI you need to locate your installation directory and user config directory :

gcloud info --format='value(installation.sdk_root)' 
gcloud info --format='value(config.paths.global_config_dir)' 

After you identify the location you can delete those both directories.

You can follow this instruction guide to uninstall your Google Cloud CLI.

本文标签: Can I remove googlecloudcli from GCP instancesStack Overflow