Today a very short tutorial on how to update tmux at *nix. Why would you update your tmux ? Checkout.

S0-E13/E30 :)

Tmux

Tmux is an terminal multiplexer and a some-how successor of gnu-screen.

I used to use screen, but since it didn't have such good multiplexing as tmux, I've decided to abandon it.

Why do you need latest version of tmux?

That's the problem - since I'm planning to use Ubuntu Trusty disto until 18.04 will be delivered, I need to update my packages from 14.04 manually.

But why ?

There's a plugin called tmux-ressurect that has this fancy option to save & restore all tmux sessions with only CMD + r and CMD + s. Unfortunatelly it needs at least 1.9 version of tmux and trusty disto went with 1.8 :( so let's upgrade to 2.6 :D

Building from source

Let's first install dependencies for building on our machine:

sudo apt-get -y remove tmux
sudo apt-get -y install wget tar libevent-dev libncurses-dev

then let's download source and unpack it:

VERSION=2.6
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

Now let's build and install it and cleanit up:

VERSION=2.6
cd tmux-${VERSION}
./configure
make
sudo make install
cd -
sudo rm -rf /usr/local/src/tmux-\*
sudo mv tmux-${VERSION} /usr/local/src

Than only thing that you SHOULD do - not to have problems with protocol version mismatch is to kill old tmux server that can be still running in the background with :

sudo killall -9 tmux

Acknowledgements

Thanks!

That's it :) Comment, share or don't :)

If you have any suggestions what I should blog about in the next articles - please give me a hint :)

See you tomorrow! Cheers!



Comments

comments powered by Disqus