How to Install and Uninstall kubectl.x86_64 Package on CentOS 8 / RHEL 8

Last updated: May 18,2024

1. Install "kubectl.x86_64" package

This is a short guide on how to install kubectl.x86_64 on CentOS 8 / RHEL 8

$ sudo dnf update $ sudo dnf install kubectl.x86_64

2. Uninstall "kubectl.x86_64" package

This tutorial shows how to uninstall kubectl.x86_64 on CentOS 8 / RHEL 8:

$ sudo dnf remove kubectl.x86_64 $ sudo dnf autoremove

3. Information about the kubectl.x86_64 package on CentOS 8 / RHEL 8

Last metadata expiration check: 1 day, 5:20:20 ago on Sun May 9 13:03:46 2021.
Available Packages
Name : kubectl
Version : 1.21.0
Release : 0
Architecture : x86_64
Size : 9.5 M
Source : kubelet-1.21.0-0.src.rpm
Repository : google-cloud-sdk
Summary : Command-line utility for interacting with a Kubernetes cluster.
URL : https://kubernetes.io
License : ASL 2.0
Description : Command-line utility for interacting with a Kubernetes cluster.