How to Install hostname software package in Ubuntu 16.04 LTS (Xenial Xerus)

How to Install hostname software package in Ubuntu 16.04 LTS (Xenial Xerus)

hostname software package provides utility to set/show the host name or domain name, you can install in your Ubuntu 16.04 LTS (Xenial Xerus) by running the commands given below on the terminal,

$ sudo apt-get update
$ sudo apt-get install hostname 

hostname is installed in your system.

Make ensure the hostname package were installed using the commands given below,

$ sudo dpkg-query -l | grep hostname *

You will get with hostname package name, version, architecture and description in a table

hostname package basic information:

Distro Ubuntu 16 04 lts xenial xerus
Section Administration Utilities
Package hostname
Version 3.16ubuntu2
Description utility to set/show the host name or domain name
Sub Section admin


See Also, How to uninstall or remove hostname software package from Ubuntu 16.04 LTS (Xenial Xerus) ?