How To Install xtitle on Ubuntu 18.04

In this tutorial we learn how to install xtitle on Ubuntu 18.04. xtitle is set window title and icon name for X terminal

Introduction

In this tutorial we learn how to install xtitle on Ubuntu 18.04.

What is xtitle

xtitle is:

Xtitle sets the window title and/or the icon name of the terminal window in which it is run to be its command line arguments. It does this by outputting the appropriate xterm(1) control sequence charac characters. Unless messages are suppressed, xtitle will also report the settings it has made.

Note: In order to be able to change the terminal’s title, the terminal must support ANSI escape codes.

There are three methods to install xtitle on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install xtitle Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install xtitle using apt-get by running the following command:

sudo apt-get -y install xtitle

Install xtitle Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install xtitle using apt by running the following command:

sudo apt -y install xtitle

Install xtitle Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install xtitle using aptitude by running the following command:

sudo aptitude -y install xtitle

How To Uninstall xtitle on Ubuntu 18.04

To uninstall only the xtitle package we can use the following command:

sudo apt-get remove xtitle

Uninstall xtitle And Its Dependencies

To uninstall xtitle and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove xtitle

Remove xtitle Configurations and Data

To remove xtitle configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge xtitle

Remove xtitle configuration, data, and all of its dependencies

We can use the following command to remove xtitle configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge xtitle

References

Summary

In this tutorial we learn how to install xtitle package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.