Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In which directory should I install Google Cloud's SDK (and SDKs in general)

Currently / For Some Reason, Google Cloud's SDK folder is located directly in my home /Users/myname directory. I like to keep my home directory clean of any files + folders outside the main couple of core directories: Applications, Documents, Downloads, Dropbox, etc. An SDK seems like something that should be installed in the macbook's initial /Library directory, not somewhere in Users/myname, and I'd like to move this folder to where it belongs.

As a follow up question - how should I go about this? Should I simply drag and drop the folder into a new location, or uninstall and reinstall entirely? Also, other than updating my .bash_profile, is there anything else to be done when moving the SDK location so that it still works?

Thanks!

like image 272
Canovice Avatar asked Nov 07 '25 09:11

Canovice


1 Answers

The google-cloud-sdk directory is in your HOME because that's where you extracted it :)

From the quickstart instructions:

Extract the archive to any location on your file system; preferably, your home directory.

So your home directory is the recommended location, but you can put it wherever you'd like. If you run the install.sh script the SDK will be configured in your shell pointing to that location.

If you don't want it taking up space in your home directory you could try /usr/local/lib, which is a typical location for "libraries".

like image 113
dimo414 Avatar answered Nov 11 '25 16:11

dimo414



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!