Install Latest tmux with Homebrew

Homebrew for macOS Homebrew for macOS

I’ve been meaning to try Homebrew for Linux since brew 2.0.0 release a few months ago, and finally there is a good opportunity! The tmux available through Ubuntu 19.04 repos is 2.8 while I want to try the latest features introduced with the tmux 2.9 branch.

Install Homebrew for Linux

One of the advantages Homebrew promises on its website is that you don’t need sudo privilege (any superuser ability) for installing software – it all can happen right in your home directory. I do have sudo access and therefore typed my password when prompted by the Homebrew install script:

greys@xps~ $ sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)" 

That was easy! After just a few minutes I was ready to update my PATH variable to include Homebrew location in my homedir:

greys@xps:~ $ echo 'eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)' >>~/.profile
greys@xps:~ $ eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)

Install tmux with Homebrew

Now simply type this:

greys@xps:~ $ brew install tmux

and a few minutes (and a number of software dependencies) later you’ll see the confirmation that tmux 2.9a was installed.

Check tmux Version

Just to be sure:

greys@xps:~ $ tmux -V
 tmux 2.9a
 greys@xps:~ $ which tmux
 /home/linuxbrew/.linuxbrew/bin/tmux

Not bad at all! I wonder if brew for Linux is the easiest way to try latest versions of software? One thing for sure – it’s a great way to make sure my dotfile configs are working transparently between Linux and Macbook, because I’ll be using Homebrew to install latest versions of tmux on both.

See Also




Keep Learning with Me

Follow me on Facebook and Twitter or jump into Telegram chat!:
I'm using Brave browser
Give it a try, it's awesome: Brave Browser
IT Consultancy
I'm a principal consultant with Tech Stack Solutions. I help with cloud architectrure, AWS deployments and automated management of Unix/Linux infrastructure. Get in touch!
Recent Articles
28 May 2020

Raspberry Pi 4 8GB

19 May 2020

Grafana 7.0 Released

13 May 2020

OpenIndiana 2020.04 Released

Recent Tweets