direnv rpm distribution for centos / rhel (epel)

Created on 28 May 2018  路  5Comments  路  Source: direnv/direnv

Issue description

Apparently the only RPM based distribution version of direnv is Fedora which is known to be highly likely incompatible with current releases of CentOS and RHEL.

Most of the time packages like direnv are published in EPEL repository which covers both CentOS and RHEL.

Direnv would clearly become more popular if it would be easily installed on centos/rhel system via yum, especially because building it from source requires extra packages which are likely not installed on the systems.

Reference

Most helpful comment

Installing on CentOS 7 from https://apps.fedoraproject.org/packages/direnv was actually easier then I had expected.

$ cat /etc/redhat-release 
CentOS Linux release 7.6.1810 (Core) 
$ sudo yum install https://kojipkgs.fedoraproject.org//vol/fedora_koji_archive02/packages/direnv/2.12.2/1.fc28/x86_64/direnv-2.12.2-1.fc28.x86_64.rpm

All 5 comments

https://apps.fedoraproject.org/packages/direnv is not a good source? I am not super familiar with the RedHat ecosystem.

@zimbatm As you can observe at the bottom of the page there are no builds for EPEL, which means that people would be able to easily install direnv on EPEL enabled systems (Centos and RHEL).

There is no problem with Fedora (28), I can confirm that yum/dng install direnv works as expected. We only need to enable the same for RHEL and CentOS, which can be done by including direnv in EPEL repository.

I will try to help on this as I do not fully know the best way to do this. I will let know know as soon I find out.

Sounds good. The package releases are all done by the community, you are welcome to also package direnv for EPEL. If you need to host a repo for the EPEL release let me know and I will add it to the direnv github org.

@domcleal Any ideas regarding steps to bring direnv to EPEL?

Installing on CentOS 7 from https://apps.fedoraproject.org/packages/direnv was actually easier then I had expected.

$ cat /etc/redhat-release 
CentOS Linux release 7.6.1810 (Core) 
$ sudo yum install https://kojipkgs.fedoraproject.org//vol/fedora_koji_archive02/packages/direnv/2.12.2/1.fc28/x86_64/direnv-2.12.2-1.fc28.x86_64.rpm
Was this page helpful?
0 / 5 - 0 ratings