### Installation information example Source: https://docs.cloud.google.com/artifact-registry/docs/os-packages/debian/apt-quickstart Example of the output you might see when installing a package. ```text Reading package lists... Done Building dependency tree... Done Reading state information... Done Selected version '7.88.1-10+deb12u14' (quickstart-apt-repo:quickstart-apt-repo, Debian:12.12/oldstable [amd64]) for 'curl' The following additional packages will be installed: libcurl3-gnutls libcurl4 The following packages will be upgraded: curl libcurl3-gnutls libcurl4 3 upgraded, 0 newly installed, 0 to remove and 77 not upgraded. Need to get 1093 kB of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 file:/etc/apt/mirrors/debian.list Mirrorlist [30 B] Get:2 https://deb.debian.org/debian bookworm/main amd64 libcurl4 amd64 7.88.1-10+deb12u14 [392 kB] Get:3 https://deb.debian.org/debian bookworm/main amd64 libcurl3-gnutls amd64 7.88.1-10+deb12u14 [386 kB] Get:4 ar+https://us-west1-apt.pkg.dev/projects/PROJECT quickstart-apt-repo/main amd64 curl amd64 7.88.1-10+deb12u14 [316 kB] Fetched 1093 kB in 1s (947 kB/s) Reading changelogs... Done (Reading database ... 72080 files and directories currently installed.) Preparing to unpack .../curl_7.88.1-10+deb12u14_amd64.deb ... Unpacking curl (7.88.1-10+deb12u14) over (7.88.1-10+deb12u12) ... Preparing to unpack .../libcurl4_7.88.1-10+deb12u14_amd64.deb ... Unpacking libcurl4:amd64 (7.88.1-10+deb12u14) over (7.88.1-10+deb12u12) ... Preparing to unpack .../libcurl3-gnutls_7.88.1-10+deb12u14_amd64.deb ... Unpacking libcurl3-gnutls:amd64 (7.88.1-10+deb12u14) over (7.88.1-10+deb12u12) ... Setting up libcurl3-gnutls:amd64 (7.88.1-10+deb12u14) ... Setting up libcurl4:amd64 (7.88.1-10+deb12u14) ... Setting up curl (7.88.1-10+deb12u14) ... Processing triggers for man-db (2.11.2-2) ... Processing triggers for libc-bin (2.36-9+deb12u10) ... ``` -------------------------------- ### Example installation information Source: https://docs.cloud.google.com/artifact-registry/docs/os-packages/rpm/yum-quickstart The output shown after installing the package. ```text Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.cmich.edu * epel: ord.mirror.rackspace.com * extras: mirror.team-cymru.com * updates: mirror.us-midwest-1.nexcess.net quickstart-yum-repo | 1.3 kB 00:00 Resolving Dependencies --> Running transaction check ---> Package nano.x86_64 0:2.3.1-10.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: nano x86_64 2.3.1-10.el7 base 440 k Transaction Summary ================================================================================ Install 1 Package Total size: 440 k Installed size: 1.6 M Is this ok [y/d/N]: y Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : nano-2.3.1-10.el7.x86_64 1/1 Verifying : nano-2.3.1-10.el7.x86_64 1/1 Installed: nano.x86_64 0:2.3.1-10.el7 Complete! ``` -------------------------------- ### Install package from repository Source: https://docs.cloud.google.com/artifact-registry/docs/os-packages/debian/apt-quickstart Install the package from your custom repository. ```bash sudo apt install curl/quickstart-apt-repo ``` -------------------------------- ### Example of installing a package Source: https://docs.cloud.google.com/artifact-registry/docs/os-packages/rpm/manage-packages Example command to install 'my-package' from the 'my-repo' repository. ```bash sudo yum --enablerepo=my-repo install my-package ``` -------------------------------- ### Example installation information Source: https://docs.cloud.google.com/artifact-registry/docs/os-packages/debian/store-apt This is an example of the output you might see when installing a package. ```text Reading package lists... Done Building dependency tree... Done Reading state information... Done Selected version "7.88.1-10+deb12u14" (quickstart-apt-repo:quickstart-apt-repo, Debian:12.12/oldstable [amd64]) for 'curl' The following additional packages will be installed: libcurl3-gnutls libcurl4 The following packages will be upgraded: curl libcurl3-gnutls libcurl4 3 upgraded, 0 newly installed, 0 to remove and 77 not upgraded. Need to get 1093 kB of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 file:/etc/apt/mirrors/debian.list Mirrorlist [30 B] Get:2 https://deb.debian.org/debian bookworm/main amd64 libcurl4 amd64 7.88.1-10+deb12u14 [392 kB] Get:3 https://deb.debian.org/debian bookworm/main amd64 libcurl3-gnutls amd64 7.88.1-10+deb12u14 [386 kB] Get:4 ar+https://us-west1-apt.pkg.dev/projects/PROJECT quickstart-apt-repo/main amd64 curl amd64 7.88.1-10+deb12u14 [316 kB] Fetched 1093 kB in 1s (947 kB/s) Reading changelogs... Done (Reading database ... 72080 files and directories currently installed.) Preparing to unpack .../curl_7.88.1-10+deb12u14_amd64.deb ... Unpacking curl (7.88.1-10+deb12u14) over (7.88.1-10+deb12u12) ... Preparing to unpack .../libcurl4_7.88.1-10+deb12u14_amd64.deb ... Unpacking libcurl4:amd64 (7.88.1-10+deb12u14) over (7.88.1-10+deb12u12) ... Preparing to unpack .../libcurl3-gnutls_7.88.1-10+deb12u14_amd64.deb ... Unpacking libcurl3-gnutls:amd64 (7.88.1-10+deb12u14) over (7.88.1-10+deb12u12) ... Setting up libcurl3-gnutls:amd64 (7.88.1-10+deb12u14) ... Setting up libcurl4:amd64 (7.88.1-10+deb12u14) ... Setting up curl (7.88.1-10+deb12u14) ... Processing triggers for man-db (2.11.2-2) ... Processing triggers for libc-bin (2.36-9+deb12u10) ... ``` -------------------------------- ### Example installation Source: https://docs.cloud.google.com/artifact-registry/docs/os-packages/debian/manage-packages Example command to install a specific package from a specific repository using apt. ```bash sudo apt install my-package -t my-repo ``` -------------------------------- ### Install package from repository Source: https://docs.cloud.google.com/artifact-registry/docs/os-packages/rpm/yum-quickstart Install the package from your newly created repository. ```bash sudo yum --enablerepo=yum-quickstart install nano ``` -------------------------------- ### Example output from gcloud beta artifacts print-settings apt Source: https://docs.cloud.google.com/artifact-registry/docs/os-packages/debian/configure Example output showing commands to configure Apt with an Artifact Registry repository. ```bash # To configure your package manager with this repository: # Update Apt: sudo apt update # Install the Apt credential helper: sudo apt install apt-transport-artifact-registry # Configure your VM to access Artifact Registry packages using the following ``` -------------------------------- ### Example of configuring Apt for HTTP access Source: https://docs.cloud.google.com/artifact-registry/docs/os-packages/debian/configure Example command to install packages from a public repository using HTTP, specifying the repository name, project ID, and location. ```bash echo 'deb http://us-west1-apt.pkg.dev/projects/my-project my-repo main' | sudo tee -a /etc/apt/sources.list.d/artifact-registry.list ``` -------------------------------- ### Example: Configure Apt for a public repository Source: https://docs.cloud.google.com/artifact-registry/docs/os-packages/debian/configure Example command to install packages from a public repository named 'my-repo' in the project 'my-project' and location 'us-west1'. ```bash echo 'deb ar+https://us-west1-apt.pkg.dev/projects/my-project my-repo main' ``` -------------------------------- ### Example of configuring Apt to install packages via HTTP Source: https://docs.cloud.google.com/artifact-registry/docs/os-packages/debian/configure?hl=ja This example shows how to configure Apt to install packages from a public repository in Artifact Registry using HTTP. ```bash echo 'deb http://us-west1-apt.pkg.dev/projects/my-project my-repo main' | sudo tee -a /etc/apt/sources.list.d/artifact-registry.list ``` -------------------------------- ### Example Yum configuration output Source: https://docs.cloud.google.com/artifact-registry/docs/os-packages/rpm/configure Example output from the `gcloud beta artifacts print-settings yum` command, showing how to configure the package manager. ```bash # To configure your package manager with this repository: # Update Yum: sudo yum makecache # Install the Yum credential helper: sudo yum install yum-plugin-artifact-registry # Configure your VM to access Artifact Registry packages using the following # command: sudo tee -a /etc/yum.repos.d/artifact-registry.repo << EOL [REPOSITORY] name=REPOSITORY baseurl=https://LOCATION-yum.pkg.dev/projects/PROJECT/REPOSITORY enabled=1 repo_gpgcheck=0 gpgcheck=0 EOL # Update Yum: sudo yum makecache ``` -------------------------------- ### Example configuration Source: https://docs.cloud.google.com/artifact-registry/docs/os-packages/rpm/configure Example of configuring a VM to fetch a specific remote Yum repository when Yum installs it. ```bash sudo tee -a /etc/yum.repos.d/artifact-registry.repo << EOF [my-repo] name=My Repository baseurl=https://us-west1-yum.pkg.dev/remote/my-project/my-repo enabled=1 gpgcheck=1 EOF ``` -------------------------------- ### Example output Source: https://docs.cloud.google.com/artifact-registry/docs/go/store-go Example output when running the 'bar' module. ```text Hello World! ``` -------------------------------- ### Example command to install packages from a public repository Source: https://docs.cloud.google.com/artifact-registry/docs/os-packages/debian/configure?hl=es-419 Example command to configure Apt to retrieve packages from a specific public repository. ```bash echo 'deb ar+https://us-west1-apt.pkg.dev/projects/my-project my-repo main' ``` -------------------------------- ### Delete VM instance Source: https://docs.cloud.google.com/artifact-registry/docs/os-packages/debian/apt-quickstart Command to delete the VM instance created for the quickstart. ```bash gcloud compute instances delete quickstart-apt-vm ``` -------------------------------- ### Create a Compute Engine VM Source: https://docs.cloud.google.com/artifact-registry/docs/os-packages/debian/apt-quickstart This command creates a Debian 12 VM instance named `quickstart-apt-vm` with the `cloud-platform` access scope. ```bash gcloud compute instances create quickstart-apt-vm \ --image-family=debian-12 \ --image-project=debian-cloud \ --scopes=cloud-platform ``` -------------------------------- ### pip install with verbose flag Source: https://docs.cloud.google.com/artifact-registry/docs/python/troubleshoot Run the pip install command with the --verbose or -v flag for more detailed messages. Starting with pip 21.2, you can use the flag up to three times for extra output. For example to get the next level of debugging detail, use --verbose --verbose or -vv. ```bash pip install -vv --index-url https://us-east1-python.pkg.dev/my-project/my-repo/simple/ my-package ``` -------------------------------- ### List versions for a package Source: https://docs.cloud.google.com/artifact-registry/docs/os-packages/debian/apt-quickstart Lists all versions for a specific package (e.g., `apt-dpkg-ref`) in the `quickstart-apt-repo` repository. ```bash gcloud artifacts versions list --package=apt-dpkg-ref ``` -------------------------------- ### Create an Apt repository Source: https://docs.cloud.google.com/artifact-registry/docs/os-packages/debian/apt-quickstart This command creates a new Apt repository named `quickstart-apt-repo` in the `us-west1` location. ```bash gcloud artifacts repositories create quickstart-apt-repo \ --repository-format=apt \ --location=us-west1 \ --description="Apt repository" ``` -------------------------------- ### Example: List all files in a repository Source: https://docs.cloud.google.com/artifact-registry/docs/java/manage-packages Example command demonstrating how to list all files in a specified Artifact Registry repository and location. ```bash gcloud artifacts files list \ --location=us-west1 \ --repository=my-repo ``` -------------------------------- ### Example of uploading a new module version Source: https://docs.cloud.google.com/artifact-registry/docs/go/manage-modules Example command for uploading version 0.1.1 of a module with path example.com/foo. ```bash gcloud artifacts go upload \ --module-path=example.com/foo \ --version=v0.1.1 \ --source=SOURCE_LOCATION ``` -------------------------------- ### Pull a sample image Source: https://docs.cloud.google.com/artifact-registry/docs/docker/quickstart Pull version 1.0 of the sample image. ```bash docker pull us-docker.pkg.dev/google-samples/containers/gke/hello-app:1.0 ``` -------------------------------- ### Example of uploading a pre-release module version Source: https://docs.cloud.google.com/artifact-registry/docs/go/manage-modules Example command for uploading a pre-release version (v1.0.0-alpha.x.12m.5) of a module with path example.com/foo. ```bash gcloud artifacts go upload \ --module-path=example.com/foo \ --version=v1.0.0-alpha.x.12m.5 \ --source=SOURCE_LOCATION ``` -------------------------------- ### Add Go credential helper to GONOPROXY Source: https://docs.cloud.google.com/artifact-registry/docs/go/authentication Example of how to add module paths to the GONOPROXY environment variable to force direct downloads from source. ```bash export GONOPROXY=MODULE_PATH1, MODULE_PATH2 ``` -------------------------------- ### `Can not load` error Source: https://docs.cloud.google.com/artifact-registry/docs/troubleshoot-remote This issue occurs when installing a package using the version or architecture. For example, if you try to install `nano-2.3.1-10.el7.x86_64.rpm`. ```text Can not load RPM file: nano-2.3.1-10.el7.x86_64.rpm Could not open: nano-2.3.1-10.el7.x86_64.rpm ``` -------------------------------- ### Policy file example with delete and keep policies Source: https://docs.cloud.google.com/artifact-registry/docs/repositories/cleanup-policy?hl=ko An example policy file containing one delete policy and two keep policies. The `delete-prerelease` policy deletes artifact versions older than 30 days if they start with 'alpha' or 'v0'. The `keep-tagged-release` policy preserves artifacts tagged with 'release' and starting with 'webapp' or 'mobile'. The `keep-minimum-versions` policy retains the latest 5 versions of artifacts starting with 'webapp', 'mobile', or 'sandbox'. ```json [ { "name": "delete-prerelease", "action": {"type": "Delete"}, "condition": { "tagState": "tagged", "tagPrefixes": ["alpha", "v0"], "olderThan": "30d" } }, { "name": "keep-tagged-release", "action": {"type": "Keep"}, "condition": { "tagState": "tagged", "tagPrefixes": ["release"], "packageNamePrefixes": ["webapp", "mobile"] } }, { "name": "keep-minimum-versions", "action": {"type": "Keep"}, "mostRecentVersions": { "packageNamePrefixes": ["webapp", "mobile", "sandbox"], "keepCount": 5 } } ] ``` -------------------------------- ### Example Apt configuration output Source: https://docs.cloud.google.com/artifact-registry/docs/os-packages/debian/configure?hl=es-419 Example output from the `gcloud beta artifacts print-settings apt` command, showing how to configure Apt. ```bash # To configure your package manager with this repository: # Update Apt: sudo apt update # Install the Apt credential helper: sudo apt install apt-transport-artifact-registry # Configure your VM to access Artifact Registry packages using the following # command: echo "deb [signed-by=/etc/apt/trusted.gpg.d/artifact-registry.gpg] ar+https://LOCATION-apt.pkg.dev/projects/PROJECT REPOSITORY main" | sudo tee -a /etc/apt/sources.list.d/artifact-registry.list # Update Apt: sudo apt update ``` -------------------------------- ### Get help for the list command Source: https://docs.cloud.google.com/artifact-registry/docs/repositories/list-repos For more information about the command, run the following command: ```bash gcloud artifacts repositories list --help ``` -------------------------------- ### Example of configuring a specific Yum repository Source: https://docs.cloud.google.com/artifact-registry/docs/os-packages/rpm/configure Example command to configure the `yum` client tool to fetch packages from a specific Artifact Registry Yum repository. ```bash sudo tee -a /etc/yum.repos.d/artifact-registry.repo << EOL [my-repo] name=My Repository baseurl=https://us-west1-yum.pkg.dev/projects/my-project/my-repo enabled=1 repo_gpgcheck=0 gpgcheck=0 EOL ``` -------------------------------- ### Example: Configure VM for a specific remote repository Source: https://docs.cloud.google.com/artifact-registry/docs/os-packages/debian/configure Example configuration for a VM to fetch packages from the 'my-repo' repository in 'my-project' (us-east1) using 'stable' as the upstream for 'main', 'contrib', and 'non-free' components. ```bash deb ar+https://us-east1-apt.pkg.dev/remote/my-project/my-repo stable main contrib non-free ``` -------------------------------- ### Create an APT repository Source: https://docs.cloud.google.com/artifact-registry/docs/manage-repos Command to create a new APT repository in Artifact Registry. ```bash gcloud artifacts repositories create REPOSITORY \ --repository-format=apt \ --location=LOCATION \ --description="DESCRIPTION" \ --kms-key=KMS-KEY \ --async ``` -------------------------------- ### Yum download output Source: https://docs.cloud.google.com/artifact-registry/docs/os-packages/rpm/yum-quickstart This is the output from the `yum install --downloadonly` command, showing the package resolution and download process. ```bash Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.dal.nexril.net * epel: ord.mirror.rackspace.com * extras: centos.mirror.lstn.net * updates: ftpmirror.your.org Resolving Dependencies --> Running transaction check ---> Package nano.x86_64 0:2.3.1-10.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: nano x86_64 2.3.1-10.el7 base 440 k Transaction Summary ================================================================================ Install 1 Package Total download size: 440 k Installed size: 1.6 M Background downloading packages, then exiting: nano-2.3.1-10.el7.x86_64.rpm | 440 kB 00:00 exiting because "Download Only" specified ``` -------------------------------- ### Install a chart Source: https://docs.cloud.google.com/artifact-registry/docs/helm/manage-charts Installs a Helm chart from Artifact Registry using the `helm install` command. ```bash helm install RELEASE \ oci://LOCATION-docker.pkg.dev/PROJECT/REPOSITORY/IMAGE \ --version VERSION ``` ```bash helm install release1 oci://us-west1-docker.pkg.dev/nyap-test/helm-repo/my-chart --version 0.1.0 ``` -------------------------------- ### Create a Docker repository using gcloud CLI Source: https://docs.cloud.google.com/artifact-registry/docs/docker/quickstart This command creates a new Docker repository named 'quickstart-docker-repo' in the 'us-west1' region with a description. ```bash gcloud artifacts repositories create quickstart-docker-repo --repository-format=docker \ --location=us-west1 --description="Docker repository" \ --project=PROJECT ``` -------------------------------- ### Install apt-transport-artifact-registry Source: https://docs.cloud.google.com/artifact-registry/docs/os-packages/debian/configure Installs the necessary package to interact with Artifact Registry. ```bash sudo apt install apt-transport-artifact-registry ``` -------------------------------- ### Create a KFP repository Source: https://docs.cloud.google.com/artifact-registry/docs/manage-repos Creates a new KFP repository with specified configurations. ```bash gcloud artifacts repositories create REPOSITORY \ --repository-format=kfp \ --location=LOCATION \ --description="DESCRIPTION" \ --kms-key=KMS-KEY \ --async ``` -------------------------------- ### Install RPM signing key Source: https://docs.cloud.google.com/artifact-registry/docs/os-packages/rpm/configure Install the RPM signing key on a non-Compute Engine VM. ```bash sudo rpm --import https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg ``` -------------------------------- ### Install public signature verification key Source: https://docs.cloud.google.com/artifact-registry/docs/os-packages/debian/configure Installs the public signature verification key for the Apt repository. ```bash curl https://LOCATION-apt.pkg.dev/doc/repo-signing-key.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/artifact-registry.gpg ``` -------------------------------- ### YAML example Source: https://docs.cloud.google.com/artifact-registry/docs/reference/rest/v1/Policy An example of an IAM policy in YAML format. ```yaml bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` -------------------------------- ### JSON example Source: https://docs.cloud.google.com/artifact-registry/docs/reference/rest/v1/Policy An example of an IAM policy in JSON format. ```json { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } ``` -------------------------------- ### Describe a repository Source: https://docs.cloud.google.com/artifact-registry/docs/manage-repos This command describes a created repository. Replace REPOSITORY and LOCATION with your repository name and location. ```bash gcloud artifacts repositories describe REPOSITORY \ --location=LOCATION ``` -------------------------------- ### Install Artifact Registry plugin for non-Compute Engine VMs Source: https://docs.cloud.google.com/artifact-registry/docs/os-packages/rpm/configure Install the Artifact Registry plugin on a non-Compute Engine VM. ```bash yum install FORMAT-plugin-artifact-registry ``` -------------------------------- ### List existing repositories Source: https://docs.cloud.google.com/artifact-registry/docs/repositories/list-repos To list existing repositories, run the following command: ```bash gcloud artifacts repositories list [--project=PROJECT] \ [--location=LOCATION] ``` -------------------------------- ### Install Apt repository signing keys Source: https://docs.cloud.google.com/artifact-registry/docs/os-packages/debian/configure Installs the signing keys for the Artifact Registry and Google Cloud SDK repositories. ```bash curl https://LOCATION-apt.pkg.dev/doc/repo-signing-key.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/artifact-registry.gpg && curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/google-cloud-sdk.gpg ``` -------------------------------- ### Example VM configuration output Source: https://docs.cloud.google.com/artifact-registry/docs/os-packages/rpm/configure?hl=es-419 Example output from the 'gcloud beta artifacts print-settings yum' command, showing how to configure the package manager. ```bash # To configure your package manager with this repository: # Update Yum: sudo yum makecache # Install the Yum credential helper: sudo yum install yum-plugin-artifact-registry # Configure your VM to access Artifact Registry packages using the following # command: sudo tee -a /etc/yum.repos.d/artifact-registry.repo << EOL [REPOSITORY] name=REPOSITORY baseurl=https://LOCATION-yum.pkg.dev/projects/PROJECT/REPOSITORY enabled=1 repo_gpgcheck=0 gpgcheck=0 EOL ``` -------------------------------- ### Install Twine Source: https://docs.cloud.google.com/artifact-registry/docs/python/manage-packages To add a package, first install Twine. ```bash pip install twine ``` -------------------------------- ### Example push command Source: https://docs.cloud.google.com/artifact-registry/docs/helm/manage-charts An example of the helm push command with specific values. ```bash helm push my-chart-0.1.0.tgz oci://us-west1-docker.pkg.dev/my-project/my-repo ``` -------------------------------- ### Example: List files in a specific package version Source: https://docs.cloud.google.com/artifact-registry/docs/java/manage-packages Example command showing how to list files for a particular version of a package in Artifact Registry, including project, location, repository, package, and version details. ```bash gcloud artifacts files list \ --project=my-project \ --location=us-west1 \ --repository=my-repo \ --package=my-app \ --version=1.0 ``` -------------------------------- ### Example: List all files in a repository Source: https://docs.cloud.google.com/artifact-registry/docs/docker/manage-images Example command to list all files in the repository 'my-repo' in the location 'us-west1' within the default project. ```bash gcloud artifacts files list \ --location=us-west1 \ --repository=my-repo ``` -------------------------------- ### Install Artifact Registry plugin for older RHEL versions Source: https://docs.cloud.google.com/artifact-registry/docs/os-packages/rpm/configure Install the Artifact Registry plugin on a Compute Engine VM for Enterprise Linux 7 or earlier. ```bash sudo yum install FORMAT-plugin-artifact-registry ``` -------------------------------- ### Run Go credential helper to set up credentials Source: https://docs.cloud.google.com/artifact-registry/docs/go/authentication Command to add Artifact Registry credentials to your netrc file using the Go module package tool after configuring GONOPROXY. ```bash GOPROXY=proxy.golang.org \ go run github.com/GoogleCloudPlatform/artifact-registry-go-tools/cmd/auth@v0.4.0 \ add-locations --locations=LOCATION \ [--json_key=path/to/service/account/key.json] ``` -------------------------------- ### Example: View tags for a package in a specific repository Source: https://docs.cloud.google.com/artifact-registry/docs/nodejs/manage-packages Example command to view tags for the package 'my-pkg' in the repository 'my-repo' in the default location. ```bash gcloud artifacts tags list --package=my-pkg --repository=my-repo ``` -------------------------------- ### Install specific version with yarn Source: https://docs.cloud.google.com/artifact-registry/docs/nodejs/manage-packages Installs a specific version of a package using yarn. ```bash yarn add @SCOPE/PACKAGE@VERSION ```