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.
Thank you for providing this repo! Tmux is a really important tool to a lot of people and the version that RHEL 9 has it too old. Just FYI it looks like the latest version of Tmux is now 3.5a for when you get a chance to update from v3.4. Thanks again!
Hi Rob, I’ve updated all 4 repos to 3.5a now. The caveat I mentioned in my previous post for RHEL/CentOS 9 still stands… it seems the only way for me to fix that is to migrate my repository host to CentOS 9 which I haven’t found the time to do.
Hi Anni,
did you have a look to this article from RedHat about how to move to SHA-256?
https://www.redhat.com/en/blog/rhel-security-sha-1-package-signatures-distrusted-rhel-9
I also opened an issue in GitHub regarding this:
https://github.com/tmux/tmux/issues/4359
Hi pasq, thanks for your suggestion. I did find that, and did try the %__gpg_sign_cmd macro that he suggested, but it didn’t work for me. I even tried compiling a local copy of RPM to get the latest version, but no luck there either. I think the simple solution is to migrate my CentOS 7 repository host to CentOS 9 / Stream, but I haven’t found the time to build a new server – and I don’t want to run two in parallel for an extended period while I migrated all the other things (also mail & web server) due to hosting costs. One day I’ll get around to it!
Hi Anni,
since today we’re experiencing an issue using the repository here mentioned:
“`
dnf install -y http://galaxy4.net/repo/galaxy4-release-9-current.noarch.rpm
dnf install -y –nogpgcheck tmux
[MIRROR] tmux-3.6a-1.el9.x86_64.rpm: Interrupted by header callback: Inconsistent server data, reported file Content-Length: 557315, repository metadata states file length: 556707 (please report to repository maintainer)
“`
Do you know what could be the issue and how to fix it?
Yes, my mistake, sorry! Should work okay now (you may need to ‘yum clean all’ prior to retry). I signed the packages after rebuilding the repos instead of the other way around.
It works now. Thanks Anni!