I was just adding tmux plugins to my .tmux.conf file to find out that one of the plugins (tmux-copycat I think) requires tmux 1.9. When I start tmux I get the message `Error: Tmux version unsupported. Please install tmux version 1.9 or greater!".
So, what is the best way to upgrade tmux 1.8 to 1.9 on Ubuntu 14.04?
Update: due to new tmux version and changes in package repository, this answer is updated to show how to install tmux 2.0
(which is better, no reason to use 1.9
anymore).
Here are the steps to update "blank" ubuntu - version 14.04 only (see below for other ubuntu versions):
sudo apt-get update
sudo apt-get install -y python-software-properties software-properties-common
sudo add-apt-repository -y ppa:pi-rho/dev
sudo apt-get update
sudo apt-get install -y tmux=2.0-1~ppa1~t
tmux -V
it should show tmux 2.0
which is a good version for tmux pluginsI verified the above steps on a new digitalocean droplet.
Basically, it's adding the pi-rho/dev repository, updating and then installing tmux from there.
If you have another ubuntu version you might want to install a different tmux version from the same repo. So:
sudo apt-get install -y tmux=1.9a-1~ppa1~p
(installs tmux 1.9
, no package for tmux 2.0
yet)sudo apt-get install -y tmux=1.9a-1~ppa1~s
(installs tmux 1.9
, no package for tmux 2.0
yet)sudo apt-get install -y tmux=2.0-1~ppa1~u
sudo apt-get install -y tmux=2.0-1~ppa1~v