How To Install hostname.x86_64 on Amazon Linux 2
In this tutorial we learn how to install hostname.x86_64 in Amazon Linux 2. hostname.x86_64 is Utility to set/show the host name or domain name
Introduction
In this tutorial we learn how to install hostname.x86_64 on Amazon Linux 2.
What is hostname.x86_64
This package provides commands which can be used to display the system’s DNS name, and to display or set its hostname or NIS domain name.
We can use yum to install hostname.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install hostname.x86_64.
Install hostname.x86_64 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 hostname.x86_64 using yum by running the following command:
sudo yum -y install hostname.x86_64
How To Uninstall hostname.x86_64 on Amazon Linux 2
To uninstall only the hostname.x86_64 package we can use the following command:
sudo yum remove hostname.x86_64
hostname.x86_64 Package Contents on Amazon Linux 2
/bin/dnsdomainname
/bin/domainname
/bin/hostname
/bin/nisdomainname
/bin/ypdomainname
/usr/share/doc/hostname-3.13
/usr/share/doc/hostname-3.13/COPYRIGHT
/usr/share/man/man1/dnsdomainname.1.gz
/usr/share/man/man1/domainname.1.gz
/usr/share/man/man1/hostname.1.gz
/usr/share/man/man1/nisdomainname.1.gz
/usr/share/man/man1/ypdomainname.1.gz
References
Summary
In this tutorial we learn how to install hostname.x86_64 on Amazon Linux 2 using yum.