How To Install oc-inject on Fedora 36
Introduction
In this tutorial we learn how to install oc-inject
on Fedora 36.
What is oc-inject
Copy an executable to an OpenShift container and run the executable. oc-inject is a prototype tool for last-resort troubleshooting of a running container, when a required debugging tool is not present in the container image.
We can use yum
or dnf
to install oc-inject
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install oc-inject.
Install oc-inject on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install oc-inject
using dnf
by running the following command:
sudo dnf -y install oc-inject
Install oc-inject on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install oc-inject
using yum
by running the following command:
sudo yum -y install oc-inject
How To Uninstall oc-inject on Fedora 36
To uninstall only the oc-inject
package we can use the following command:
sudo dnf remove oc-inject
oc-inject Package Contents on Fedora 36
/usr/bin/oc-inject
/usr/share/doc/oc-inject
/usr/share/doc/oc-inject/README.md
/usr/share/licenses/oc-inject
/usr/share/licenses/oc-inject/LICENSE
/usr/share/man/man1/oc-inject.1.gz
References
Summary
In this tutorial we learn how to install oc-inject
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).