Installing the amazon-efs-utils package on other Linux distributions - Amazon Elastic File System

Installing the amazon-efs-utils package on other Linux distributions

If you don't want to get the amazon-efs-utils package from Amazon Linux or Amazon Linux 2 AMIs, the amazon-efs-utils package is also available on GitHub.

After you clone the package, you can build and install amazon-efs-utils using one of the following methods, depending on the package type supported by your Linux distribution:

  • RPM – This package type is supported by Amazon Linux, Red Hat Linux, CentOS, and similar.

  • DEB – This package type is supported by Ubuntu, Debian, and similar.

  1. Connect to the EC2 instance using Secure Shell (SSH), and log in with the appropriate user name. For more information, see Connecting to Your Linux Instance Using SSH in the Amazon EC2 User Guide for Linux Instances.

  2. Install git using the following command:

    sudo yum -y install git
  3. Install the rpm-build package if it's not already installed using the following command:

    sudo yum -y install rpm-build
  4. Clone amazon-efs-utils from GitHub using the following command.

    git clone https://github.com/aws/efs-utils
  5. Open a terminal on your client and navigate to the directory that contains the amazon-efs-utils package.

    cd /path/efs-utils
  6. Install the bash make command if your operating system doesn't already have it as follows.

    sudo yum -y install make
  7. Install the rpm-build package if it's not already installed using the following command:

    sudo yum -y install rpm-build
  8. Build the amazon-efs-utils package using the following command:

    sudo make rpm
  9. Install the amazon-efs-utils package with the following command.

    sudo yum -y install ./build/amazon-efs-utils*rpm
  1. Connect to the EC2 instance using Secure Shell (SSH), and log in with the appropriate user name. For more information, see Connecting to Your Linux Instance Using SSH in the Amazon EC2 User Guide for Linux Instances.

  2. (Optional) Apply updates before installing the package with the following command:

    sudo apt-get update

    Install updates as needed.

  3. Install git and binutils, using the following command. binutils is required for building DEB packages,

    sudo apt-get -y install git binutils
  4. Clone amazon-efs-utils from GitHub using the following command.

    git clone https://github.com/aws/efs-utils
  5. Navigate to the directory that contains the amazon-efs-utils package.

    cd /path/efs-utils
  6. Build amazon-efs-utils using the following command:

    ./build-deb.sh
  7. Install the package with the following command.

    sudo apt-get -y install ./build/amazon-efs-utils*deb