Skip to content

Instantly share code, notes, and snippets.

@thinkycx
Created November 2, 2018 04:39
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 thinkycx/8323b10474c2c9d35cc16c6355a56259 to your computer and use it in GitHub Desktop.
Save thinkycx/8323b10474c2c9d35cc16c6355a56259 to your computer and use it in GitHub Desktop.
install latest tmux version from github/tmux/tmux on ubuntu
#!/bin/bash
# date: 2018-11-02
# author: thinkycx
# reference: https://bogdanvlviv.com/posts/tmux/how-to-install-the-latest-tmux-on-ubuntu-16_04.html
# test on: ubuntu 16.04
sudo apt install -y automake
sudo apt install -y build-essential
sudo apt install -y pkg-config
sudo apt install -y libevent-dev
sudo apt install -y libncurses5-dev
# ensure tmux is not running
rm -rf /tmp/tmux
git clone https://github.com/tmux/tmux.git /tmp/tmux
cd /tmp/tmux
sh autogen.sh
# make
echo "[*] start to make..."
./configure && make
# install
echo "[*] start to install..."
sudo make install
# remove
echo "[*] rm -rf /tmp/tmux"
cd -
rm -rf /tmp/tmux
# check tmux version
echo "[*] now your tmux version:"
tmux -V
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment