macos 如何卸载 Google App Engine SDK

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9189054/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 08:51:05  来源:igfitidea点击:

How Do I uninstall Google App Engine SDK

macosgoogle-app-engine

提问by fangsterr

Ever since I installed the Google App Engine Launcher on my Mac (OS X Lion), I've been getting periodic alerts from the Google App Engine SDK about auto-updating, and I haven't been able to figure out how to uninstall/disable it.

自从我在 Mac (OS X Lion) 上安装了 Google App Engine Launcher 后,我就一直从 Google App Engine SDK 收到有关自动更新的定期警报,但我一直无法弄清楚如何卸载/禁用它。

I've looked at How do I delete the Google App Engine SDK from my mac?, but I couldn't find the file that was listed in the answer.

我看过如何从我的 mac 中删除 Google App Engine SDK?,但我找不到答案中列出的文件。

Any other suggestions?

还有其他建议吗?

回答by hansaplast

I installed Google App Engine without any Google Updater (December 2012). To remove all files which GAE installed run this:

我在没有任何 Google 更新程序的情况下安装了 Google App Engine(2012 年 12 月)。要删除 GAE 安装的所有文件,请运行:

rm -rf /Applications/GoogleAppEngineLauncher.app 
sudo find -L /usr/local/bin -type l -exec rm -- {} +
sudo rm /usr/local/google_appengine

The first line depends on the location of your GoogleAppEngineLauncher of course. The second line removes all invalid symlinks of the /usr/local/bin directory

当然,第一行取决于您的 GoogleAppEngineLauncher 的位置。第二行删除 /usr/local/bin 目录的所有无效符号链接

回答by Marvin Pinto

If you only wish to disablethe the App Engine autoupdate feature, do the following (source):

如果您只想禁用App Engine 自动更新功能,请执行以下操作(来源):

Eitherdelete the file:

要么删除文件:

~/Library/Preferences/com.google.Keystone.Agent.plist

Oradd a new Disabledproperty to it (if you wish to keep the file):

或者向其添加一个新Disabled属性(如果您希望保留该文件):

<key>Disabled</key>
<true/>

If you wish to uninstall Google Software Updatecompletely, do the following (source):

如果您希望完全卸载Google 软件更新,请执行以下操作(来源):

  1. Uninstall any Google programs you currently have installed on your computer.

  2. Open a Terminal window by going to Applications > Utilities in Finder.

  3. Google Software Update can be uninstalled for a specific user or for your whole system. Paste one of the following commands in Terminal:

  1. 卸载您当前安装在计算机上的所有 Google 程序。

  2. 通过转到 Finder 中的应用程序 > 实用程序打开终端窗口。

  3. 可以为特定用户或整个系统卸载 Google 软件更新。在终端中粘贴以下命令之一:

Uninstall for a specific user:

为特定用户卸载:

~/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/Resources/GoogleSoftwareUpdateAgent.app/Contents/Resources/install.py --uninstall

~/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/Resources/GoogleSoftwareUpdateAgent.app/Contents/Resources/install.py --uninstall

Uninstall for the whole system: (needs root access):

卸载整个系统:(需要root权限):

sudo /Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/Resources/GoogleSoftwareUpdateAgent.app/Contents/Resources/install.py --uninstall

sudo /Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/Resources/GoogleSoftwareUpdateAgent.app/Contents/Resources/install.py --uninstall

Note that the two commands listed above are supposed to be on one line

请注意,上面列出的两个命令应该在一行上

Of course then it goes without saying that you can delete the directory that you chose to store the App Engine Python SDK.

当然,不用说,您可以删除您选择用于存储 App Engine Python SDK 的目录。

Also note that if your .plistfile is in binary format, you'll need to convert it to XML and then back when you're done (source).

另请注意,如果您的.plist文件是二进制格式,则需要将其转换为 XML,然后在完成后返回(source)。

From binary to XML:

从二进制到 XML:

plutil -convert xml1 some_file.plist

From XML to binary:

从 XML 到二进制:

plutil -convert binary1 some_other_file.plist

回答by L.H

In Mac Terminal by typing:

在 Mac 终端中输入:

