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
@ajpircio
Copy link

Thank you!

@m3ngyang
Copy link

good~

@mrsndmn
Copy link

mrsndmn commented Oct 3, 2017

I also need this package
yum install automake.noarch

And if you had bad ./configure execution may be you need make clean

@kishaningithub
Copy link

Thanks it worked!!

@zhiquan-li
Copy link

Thanks!

The dependency of libevent-2.0.x also can be resolved by:
yum install libevent2-devel

@psramkumar
Copy link

change CURL to wget it works

@tier61wro
Copy link

tier61wro commented Jan 16, 2019

works like magic on C6!
Thx a lot!

@robyurkowski
Copy link

robyurkowski commented Feb 12, 2019

In case you're a dummy like me, ./configure also has to be run with root privs, not just the yum / make commands. And make sure that /usr/local/bin is in your path.

@ichandan16
Copy link

In case you're a dummy like me, ./configure also has to be run with root privs, not just the yum / make commands. And make sure that /usr/local/bin is in your path.

You're not alone 👍

@j3j3k
Copy link

j3j3k commented May 28, 2019

Tmux 2.8 -> 2.9a, libevent 2.1.8 -> 2.1.10
https://gist.github.com/j3j3k/2378f8e7bca7bcda7ffab16b6b97a328

@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