Skip to content

Instantly share code, notes, and snippets.

@dohsimpson
Forked from wikrie/tmux-install-2-5.sh
Created October 13, 2018 23:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dohsimpson/0285d12fb12a633e2cc9e6f36a83a2fb to your computer and use it in GitHub Desktop.
Save dohsimpson/0285d12fb12a633e2cc9e6f36a83a2fb to your computer and use it in GitHub Desktop.
Install Tmux 2.5 Ubuntu
#!/bin/bash
# Steps to build and install tmux from source on Ubuntu.
# Takes < 25 seconds on EC2 env [even on a low-end config instance].
VERSION=2.5
sudo apt-get -y remove tmux
sudo apt-get -y install wget tar libevent-dev libncurses-dev
wget https://github.com/tmux/tmux/releases/download/${VERSION}/tmux-${VERSION}.tar.gz
tar xf tmux-${VERSION}.tar.gz
rm -f tmux-${VERSION}.tar.gz
cd tmux-${VERSION}
./configure
make
sudo make install
cd -
sudo rm -rf /usr/local/src/tmux-*
sudo mv tmux-${VERSION} /usr/local/src
## Logout and login to the shell again and run.
## tmux -V
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment