Instantly share code, notes, and snippets.

Embed
What would you like to do?
tmux 2.0 and tmux 2.3 installation steps for Ubuntu. Or build from tmux source v2.5 for Ubuntu and CentOS.
# tmux v2.3 installation steps for Ubuntu [various OS versions]
sudo apt-get update -yqqu
sudo add-apt-repository -yu ppa:pi-rho/dev
sudo apt-get update -yqqu
sudo apt-get install -yqqu python-software-properties software-properties-common
sudo apt-get install -yqq tmux-next=2.3~20160913~bzr3547+20-1ubuntu1~ppa0~ubuntu16.04.1
# sudo apt-get install -yqq tmux-next=2.3~20160913~bzr3547+20-1ubuntu1~ppa0~ubuntu15.10.1
# sudo apt-get install -yqq tmux-next=2.3~20160913~bzr3547+20-1ubuntu1~ppa0~ubuntu15.04.1
# sudo apt-get install -yqq tmux-next=2.3~20160913~bzr3547+20-1ubuntu1~ppa0~ubuntu14.04.1
# sudo apt-get install -yqq tmux-next=2.3~20160913~bzr3547+20-1ubuntu1~ppa0~ubuntu12.04.1
tmux-next -V
# tmux v2.0 installation steps for Ubuntu 14.04 (Trusty Tahr)
tmux -V
sudo apt-get update -yqqu
sudo apt-get install -yqqu python-software-properties software-properties-common
sudo add-apt-repository -yu ppa:pi-rho/dev
sudo apt-get update -yqqu
sudo apt-get install -yqqu tmux
# sudo apt-get install -yqqu tmux=2.0-1~ppa1~t
tmux -V
# tmux v1.9 installation steps for Ubuntu 14.04 (Trusty Tahr)
sudo apt-get update -yqqu
sudo apt-get install -yqqu python-software-properties software-properties-common
sudo add-apt-repository -yu ppa:pi-rho/dev
sudo apt-get update -yqqu
sudo apt-get install -yqqu tmux=1.9a-1~ppa1~t
tmux -V
# On Ubuntu 12.04 (Precise Pangolin), step 5 would be: sudo apt-get install -y tmux=1.9a-1~ppa1~p
# On Ubuntu 13.10 (Saucy Salamander), step 5 would be: sudo apt-get install -y tmux=1.9a-1~ppa1~s
@gstr-dsm

This comment has been minimized.

Show comment
Hide comment
@gstr-dsm

gstr-dsm commented Oct 22, 2015

ok

@askpramod

This comment has been minimized.

Show comment
Hide comment
@askpramod

askpramod Nov 5, 2015

Cool. Thanks.

askpramod commented Nov 5, 2015

Cool. Thanks.

@echorohit

This comment has been minimized.

Show comment
Hide comment
@echorohit

echorohit Dec 14, 2015

Thank you!

echorohit commented Dec 14, 2015

Thank you!

@arpit-amura

This comment has been minimized.

Show comment
Hide comment
@arpit-amura

arpit-amura May 9, 2016

This works like a charm :) Thanks a lot for this gist.

arpit-amura commented May 9, 2016

This works like a charm :) Thanks a lot for this gist.

@spencer1573

This comment has been minimized.

Show comment
Hide comment
@spencer1573

spencer1573 commented May 10, 2016

nice!

@philippotto

This comment has been minimized.

Show comment
Hide comment
@philippotto

philippotto May 12, 2016

Does anybody have the corresponding commands for installing tmux v2.1?

philippotto commented May 12, 2016

Does anybody have the corresponding commands for installing tmux v2.1?

@MikimotoH

This comment has been minimized.

Show comment
Hide comment
@MikimotoH

MikimotoH May 31, 2016

thanks, it works for tmux plugins manager tpm!

MikimotoH commented May 31, 2016

thanks, it works for tmux plugins manager tpm!

@durcana

This comment has been minimized.

Show comment
Hide comment
@durcana

durcana Jun 30, 2016

Super helpful, thanks

durcana commented Jun 30, 2016

Super helpful, thanks

@kaseton-action

This comment has been minimized.

Show comment
Hide comment
@kaseton-action

kaseton-action Jul 12, 2016

thank you 👍

kaseton-action commented Jul 12, 2016

thank you 👍

@Vertux

This comment has been minimized.

Show comment
Hide comment
@Vertux

Vertux Oct 20, 2016

It is sufficient to: sudo apt-get install tmux-next to get the latest version, which is atm v2.4
I did additional: sudo ln -s /usr/bin/tmux-next /usr/bin/tmux

Vertux commented Oct 20, 2016

It is sufficient to: sudo apt-get install tmux-next to get the latest version, which is atm v2.4
I did additional: sudo ln -s /usr/bin/tmux-next /usr/bin/tmux

@DrakeJones

This comment has been minimized.

Show comment
Hide comment
@DrakeJones

DrakeJones Nov 8, 2016

I am doing an install on Ubuntu 16.04.1 LTS and tmux 2.1 is incompatibe with the project I am working with. Executing tmux_install.sh - tmux v2.3 installation steps for Ubuntu [various OS versions] (above) gets to sudo apt-get install -yqq tmux-next=2.3~20160913~bzr3547+20-1ubuntu1~ppa0~ubuntu16.04.1 then returns this error E: Version '2.3~20160913~bzr3547+20-1ubuntu1~ppa0~ubuntu16.04.1' for 'tmux-next' was not found

