Skip to content

Instantly share code, notes, and snippets.

@pokev25
Forked from rothgar/install-tmux
Last active September 21, 2024 13:46
Show Gist options
  • Save pokev25/4b9516d32f4021d945a140df09bf1fde to your computer and use it in GitHub Desktop.
Save pokev25/4b9516d32f4021d945a140df09bf1fde to your computer and use it in GitHub Desktop.
Install tmux 2.8 on centos 7
# Install tmux 2.8 on Centos
# install deps
yum install gcc kernel-devel make ncurses-devel
# cd src
cd /usr/local/src
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
curl -LO https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz
tar -xf libevent-2.1.8-stable.tar.gz
cd libevent-2.1.8-stable
./configure --prefix=/usr/local
make
make install
# DOWNLOAD SOURCES FOR TMUX AND MAKE AND INSTALL
curl -LO https://github.com/tmux/tmux/releases/download/2.8/tmux-2.8.tar.gz
tar -xf tmux-2.8.tar.gz
cd tmux-2.8
LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" ./configure --prefix=/usr/local
make
make install
# pkill tmux
# close your terminal window (flushes cached tmux executable)
# open new shell and check tmux version
tmux -V
@MikeKlebolt
Copy link

This can all be replaced by two steps:

yum -y install  https://centos7.iuscommunity.org/ius-release.rpm
yum install -y tmux2u
➜  ~ tmux -V
tmux 2.9a

@mithilarun
Copy link

Thanks @MikeKlebolt! That worked like a charm.

@wongtou
Copy link

wongtou commented Dec 16, 2019

Thank you!
It is very convenient!

@quyenhv
Copy link

quyenhv commented Apr 14, 2020

Thank you!

@kafkaesqu3
Copy link

curl -k is bad

@ric-bianchi
Copy link

Thanks! Very useful!

@BIGBALLON
Copy link

BIGBALLON commented Jul 20, 2020

Great!

@mjohnston-ha
Copy link

Thank you!

@kdbreboot
Copy link

Thank you!

@sfc-gh-mjendruk
Copy link

For anyone looking for the

This can all be replaced by two steps:

yum -y install  https://centos7.iuscommunity.org/ius-release.rpm
yum install -y tmux2u
➜  ~ tmux -V
tmux 2.9a

The repository URL has changed. It is now

yum install https://repo.ius.io/ius-release-el7.rpm https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install -y tmux2u

Taken from https://ius.io/setup

@qq157755587
Copy link

Install latest tmux(3.x) on centos 7:

yum install http://galaxy4.net/repo/galaxy4-release-7-current.noarch.rpm
yum install tmux

tmux -V
tmux 3.3

@brantzau
Copy link

the easiest way probably directly downloaded the tmux 3,3 package from http://galaxy4.net/repo/RHEL/7/x86_64/tmux-3.3-1.el7.x86_64.rpm use wget. and then use rpm -ivh tmux to install it. no yum involved

@johanliu
Copy link

yum install tmux

Thank you!

@Cyclone-Zhang
Copy link

Install latest tmux(3.x) on centos 7:

yum install http://galaxy4.net/repo/galaxy4-release-7-current.noarch.rpm
yum install tmux

tmux -V
tmux 3.3

problem solved! thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment