How To Install ec2-metadata on Fedora 36
Introduction
In this tutorial we learn how to install ec2-metadata
on Fedora 36.
What is ec2-metadata
A simple bash script that uses curl to query the EC2 instance metadata from within an instance running in Amazon EC2 or another cloud provider with a compatible metadata service.
We can use yum
or dnf
to install ec2-metadata
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ec2-metadata.
Install ec2-metadata on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install ec2-metadata
using dnf
by running the following command:
sudo dnf -y install ec2-metadata
Install ec2-metadata on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install ec2-metadata
using yum
by running the following command:
sudo yum -y install ec2-metadata
How To Uninstall ec2-metadata on Fedora 36
To uninstall only the ec2-metadata
package we can use the following command:
sudo dnf remove ec2-metadata
ec2-metadata Package Contents on Fedora 36
/usr/bin/ec2-metadata
References
Summary
In this tutorial we learn how to install ec2-metadata
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).