Building tmux from source on CentOS/RHEL

The version of tmux available through the CentOS/RHEL repositories is very old and you are missing out if you don’t take a few minutes to upgrade to the latest release.


Note the version you already have installed:

tmux -V

Install the dependencies:

libevent-devel ncurses-devel gcc make bison pkg-config

Download the latest release of tmux:

wget https://github.com/tmux/tmux/releases/latest

Extract the download:

tar -zxf tmux-*.tar.gz

Build and install:

cd tmux-*/
sudo ./configure
sudo make && sudo make install

Verify you have the newer version installed:

tmux -V