How to Install and Uninstall hostname Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: February 16,2025

1. Install "hostname" package

This tutorial shows how to install hostname on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install hostname

2. Uninstall "hostname" package

This tutorial shows how to uninstall hostname on Ubuntu 18.04 LTS (Bionic Beaver):

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

3. Information about the hostname package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: hostname
Architecture: amd64
Version: 3.20
Priority: required
Essential: yes
Section: admin
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Michael Meskes
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 46
Pre-Depends: libc6 (>= 2.4)
Breaks: nis (<< 3.17-30)
Replaces: nis (<< 3.17-30)
Filename: pool/main/h/hostname/hostname_3.20_amd64.deb
Size: 11296
MD5sum: effbf1607e07d4dbf4b476bdad237281
SHA1: 4a3aae436fce0e25a24a604d1be0e489ccafb1b0
SHA256: 220e0bfc812916f6f94d603096298591272dc4645a057b7734d211c7f81e9ec7
Description: utility to set/show the host name or domain name
Description-md5: a5a22acc3c69a7f40f07f1a8dfc93af1
Task: minimal
Supported: 5y