자동 업데이트를 원하는 경우 Ubuntu 시스템에서 스냅 패키지를 사용하여 Google Cloud CLI를 설치할 수 있습니다. 이 패키지에는 gcloud CLI, gcloud alpha, gcloud beta, gsutil, docker-credential-gcloud, bq 명령어만 포함됩니다. gcloud CLI를 사용하여 애플리케이션을 배포하는 데 필요한 kubectl 또는 App Engine 확장 프로그램은 포함되지 않습니다. 이러한 구성요소가 필요하면 Debian 패키지를 대신 설치합니다.
이전 스냅 패키지인 google-cloud-sdk가 설치되어 있으면 명령줄에서 삭제합니다.
snap remove google-cloud-sdk
두 설치 모두 동일한 별칭이 필요하므로 이 패키지를 삭제하지 않고는 새 스냅 패키지를 설치할 수 없습니다.
명령줄에서 gcloud CLI 스냅 패키지를 설치합니다.
snapinstallgoogle-cloud-cli--classic
(선택사항) gcloud CLI 도구를 PATH에 추가하고 Bash 셸에서 명령어 완성을 사용 설정하려면 프로필에 /path/to/gcloud/completion.bash.inc를 소싱합니다.
Zsh 셸에서는 대신 /path/to/gcloud/completion.zsh.inc를 사용합니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-04(UTC)"],[],[],null,["# Installing a Snap package\n\n| **Note:** This installation method is only available on Ubuntu versions that support [snaps](https://docs.snapcraft.io/).\n\n\nIf you prefer automatic updates, you can install the Google Cloud CLI using a snap package on\nUbuntu systems. This package contains the gcloud CLI, `gcloud alpha`,\n`gcloud beta`, `gsutil`, `docker-credential-gcloud`, and\n`bq` commands only. It doesn't include `kubectl` or the App Engine\nextensions required to deploy an application using the gcloud CLI. If you need these\ncomponents, install the [Debian package](/sdk/docs/install#deb) instead.\n\n1. If you have the old snap package, `google-cloud-sdk`, installed, remove it at the command line: \n\n ```sh\n snap remove google-cloud-sdk\n ```\n You can't install the new snap package without removing this package because both installations require the same aliases.\n2. At the command line, install the gcloud CLI snap package: \n\n ```bash\n snap install google-cloud-cli --classic\n ```\n3. Optional. To add the gcloud CLI tools to your `PATH` and enable command completion in your Bash shell, source \u003cvar translate=\"no\"\u003e/path/to/gcloud\u003c/var\u003e`/completion.bash.inc` in your profile.\n\n\n For Zsh shells, use \u003cvar translate=\"no\"\u003e/path/to/gcloud\u003c/var\u003e`/completion.zsh.inc` instead.\n4. To initialize the gcloud CLI and get started, run [`gcloud init`](/sdk/gcloud/reference/init): \n\n ```bash\n gcloud init\n ```"]]