How to Install and Uninstall libnss-myhostname Package on Ubuntu 21.04 (Hirsute Hippo)

Last updated: November 26,2024

1. Install "libnss-myhostname" package

Please follow the guidelines below to install libnss-myhostname on Ubuntu 21.04 (Hirsute Hippo)

$ sudo apt update $ sudo apt install libnss-myhostname

2. Uninstall "libnss-myhostname" package

Please follow the steps below to uninstall libnss-myhostname on Ubuntu 21.04 (Hirsute Hippo):

$ sudo apt remove libnss-myhostname $ sudo apt autoclean && sudo apt autoremove

3. Information about the libnss-myhostname package on Ubuntu 21.04 (Hirsute Hippo)

Package: libnss-myhostname
Architecture: amd64
Version: 247.3-3ubuntu3
Multi-Arch: same
Priority: extra
Section: universe/admin
Source: systemd
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian systemd Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 276
Depends: libc6 (>= 2.30)
Filename: pool/universe/s/systemd/libnss-myhostname_247.3-3ubuntu3_amd64.deb
Size: 41172
MD5sum: a257ca124bf7dace67b463517e98e164
SHA1: 108117575fc1dbbc90735686c3286f56bc363c6c
SHA256: 0a48e2f56f35f06fa40c48dea4d82a075e21884d0a368d05ebb8525ba96af80d
SHA512: 768abb2ab74812e45f542069b353f474295ec29ae5251ec7619fa7e9891586caa3a45ec2a54b4a7a7dccf72f21453256cfc533aa3f01772782619808e61b2626
Homepage: https://www.freedesktop.org/wiki/Software/systemd
Description-en: nss module providing fallback resolution for the current hostname
This package contains a plugin for the Name Service Switch, providing host
name resolution for the locally configured system hostname as returned by
gethostname(2). It returns all locally configured public IP addresses or -- if
none are configured, the IPv4 address 127.0.1.1 (which is on the local
loopback) and the IPv6 address ::1 (which is the local host).
.
A lot of software relies on that the local host name is resolvable. This
package provides an alternative to the fragile and error-prone manual editing
of /etc/hosts.
.
Installing this package automatically adds myhostname to /etc/nsswitch.conf.
Description-md5: 0bec93cc0b56ef90c11c1a7842dd8f8a