Forked from indrayam/tmux_build_from_source_ubuntu.sh
Last active
November 14, 2019 11:47
-
-
Save asanchez75/6d68a42d19fc0a91a7cf7009f201ef33 to your computer and use it in GitHub Desktop.
Install latest version of tmux in Ubuntu 16.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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]. | |
export 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