How to Install and Uninstall hostname Package on Debian 12 (Bookworm)

Last updated: May 14,2024

1. Install "hostname" package

Here is a brief guide to show you how to install hostname on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install hostname

2. Uninstall "hostname" package

Here is a brief guide to show you how to uninstall hostname on Debian 12 (Bookworm):

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

3. Information about the hostname package on Debian 12 (Bookworm)

Package: hostname
Version: 3.23+nmu1
Essential: yes
Installed-Size: 46
Maintainer: Michael Meskes
Architecture: amd64
Replaces: nis (<< 3.17-30)
Pre-Depends: libc6 (>= 2.34)
Breaks: nis (<< 3.17-30)
Description: utility to set/show the host name or domain name
Description-md5: a5a22acc3c69a7f40f07f1a8dfc93af1
Tag: implemented-in::c, interface::commandline, role::program,
scope::utility, use::configuring
Section: admin
Priority: required
Filename: pool/main/h/hostname/hostname_3.23+nmu1_amd64.deb
Size: 10500
MD5sum: fa27a5add564eec66b15b32435e541de
SHA256: 17d9a2f3c05004499d80e180d2440fd716f84c32b65f09d96c9a024af4d1d0e7