How to Install and Uninstall hostname Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: June 18,2024

1. Install "hostname" package

Please follow the instructions below to install hostname on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install hostname

2. Uninstall "hostname" package

Please follow the guidance below to uninstall hostname on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove hostname $ sudo apt autoclean && sudo apt autoremove

3. Information about the hostname package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: hostname
Essential: yes
Priority: required
Section: admin
Installed-Size: 50
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Hostname Team
Architecture: amd64
Version: 3.16ubuntu2
Replaces: nis (<< 3.17-30)
Pre-Depends: libc6 (>= 2.4), lsb-base (>= 4.1+Debian11ubuntu7)
Breaks: nis (<< 3.17-30)
Filename: pool/main/h/hostname/hostname_3.16ubuntu2_amd64.deb
Size: 11548
MD5sum: 2665061ae6994785781cdd97bdc39082
SHA1: 5a63028ef09fc0e8056fbdac7b6d2f1f47f327ef
SHA256: 78ffb1d52ec35aafb91eefa09ddd4b66a264c114697b71ddb4867bc86dfe39c3
Description-en: utility to set/show the host name or domain name
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.
Description-md5: a5a22acc3c69a7f40f07f1a8dfc93af1
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y
Task: minimal