I have offered to maintain Red Hat Enterprise Linux and CentOS packages for the tmux project, since the tool has proven so useful for me.
The packages can be obtained directly from here, or by adding the galaxy4 repository using:
$ sudo yum install http://galaxy4.net/repo/galaxy4-release-<release>-current.noarch.rpm
… where you should replace <release> with the single-digit release of RHEL/CentOS you are running.
Alternatively you can manually add Yum/DNF repositories using the following repo files:
- RHEL/CentOS 8: galaxy4-rhel8.repo
- RHEL/CentOS 7: galaxy4-rhel7.repo
- RHEL/CentOS 6: galaxy4-rhel6.repo
Currently I’m only building the latest stable packages for the x86_64 architecture, but please let me know if you require builds for other architectures, and I’ll prepare those too if I have access to an appropriate build environment.
Below is an example of setting up the repository and installing the package under CentOS 8. Simply substitute the correct release number for your OS and the procedure should be otherwise identical.. This way you can benefit from future updates automatically via yum update.
$ sudo yum install http://galaxy4.net/repo/galaxy4-release-8-current.noarch.rpm Last metadata expiration check: 2:27:53 ago on Wed 18 Nov 2020 09:42:57 AEDT. galaxy4-release-8-current.noarch.rpm 36 kB/s | 15 kB 00:00 Dependencies resolved. ================================================================================================================ Package Architecture Version Repository Size ================================================================================================================ Installing: galaxy4-release noarch 8-1 @commandline 15 k Transaction Summary ================================================================================================================ Install 1 Package Total size: 15 k Installed size: 17 k Is this ok [y/N]: y Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : galaxy4-release-8-1.noarch 1/1 Verifying : galaxy4-release-8-1.noarch 1/1 Installed products updated. Installed: galaxy4-release-8-1.noarch Complete! $ sudo yum repolist galaxy4-rhel8 repo id repo name status galaxy4-rhel8 Galaxy4 RHEL/CentOS 8 RPM repository enabled $ sudo yum install tmux Last metadata expiration check: 0:00:04 ago on Mon 27 Jul 2020 18:35:44 AEST. Dependencies resolved. ================================================================================================================ Package Architecture Version Repository Size ================================================================================================================ Installing: tmux x86_64 3.1b-2.el8 galaxy4-rhel8 367 k Transaction Summary ================================================================================================================ Install 1 Package Total download size: 367 k Installed size: 820 k Is this ok [y/N]: y Downloading Packages: tmux-3.1b-2.el8.x86_64.rpm 240 kB/s | 367 kB 00:01 ---------------------------------------------------------------------------------------------------------------- Total 240 kB/s | 367 kB 00:01 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : tmux-3.1b-2.el8.x86_64 1/1 Running scriptlet: tmux-3.1b-2.el8.x86_64 1/1 Verifying : tmux-3.1b-2.el8.x86_64 1/1 Installed products updated. Installed: tmux-3.1b-2.el8.x86_64 Complete! $ tmux -V tmux 3.1b $
Alternatively, if you prefer to install/update packages manually, you can do so as follows:
$ sudo rpm -ivh http://galaxy4.net/repo/RHEL/8/x86_64/tmux-3.1b-2.el8.x86_64.rpm Retrieving http://galaxy4.net/repo/RHEL/8/x86_64/tmux-3.1b-2.el8.x86_64.rpm Verifying... ################################# [100%] Preparing... ################################# [100%] Updating / installing... 1:tmux-3.1b-2.el8 ################################# [100%] $ tmux -V tmux 3.1b $
Hi, is there a way to install tmux on RHEL 9? Thanks
Hi Allen! I’d have expected Red Hat to finally provide a recent release of tmux with RHEL 9, but I haven’t even installed RHEL or CentOS 9 yet to have a look. I shall do in the coming days and add the latest tmux package to my repository if they are still lagging behind the current releases.
ETA: It appears CentOS 9 already comes with tmux 3.2. Is that not also the case for RHEL9? Would 3.3 still be useful to you for some reason?
Hello,
And for install tmux 3.3a on CentOS Stream 9 ? Please
I didn’t even realise there was a 3.3a release. I’ve updated the packages for all RHEL6-9 with 3.3a and created a new repository for RHEL9.
Unfortunately I’m having trouble signing the packages for RHEL9 with SHA256/512 (default is SHA1 which is no longer accepted on RHEL9), so you may have to use `–nogpgcheck` when installing the package until I resolve that.