tmux packages for Red Hat Enterprise Linux / CentOS

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:

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
$ 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.