Bytedown

B

TL;DR: Install tmux on Ubuntu 22.04

How to install tmux on Ubuntu 22.04.

This post serves as a quick reference for installing the tmux application on Ubuntu 22.04.

TL;DR

In a hurry? Execute the below commands.

sudo apt -y install tmux
tmux -V

Step-by-Step

Need some more details? Follow the steps below.

Install tmux using apt

Execute the sudo apt -y install tmux command to install the tmux package using the apt package manager. The -y flag automatically accepts the installation prompt.

sudo apt -y install tmux

Example output of this command is shown below.

christopher@ubuntu-playground:~$ sudo apt -y install tmux
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  tmux
0 upgraded, 1 newly installed, 0 to remove and 60 not upgraded.
Need to get 428 kB of archives.
After this operation, 1,051 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 tmux amd64 3.2a-4ubuntu0.2 [428 kB]
Fetched 428 kB in 0s (2,819 kB/s)
Selecting previously unselected package tmux.
(Reading database ... 142076 files and directories currently installed.)
Preparing to unpack .../tmux_3.2a-4ubuntu0.2_amd64.deb ...
Unpacking tmux (3.2a-4ubuntu0.2) ...
Setting up tmux (3.2a-4ubuntu0.2) ...
Processing triggers for man-db (2.10.2-1) ...
Scanning processes...
Scanning linux images...

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.

Confirm tmux Version

Execute the tmux -V command to display the current version of the tmux package installed on the system.

tmux -V

Example output of this command is below.

christopher@ubuntu-playground:~$ tmux -V
tmux 3.2a

Email icon GitHub icon Twitter/X icon