3.5. Installing the Knative CLI for Linux
If you are using a Linux distribution that does not have RPM or another package manager installed, you can install the Knative (kn) CLI as a binary file. To do this, you must download and unpack a tar.gz archive and add the binary to a directory on your PATH.
Prerequisites
If you are not using RHEL or Fedora, ensure that libc is installed in a directory on your library path.
중요If libc is not available, you might see the following error when you run CLI commands:
$ kn: No such file or directory
Procedure
Download the relevant Knative (
kn) CLItar.gzarchive:You can also download any version of
knby navigating to that version’s corresponding directory in the Serverless client download mirror.Unpack the archive:
$ tar -xf <filename>-
Move the
knbinary to a directory on yourPATH. To check your
PATH, run:$ echo $PATH