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
If you don't want to add a PPA, you can just build it from source. It's explained in the README
on tmux's GitHub page:
To build tmux from a release tarball, do:
$ ./configure && make $ sudo make install
You might need to install some extra packages to build it. On Ubuntu I needed to install these packages before it would successfully build:
exuberant-ctags
cmake
libevent-dev
libncurses5-dev
Another way to do #3 above (especially if you are using a corporate proxy that might break ppa).
sudo add-apt-repository -y http://ppa.launchpad.net/pi-rho/dev/ubuntu
If using a tool like Artifactory to act as a caching package proxy
sudo add-apt-repository -y http://my.artifactory.site/ppa.launchpad.net/pi-rho/dev/ubuntu
or
sudo add-apt-repository -y http://my.domain/artifactory/ppa.launchpad.net/pi-rho/dev/ubuntu
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With