How To Install ec2-instance-connect.noarch on Amazon Linux 2

In this tutorial we learn how to install ec2-instance-connect.noarch in Amazon Linux 2. ec2-instance-connect.noarch is EC2 instance scripting and configuration for EC2 Instance Connect

Introduction

In this tutorial we learn how to install ec2-instance-connect.noarch on Amazon Linux 2.

What is ec2-instance-connect.noarch

EC2 instance scripting and configuration for EC2 Instance Connect

We can use yum to install ec2-instance-connect.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install ec2-instance-connect.noarch.

Install ec2-instance-connect.noarch on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install ec2-instance-connect.noarch using yum by running the following command:

sudo yum -y install ec2-instance-connect.noarch

How To Uninstall ec2-instance-connect.noarch on Amazon Linux 2

To uninstall only the ec2-instance-connect.noarch package we can use the following command:

sudo yum remove ec2-instance-connect.noarch

ec2-instance-connect.noarch Package Contents on Amazon Linux 2

/lib/systemd/hostkey.d/60-ec2-instance-connect.list
/lib/systemd/system-preset/95-ec2-instance-connect-harvest-hostkeys.preset
/opt/aws/bin/eic_curl_authorized_keys
/opt/aws/bin/eic_harvest_hostkeys
/opt/aws/bin/eic_parse_authorized_keys
/opt/aws/bin/eic_run_authorized_keys
/usr/lib/systemd/system-preset/95-ec2-instance-connect-harvest-hostkeys.preset
/usr/lib/systemd/system/ec2-instance-connect-harvest-hostkeys.service

References

Summary

In this tutorial we learn how to install ec2-instance-connect.noarch on Amazon Linux 2 using yum.