How To Install screen on Ubuntu 20.04

In this tutorial we learn how to install screen on Ubuntu 20.04. screen is terminal multiplexer with VT100/ANSI terminal emulation terminal multiplexer with VT100/ANSI terminal emulation

Introduction

In this tutorial we learn how to install screen on Ubuntu 20.04.

What is screen

screen is:

GNU Screen is a terminal multiplexer that runs several separate “screens” on a single physical character-based terminal. Each virtual terminal emulates a DEC VT100 plus several ANSI X3.64 and ISO 2022 functions. Screen sessions can be detached and resumed later on a different terminal.

Screen also supports a whole slew of other features, including configurable input and output translation, serial port support, configurable logging, and multi-user support. Task: server, cloud-image

Package: screen Architecture: amd64 Version: 4.8.0-1 Priority: optional Section: misc Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Axel Beckert [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 998 Depends: libc6 (>= 2.16), libpam0g (>= 0.99.7.1), libtinfo6 (>= 6), libutempter0 (>= 1.1.5) Suggests: byobu | screenie | iselect (>= 1.4.0-1), ncurses-term Filename: pool/main/s/screen/screen_4.8.0-1_amd64.deb Size: 577056 MD5sum: 2915a713f34a89ab20b84ab1a9a21903 SHA1: 0a382d41c9e96379a7c309a3e47afcc53b7ee042 SHA256: 5c3232f394a45cb122ace0b1e84cd185a56029c3cb324e7525f3513d8f48193a Homepage: https://savannah.gnu.org/projects/screen Description-en: terminal multiplexer with VT100/ANSI terminal emulation GNU Screen is a terminal multiplexer that runs several separate “screens” on a single physical character-based terminal. Each virtual terminal emulates a DEC VT100 plus several ANSI X3.64 and ISO 2022 functions. Screen sessions can be detached and resumed later on a different terminal.

Screen also supports a whole slew of other features, including configurable input and output translation, serial port support, configurable logging, and multi-user support. Task: server, cloud-image

There are three methods to install screen on Ubuntu 20.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 screen Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install screen

Install screen Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install screen

Install screen 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 screen using aptitude by running the following command:

sudo aptitude -y install screen

How To Uninstall screen on Ubuntu 20.04

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

sudo apt-get remove screen

Uninstall screen And Its Dependencies

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

sudo apt-get -y autoremove screen

Remove screen Configurations and Data

To remove screen configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge screen

Remove screen configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge screen

References

Summary

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