Die spezifischen Befehle, die zum Installieren der AlloyDB Omni-Befehlszeile erforderlich sind, hängen von Ihrer Linux-Distribution ab.
Unter Debian oder Ubuntu installieren
Führen Sie die folgenden Befehle aus, um die AlloyDB Omni-Befehlszeile unter Debian oder Debian-basierten Linux-Distributionen wie Ubuntu zu installieren:
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-08-17 (UTC)."],[[["\u003cp\u003eThe AlloyDB Omni CLI is a free command-line tool for installing, running, and managing AlloyDB Omni.\u003c/p\u003e\n"],["\u003cp\u003eInstallation and update commands for the AlloyDB Omni CLI vary based on whether you're using Debian/Ubuntu or RHEL distributions.\u003c/p\u003e\n"],["\u003cp\u003eTo install on Debian/Ubuntu, use \u003ccode\u003ecurl\u003c/code\u003e, \u003ccode\u003eapt update\u003c/code\u003e, and \u003ccode\u003eapt-get install alloydb-cli\u003c/code\u003e commands, after replacing \u003ccode\u003eREGION\u003c/code\u003e with \u003ccode\u003easia\u003c/code\u003e, \u003ccode\u003eeurope\u003c/code\u003e, or \u003ccode\u003eus\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eTo install on RHEL, use \u003ccode\u003etee\u003c/code\u003e, \u003ccode\u003eyum makecache\u003c/code\u003e, and \u003ccode\u003eyum install -y alloydb-cli\u003c/code\u003e commands, also replacing \u003ccode\u003eREGION\u003c/code\u003e with \u003ccode\u003easia\u003c/code\u003e, \u003ccode\u003eeurope\u003c/code\u003e, or \u003ccode\u003eus\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe removal process also has different commands for Debian/Ubuntu using \u003ccode\u003eapt-get remove alloydb-cli\u003c/code\u003e and RHEL using \u003ccode\u003eyum remove alloydb-cli\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Install and manage the AlloyDB Omni CLI\n\nSelect a documentation version: 15.5.2keyboard_arrow_down\n\n- [15.5.2](/alloydb/omni/15.5.2/docs/omni-cli)\n\n\u003cbr /\u003e\n\nThe AlloyDB Omni CLI is a command-line tool that lets you install, run, and manage AlloyDB Omni. You can download and install it at no cost by using various Linux package-management tools.\n\n\u003cbr /\u003e\n\nInstall the AlloyDB Omni CLI\n----------------------------\n\nThe specific commands needed to install the AlloyDB Omni CLI depend on your\nLinux distribution.\n\n### Install on Debian or Ubuntu\n\nTo install the AlloyDB Omni CLI on Debian or on Debian-based Linux distributions such\nas Ubuntu, run the following commands: \n\n curl https://\u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e-apt.pkg.dev/doc/repo-signing-key.gpg | sudo apt-key add -\n sudo apt update\n echo \"deb https://\u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e-apt.pkg.dev/projects/alloydb-omni alloydb-omni-apt main\" \\\n | sudo tee -a /etc/apt/sources.list.d/artifact-registry.list\n sudo apt update\n sudo apt-get install alloydb-cli\n\nReplace \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e with one of the following:\n\n- `asia`\n- `europe`\n- `us`\n\n### Install on RHEL\n\nTo install the AlloyDB Omni CLI on Red Hat Enterprise Linux (RHEL), run the following commands: \n\n sudo tee -a /etc/yum.repos.d/artifact-registry.repo \u003c\u003c EOF\n [alloydb-omni-yum]\n name=alloydb-omni-yum\n baseurl=https://\u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e-yum.pkg.dev/projects/alloydb-omni/alloydb-omni-yum\n enabled=1\n repo_gpgcheck=0\n gpgcheck=0\n EOF\n sudo yum makecache\n sudo yum --enablerepo=alloydb-omni-yum install -y alloydb-cli\n\nReplace \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e with one of the following:\n\n- `asia`\n- `europe`\n- `us`\n\nUpdate the AlloyDB Omni CLI\n---------------------------\n\nThe specific commands needed to update the AlloyDB Omni CLI depend on your\nLinux distribution.\n\n### Update on Debian or Ubuntu\n\n sudo apt-get update\n sudo apt-get install alloydb-cli\n\n### Update on RHEL\n\n sudo yum makecache\n sudo yum install alloydb-cli -y\n\nUninstall the AlloyDB Omni CLI\n------------------------------\n\nThe specific commands needed to uninstall the AlloyDB Omni CLI depend on your\nLinux distribution.\n\n### Uninstall from Debian or Ubuntu\n\n sudo apt-get remove alloydb-cli\n\n### Uninstall from RHEL\n\n sudo yum remove alloydb-cli\n\nWhat's next\n-----------\n\n- [Install AlloyDB Omni](/alloydb/omni/15.5.2/docs/install)\n\n- [Run and connect to AlloyDB Omni](/alloydb/omni/15.5.2/docs/run-connect)\n\n- [Manage AlloyDB Omni](/alloydb/omni/15.5.2/docs/manage)\n\n- [Create a read-only replica](/alloydb/omni/15.5.2/docs/set-up-read-replica)"]]