Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Are there any PPA?

If no, how to make it from sources? Which dev libs I'll need to do this?

share|improve this question

6 Answers 6

up vote 14 down vote accepted

As you possibly already realized, tmux version 1.8 is too new. As of writing this answer, version 1.8 is only 19 hours old.

There is indeed an official PPA for tmux, but don't expect new version to appear there instantly. It might take hours, days, and even weeks, and it's totally up to PPA maintainer.

If you for some reason need a newest version, then you might download the code and build/install tmux by yourself. Should not be a big deal, since tmux has dependencies only on libevent and ncurses packages, and both of these packages are present on most if not all of Linux distros. Just download the latest code, and type following via terminal:

$ sudo apt-get install libevent-dev libncurses-dev pkg-config
$ autoreconf -fis
$ ./configure
& make
$ sudo make install
share|improve this answer
2  
...you might also mention how you figured out which lib packages tmux would require to compile. –  Craig Constantine Mar 27 '13 at 14:50
1  
It's simple - these packages are mentioned on tmux homepage, right here. :) –  Andrejs Cainikovs Mar 27 '13 at 14:56
4  
@AndrejsCainikovs The link you give for the official PPA is just the source package in Ubuntu - it is not a PPA at all. –  Hamish Downer Apr 26 '13 at 14:44
    
what is 'autoreconf' - I don't have it. (Ubuntu 13.04) –  Jonathan Hartley Nov 2 '13 at 15:51
2  
Those packages are not quite mentioned on tmux homepage. You have to know Linux to figure you need the '-dev' packages, and there's no indication as to whether you need libevent1 or 2. –  Jonathan Hartley Nov 2 '13 at 15:51

Here is the way I did it on Ubuntu 13.04 (Raring Ringtail) and 14.04 (Trusty Tahr):

sudo add-apt-repository ppa:pi-rho/dev (source)

sudo apt-get update (freshens the cache/database of packages)

sudo apt-cache show tmux (*optional, shows you available versions, 1.7 & 1.8 should be listed)

sudo apt-get install tmux

tmux -V

share|improve this answer
    
I only get Version: 1.7-3 (amd64). May it be possible that those are only 32 bits packages? –  GermanK Feb 4 at 12:53
    
Not sure, I am on 64bit if that helps. –  Elijah Lynn Feb 4 at 21:10
    
What version of Ubuntu are you running? –  Elijah Lynn Feb 4 at 21:12
1  
Same as you, ubuntu 13.04... strange! Anyway, I finally installed it from the source. Thanks! –  GermanK Feb 6 at 9:06
1  
This pi-rho fellow is fantastic. Packages are still maintained and up to date, even a year later. The PPA even supports 14.04. Thank you, whomever you are. –  Ehtesh Choudhury May 7 at 3:45

I have not found an "official" PPA for new tmux packages. However a PPA search on launchpad turns up quite a few options.

Many are out of date, but I found a ppa by pi-rho that has current tmux and tmux-next packages for 12.04, 12.10 and 13.04. (At the time of this answer they are at versions 1.8-1ubuntu1~ppa2 and 1.9~20130425~bzr3062+9-1ubuntu1~ppa0). There is no guarantee that that PPA will continue to be maintained up-to-date, but for now it seems like a fair option.

Be aware that it also has a number of other packages in it. If you add this PPA you will find the other packages also get upgraded unless you do some sort of apt pin config.

share|improve this answer

In order to run tmuxinator on Ubuntu Precise (12.04), I needed tmux v1.8+, which is available in Saucy now and therefore in the "backports" repository for Precise. Here's how I got it:

  1. Per UbuntuBackports, edit /etc/apt/sources.list to enable the "precise-backports" repositories (around line 45).
  2. Update your repository cache with sudo apt-get update
  3. Per different instructions, install the backported version (1.8) with sudo apt-get install -t precise-backports tmux. I couldn't get apt-get install tmux/precise-backports to work for me.
  4. Confirm the installed version with tmux -V
  5. Happy tmuxing!

Note you'll have to kill all sessions and start with fresh ones, otherwise you'll get a server-client version mismatch error, and other users logged in on the same server may be running tmux, which will keep the server process alive until everyone exits. Look for zombies, too (ps aux | grep tmux).

share|improve this answer

This PPA has it though, ppa:kalakris/tmux

share|improve this answer

The easiest way for me is to dpkg install the tmux 1.8 package built for Ubuntu 13.10 from the official PPA https://launchpad.net/ubuntu/+source/tmux, all its dependencies are met in Ubuntu 12.04.3

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.