Any advice?

DrakeJones commented Nov 8, 2016

I am doing an install on Ubuntu 16.04.1 LTS and tmux 2.1 is incompatibe with the project I am working with. Executing tmux_install.sh - tmux v2.3 installation steps for Ubuntu [various OS versions] (above) gets to sudo apt-get install -yqq tmux-next=2.3~20160913~bzr3547+20-1ubuntu1~ppa0~ubuntu16.04.1 then returns this error E: Version '2.3~20160913~bzr3547+20-1ubuntu1~ppa0~ubuntu16.04.1' for 'tmux-next' was not found

Any advice?

@08solsticegxp

This comment has been minimized.

Show comment
Hide comment
@08solsticegxp

08solsticegxp Nov 26, 2016

run one at a time.
sudo add-apt-repository ppa:pi-rho/dev
sudo apt-get update
sudo apt-get install tmux-next=2.3~20161124~bzr3624+20-1ubuntu1~ppa0~ubuntu16.04.1

08solsticegxp commented Nov 26, 2016

run one at a time.
sudo add-apt-repository ppa:pi-rho/dev
sudo apt-get update
sudo apt-get install tmux-next=2.3~20161124~bzr3624+20-1ubuntu1~ppa0~ubuntu16.04.1

@vwal

This comment has been minimized.

Show comment
Hide comment
@vwal

vwal Jan 9, 2017

Or just use plain "tmux-next" as in sudo apt-get install tmux-next

For the latest version available in the launchpad repo, go to https://launchpad.net/~pi-rho/+archive/ubuntu/dev and look for the package name on the list for your Ubuntu release. It seems the latest "tmux-next" package as of writing of this message is actually version 2.4 even though the string for it is: 2.3~20170107~bzr3641+20-1ubuntu1~ppa0~ubuntu16.04.1

vwal commented Jan 9, 2017

Or just use plain "tmux-next" as in sudo apt-get install tmux-next

For the latest version available in the launchpad repo, go to https://launchpad.net/~pi-rho/+archive/ubuntu/dev and look for the package name on the list for your Ubuntu release. It seems the latest "tmux-next" package as of writing of this message is actually version 2.4 even though the string for it is: 2.3~20170107~bzr3641+20-1ubuntu1~ppa0~ubuntu16.04.1

@GoodGuy98

This comment has been minimized.

Show comment
Hide comment
@GoodGuy98

GoodGuy98 Jan 29, 2017

I ran this command to install:

sudo apt-get install tmux-next=2.320170128bzr3691+20-1ubuntu1ppa0ubuntu14.04.1

The command "tmux-next -V" produced this as output:

tmux-next master

I assume this is not the correct output value, so is there another method to determine the actual version number?
I am a total newbie to tmux.

GoodGuy98 commented Jan 29, 2017

I ran this command to install:

sudo apt-get install tmux-next=2.320170128bzr3691+20-1ubuntu1ppa0ubuntu14.04.1

The command "tmux-next -V" produced this as output:

tmux-next master

I assume this is not the correct output value, so is there another method to determine the actual version number?
I am a total newbie to tmux.

@meffect

This comment has been minimized.

Show comment
Hide comment
@meffect

meffect Feb 25, 2017

@GoodGuy98 Same issue here

meffect commented Feb 25, 2017

@GoodGuy98 Same issue here

@anasayubi

This comment has been minimized.

Show comment
Hide comment
@anasayubi

anasayubi Mar 14, 2017

When run for 'Ubuntu various versions', I get the following error:
E: Version '2.320160913bzr3547+20-1ubuntu1ppa0ubuntu16.04.1' for 'tmux-next' was not found

anasayubi commented Mar 14, 2017

When run for 'Ubuntu various versions', I get the following error:
E: Version '2.320160913bzr3547+20-1ubuntu1ppa0ubuntu16.04.1' for 'tmux-next' was not found

@andremendesc

This comment has been minimized.

Show comment
Hide comment
@andremendesc

andremendesc Apr 19, 2017

currently, you must replace
2.320160913bzr3547+20-1ubuntu1ppa0ubuntu16.04.1
with:
2.320170419bzr3777+20-1ubuntu1ppa0ubuntu16.04.1

andremendesc commented Apr 19, 2017

currently, you must replace
2.320160913bzr3547+20-1ubuntu1ppa0ubuntu16.04.1
with:
2.320170419bzr3777+20-1ubuntu1ppa0ubuntu16.04.1

@NYCJacob

This comment has been minimized.

Show comment
Hide comment
@NYCJacob

NYCJacob Aug 19, 2017

following the install from source worked on Ubuntu 16.04

NYCJacob commented Aug 19, 2017

following the install from source worked on Ubuntu 16.04

@TristonC

This comment has been minimized.

Show comment
Hide comment
@TristonC

TristonC commented Nov 29, 2017

Thanks!

@shakyakrishna

This comment has been minimized.

Show comment
Hide comment
@shakyakrishna

shakyakrishna Feb 21, 2018

having trouble to configure $PWD to start on the new session while splitting on version 2.5 anyone?

shakyakrishna commented Feb 21, 2018

having trouble to configure $PWD to start on the new session while splitting on version 2.5 anyone?

@BirkhoffLee

This comment has been minimized.

Show comment
Hide comment
@BirkhoffLee

BirkhoffLee commented Aug 8, 2018

Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment