DEV Community

CodeWithVed
CodeWithVed

Posted on

How to Install K6 on Amazon Linux 2 Machine

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:

  1. Login to your ec2-machine.
  2. Run the following command to install the k6 repository configuration: sudo dnf install https://dl.k6.io/rpm/repo.rpm
  3. After the repository configuration is installed, run the following command to install k6: sudo dnf install k6
  4. 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)