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

Follow me on Facebook, Twitter or Telegram:
Recommended
I learn with Educative: Educative
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 Tweets