How to Install and Uninstall hostname.x86_64 Package on Amazon Linux 2

Last updated: January 10,2025

1. Install "hostname.x86_64" package

Learn how to install hostname.x86_64 on Amazon Linux 2

$ sudo yum makecache $ sudo yum install hostname.x86_64

2. Uninstall "hostname.x86_64" package

Please follow the step by step instructions below to uninstall hostname.x86_64 on Amazon Linux 2:

$ sudo yum remove hostname.x86_64 $ sudo yum autoremove

3. Information about the hostname.x86_64 package on Amazon Linux 2

Loaded plugins: ovl, priorities
Available Packages
Name : hostname
Arch : x86_64
Version : 3.13
Release : 3.amzn2.0.2
Size : 17 k
Repo : amzn2-core/2/x86_64
Summary : Utility to set/show the host name or domain name
URL : http://packages.qa.debian.org/h/hostname.html
License : GPLv2+
Description : 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.