If you want to install k6 on an Amazon Linux 2 machine, it can be a bit tricky. With yum installed on the system, you can't directly install k6.
Follow these steps to install it successfully on your EC2 instance:
- Login to your ec2-machine.
- Run the following command to install the k6 repository configuration:
sudo dnf install https://dl.k6.io/rpm/repo.rpm
- After the repository configuration is installed, run the following command to install k6:
sudo dnf install k6
- Wait for the installation to complete.
Once the installation is finished, you can verify the installation by running the following command:
k6 version
This will display the installed version of k6 on your system.
Top comments (0)