$ sudo gcloud components list

You get a list of what you installed and not installed:

您将获得已安装和未安装的列表:

The following are the components available through the Google Cloud 
SDK.  You may choose to install one or more of the pre-configured 
packages (which contain everything you need to get started), and/or 
any of the individual components below.
......
| Not Installed | gcloud app Python Extensions                  | app-engine-python           |   6.6 MB |
| Installed     | BigQuery Command Line Tool                    | bq                          |   < 1 MB |
| Installed     | Cloud DNS Admin Command Line Interface        | dns                         |   < 1 MB |
| Installed     | Cloud SDK Core Libraries                      | core                        |   1.3 MB |
| Installed     | Cloud SQL Admin Command Line Interface        | sql                         |   < 1 MB |
| Installed     | Cloud Storage Command Line Tool               | gsutil                      |   3.0 MB |
| Installed     | Compute Engine Command Line Interface         | compute                     |   < 1 MB |
| Installed     | Compute Engine Command Line Tool (deprecated) | gcutil                      |   < 1 MB |
......

The last column of the above list contains COMPONENT_IDs(..., "app-engine-python", "bq", "dns", ...)."age-java" is one of the COMPONENT_IDs, which I did not shown in the above list.

上面列表的最后一列包含 COMPONENT_IDs(..., "app-engine-python", "bq", "dns", ...)."age-java" 是 COMPONENT_IDs 之一,我没有显示在上面的列表中。

To remove an installed component, use its COMPONENT_ID. For example, to remove gae-java, you say:

要删除已安装的组件,请使用其 COMPONENT_ID。例如,要删除 gae-java,您可以说:

$ sudo gcloud components remove gae-java

And gae sdk for java will be removed:

并且 gae sdk for java 将被删除:

The following components will be removed:
-------------------------------------------------------------------
| App Engine SDK for Java                     | 1.9.17 | 161.2 MB |
| App Engine SDK for Java (Platform Specific) | 1.9.10 |   < 1 MB |
-------------------------------------------------------------------

Do you want to continue (Y/n)?  Y

|- Creating update staging area                             -|
|============================================================|

|- Uninstalling: App Engine SDK for Java                    -|
|============================================================|
|- Uninstalling: App Engine SDK for Java (Platform Speci... -|
|============================================================|

Creating backup and activating new installation...

Done!

Not sure if it is what you are looking for. Hope this helps.

不确定这是否是您要找的。希望这可以帮助。

回答by Jorge

Just delete the google-cloud-sdkfolder.

只需删除google-cloud-sdk文件夹。

EDIT:

编辑:

As I can understand, previous answers are to disable automatic updating, but this will also affect other google applications like google chrome, for which you might probably will not want to do that, though.

据我所知,以前的答案是禁用自动更新,但这也会影响其他谷歌应用程序,如谷歌浏览器,但您可能不想这样做。

During installation '.bash_profile' gets written with something like:

在安装过程中 '.bash_profile' 被写入如下内容:

# The next line updates PATH for the Google Cloud SDK.
source '/Users/<your_name>/google-cloud-sdk/path.bash.inc'

# The next line enables bash completion for gcloud.
source '/Users/<your_name>/google-cloud-sdk/completion.bash.inc'

So in conclusion, just delete the folder which most probably will be located in your root, unless you specified something else during installation.

因此,总而言之,只需删除最有可能位于根目录中的文件夹,除非您在安装过程中指定了其他内容。

回答by Nivedita Gopal

To Uninstall google app engine from Windows and re install it go to Control Panel -> Uninstall programs -> Google App Engine. The program will be uninstalled. Now in search bar in Windows, type google app engine... if you get any related files go to that folder and delete it from there also. This results in successful Uninstall.After this if you wish you can re-install it.

要从 Windows 卸载 Google App Engine 并重新安装,请转到控制面板 -> 卸载程序 -> Google App Engine。该程序将被卸载。现在在 Windows 的搜索栏中,输入 google app engine... 如果您有任何相关文件,请转到该文件夹​​并将其从那里删除。这将导致成功卸载。在此之后,如果您愿意,可以重新安装它。