### Replace Confluent CLI Binary (macOS Example) Source: https://docs.confluent.io/confluent-cli/current/install.html Copies a downloaded Confluent CLI binary to replace the existing one within the Confluent Platform installation. This example shows the path for macOS. ```bash cp $CONFLUENT_HOME/libexec/cli/darwin_amd64/ ``` -------------------------------- ### Install yum-utils Source: https://docs.confluent.io/confluent-cli/current/install.html Install `yum-utils` if it is not already installed. This package includes `yum-config-manager`. ```bash sudo yum install yum-utils ``` -------------------------------- ### Install curl and gnupg for APT Source: https://docs.confluent.io/confluent-cli/current/install.html Debian/Ubuntu users should ensure curl and gnupg are installed before proceeding with APT package management. ```bash sudo apt install curl gnupg ``` -------------------------------- ### Verify Confluent CLI Installation Source: https://docs.confluent.io/confluent-cli/current/install.html Check the installed Confluent CLI version and build information. ```bash confluent version ``` -------------------------------- ### Install Confluent CLI Source: https://docs.confluent.io/confluent-cli/current/install.html Install the Confluent CLI package using YUM. This command will download and install the latest version available in the configured repository. ```bash sudo yum install confluent-cli ``` -------------------------------- ### Install a specific version of Confluent CLI using APT Source: https://docs.confluent.io/confluent-cli/current/install.html When using Confluent Platform with APT, install a specific CLI version to ensure compatibility. If no version is specified, APT may install the CLI bundled with Confluent Platform. ```bash sudo apt install confluent-cli=3.48.0 ``` -------------------------------- ### Install Confluent CLI using APT Source: https://docs.confluent.io/confluent-cli/current/install.html Install the Confluent CLI package on Debian or Ubuntu systems using the APT package manager. ```bash sudo apt install confluent-cli ``` -------------------------------- ### Install Confluent CLI using Homebrew Source: https://docs.confluent.io/confluent-cli/current/install.html For macOS and Linux users, install the latest Confluent CLI version with this Homebrew command. ```bash brew install confluentinc/tap/cli ``` -------------------------------- ### Install Confluent CLI with Disabled Repository Source: https://docs.confluent.io/confluent-cli/current/install.html Installs the Confluent CLI while temporarily disabling a specific YUM repository. This is useful to avoid conflicts or to install a version not available in the default repositories. ```bash sudo yum --disablerepo=Confluent install confluent-cli ``` -------------------------------- ### Locate Confluent CLI Binary Source: https://docs.confluent.io/confluent-cli/current/install.html Find the installation path of the 'confluent' executable. This is useful for manual uninstallation. ```bash which confluent ``` -------------------------------- ### Add Confluent CLI YUM Repository Source: https://docs.confluent.io/confluent-cli/current/install.html Add the Confluent CLI repository to your YUM configuration to enable installation of the CLI. ```bash yum-config-manager --add-repo https://packages.confluent.io/confluent-cli/rpm/confluent-cli.repo ``` -------------------------------- ### Add Confluent CLI APT public key Source: https://docs.confluent.io/confluent-cli/current/install.html This command installs the Confluent CLI APT public key, necessary for verifying package integrity on Debian/Ubuntu systems. ```bash sudo mkdir -p /etc/apt/keyrings curl https://packages.confluent.io/confluent-cli/deb/archive.key | sudo gpg --dearmor -o /etc/apt/keyrings/confluent-cli.gpg sudo chmod go+r /etc/apt/keyrings/confluent-cli.gpg ``` -------------------------------- ### Import Confluent CLI YUM public key Source: https://docs.confluent.io/confluent-cli/current/install.html For RHEL/CentOS users, import the Confluent CLI YUM public key to enable installation via the YUM package manager. ```bash sudo rpm --import https://packages.confluent.io/confluent-cli/rpm/archive.key ``` -------------------------------- ### Uninstall Confluent Platform (RHEL) Source: https://docs.confluent.io/confluent-cli/current/install.html If Confluent CLI was installed as part of Confluent Platform on RHEL, use this command to uninstall the platform package. ```bash sudo yum remove confluent-platform ``` -------------------------------- ### Uninstall Confluent Platform (Ubuntu) Source: https://docs.confluent.io/confluent-cli/current/install.html If Confluent CLI was installed as part of Confluent Platform on Ubuntu, use this command to uninstall the platform package. ```bash sudo apt-get remove confluent-platform ``` -------------------------------- ### Uninstall Confluent CLI with Homebrew Source: https://docs.confluent.io/confluent-cli/current/install.html Use this command to uninstall the Confluent CLI if it was installed using Homebrew on macOS. ```bash brew uninstall confluentinc/tap/cli ``` -------------------------------- ### Download Specific CLI Version using curl Source: https://docs.confluent.io/confluent-cli/current/install.html Download and install a specific version of the Confluent CLI using the curl command. The script automatically detects your OS and architecture. ```bash curl -sL --http1.1 https://cnfl.io/cli | sh -s -- v4.28.0 ``` ```bash curl -sL --http1.1 https://cnfl.io/cli | sh -s -- v3.65.0 ``` -------------------------------- ### Uninstall Confluent Platform (Fedora) Source: https://docs.confluent.io/confluent-cli/current/install.html If Confluent CLI was installed as part of Confluent Platform on Fedora, use this command to uninstall the platform package. ```bash sudo dnf remove confluent-platform ``` -------------------------------- ### Set Confluent Platform Home Environment Variable Source: https://docs.confluent.io/confluent-cli/current/install.html Sets the CONFLUENT_HOME environment variable to the directory where Confluent is installed. This is required for some CLI operations within the Confluent Platform package. ```bash export CONFLUENT_HOME= ``` -------------------------------- ### Remove Confluent CLI Executable (Linux) Source: https://docs.confluent.io/confluent-cli/current/install.html Use this command to remove the Confluent CLI executable from the default installation path on Linux systems. ```bash rm /usr/local/bin/confluent ``` -------------------------------- ### Uninstall Existing Confluent CLI Source: https://docs.confluent.io/confluent-cli/current/install.html Uninstall the existing version of the Confluent CLI. This step is necessary when upgrading from a Confluent Platform installation to the latest standalone CLI version. ```bash sudo yum remove confluent-cli ``` -------------------------------- ### Pull Latest Confluent CLI Docker Image Source: https://docs.confluent.io/confluent-cli/current/install.html Pulls the latest version of the Confluent CLI Docker image. This is a quick way to get an isolated environment with the CLI. ```bash docker pull confluentinc/confluent-cli:latest ``` -------------------------------- ### Download Confluent CLI for Windows Source: https://docs.confluent.io/confluent-cli/current/install.html Downloads the latest Windows ZIP file for the Confluent CLI. Replace X.X.X with the specific version number. ```bash confluent_X.X.X_windows_amd64.zip ``` -------------------------------- ### Import Confluent CLI YUM Public Key Source: https://docs.confluent.io/confluent-cli/current/install.html Import the Confluent CLI YUM public key to verify the authenticity of packages. This is a prerequisite for adding the repository. ```bash sudo rpm --import https://packages.confluent.io/confluent-cli/rpm/archive.key ``` -------------------------------- ### Add Confluent CLI repository to APT configuration Source: https://docs.confluent.io/confluent-cli/current/install.html Configure APT to use the Confluent CLI repository by adding the specified line to your sources list. ```bash echo "deb [signed-by=/etc/apt/keyrings/confluent-cli.gpg] https://packages.confluent.io/confluent-cli/deb stable main" | sudo tee /etc/apt/sources.list.d/confluent-cli.list >/dev/null ``` -------------------------------- ### Set PATH Environment Variable Source: https://docs.confluent.io/confluent-cli/current/install.html Add the directory containing the CLI binaries to your system's PATH environment variable. ```bash export PATH=:$PATH ``` -------------------------------- ### Confluent Platform Properties Files Source: https://docs.confluent.io/confluent-cli/current/install.html This list shows the default configuration properties files for various Confluent Platform services. Modify these files to configure specific services. ```properties $CONFLUENT_HOME/etc/schema-registry/connect-avro-distributed.properties ``` ```properties $C3_HOME/etc/confluent-control-center/control-center-dev.properties ``` ```properties $CONFLUENT_HOME/etc/kafka/controller.properties ``` ```properties $CONFLUENT_HOME/etc/kafka/broker.properties ``` ```properties $CONFLUENT_HOME/etc/kafka/server.properties ``` ```properties $CONFLUENT_HOME/etc/kafka-rest/kafka-rest.properties ``` ```properties $CONFLUENT_HOME/etc/ksqldb/ksql-server.properties ``` ```properties $CONFLUENT_HOME/etc/schema-registry/schema-registry.properties ``` ```properties $CONFLUENT_HOME/etc/kafka/zookeeper.properties ``` -------------------------------- ### Update APT package list Source: https://docs.confluent.io/confluent-cli/current/install.html Refresh your APT package index to include the newly added Confluent CLI repository. ```bash sudo apt update ``` -------------------------------- ### Add Confluent CLI to PATH Source: https://docs.confluent.io/confluent-cli/current/install.html Adds the Confluent CLI's bin directory to the system's PATH environment variable, allowing you to run the CLI commands from any directory. ```bash export PATH=$CONFLUENT_HOME/bin:$PATH ``` -------------------------------- ### Verify Confluent CLI Uninstallation (Windows) Source: https://docs.confluent.io/confluent-cli/current/install.html After uninstalling the Confluent CLI on Windows, run this command in a new command prompt or PowerShell window to verify it's no longer recognized. ```powershell confluent version ``` -------------------------------- ### Uninstall Confluent CLI with APT Source: https://docs.confluent.io/confluent-cli/current/install.html Uninstall the Confluent CLI using APT on Debian-based Linux distributions. Includes an option to remove unused dependencies. ```bash sudo apt-get remove confluent-cli # To remove unused dependencies as well: sudo apt-get autoremove ``` -------------------------------- ### Pull Specific Confluent CLI Docker Image Version Source: https://docs.confluent.io/confluent-cli/current/install.html Pulls a specific version of the Confluent CLI Docker image. Replace `` with the desired tag. ```bash docker pull confluentinc/confluent-cli: ``` -------------------------------- ### Uninstall Confluent CLI with DNF Source: https://docs.confluent.io/confluent-cli/current/install.html Uninstall the Confluent CLI using DNF on Fedora Linux. ```bash sudo dnf remove confluent-cli ``` -------------------------------- ### Clear YUM Caches Source: https://docs.confluent.io/confluent-cli/current/install.html Clears all cached metadata and package data for YUM repositories. Run this command before performing package operations to ensure you have the latest information. ```bash sudo yum clean all ``` -------------------------------- ### Clean YUM Caches Source: https://docs.confluent.io/confluent-cli/current/install.html Clear all YUM caches to ensure that the package manager has the latest repository information. ```bash sudo yum clean all ``` -------------------------------- ### Set Confluent Local Data Directory Source: https://docs.confluent.io/confluent-cli/current/install.html Optionally, set the CONFLUENT_CURRENT environment variable to specify a custom directory for CLI logs and data. ```bash export CONFLUENT_CURRENT= ``` -------------------------------- ### Remove Confluent CLI Configuration Directory (Linux) Source: https://docs.confluent.io/confluent-cli/current/install.html This command removes the Confluent CLI's configuration directory, which stores login sessions and environment metadata. Ensure you have backed up any necessary data before running this command. ```bash rm -rf ~/.confluent/ ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.