Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: CentOS/RHEL symlink redis-cli binary in $PATH #4 #8

Open
enbrnz opened this issue Aug 4, 2020 · 7 comments
Open

FR: CentOS/RHEL symlink redis-cli binary in $PATH #4 #8

enbrnz opened this issue Aug 4, 2020 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@enbrnz
Copy link
Contributor

enbrnz commented Aug 4, 2020

On CentOS/RHEL we install redis-tools from Software Collections. These packages don't make redis-cli universally executable by symlinking the installed binary from a $PATH directory

@enbrnz enbrnz added the enhancement New feature or request label Aug 4, 2020
@enbrnz enbrnz self-assigned this Aug 4, 2020
@xoxys
Copy link
Contributor

xoxys commented Aug 4, 2020

Thats expected behavior because scl tools are designed to be installed isolated beside the OS packages.

@xoxys
Copy link
Contributor

xoxys commented Aug 4, 2020

@xoxys
Copy link
Contributor

xoxys commented Aug 4, 2020

Mixing scl with OS packages/PATH could cause issues on user systems

@enbrnz
Copy link
Contributor Author

enbrnz commented Aug 5, 2020

Nice, thanks for the tip. So I guess we can close this issue and just tell anybody who asks to install the {redis,php,mariadb}-syspaths package in the future. Do you agree?

@enbrnz
Copy link
Contributor Author

enbrnz commented Aug 5, 2020

yum search *-syspaths
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.ratiokontakt.de
 * centos-sclo-rh: mirror.plustech.de
 * centos-sclo-sclo: mirror.ratiokontakt.de
 * epel: mirror.23media.com
 * extras: mirror.ratiokontakt.de
 * updates: centosmirror.netcup.net
============================================================================================================================= Matched: *-syspaths =============================================================================================================================
rh-mariadb102-syspaths.x86_64 : System-wide wrappers for the rh-mariadb102 Software Collection
rh-mariadb103-syspaths.x86_64 : System-wide wrappers for the rh-mariadb103 Software Collection
rh-mongodb34-syspaths.x86_64 : System-wide wrappers for the rh-mongodb34 Software Collection
rh-mongodb36-syspaths.x86_64 : System-wide wrappers for the rh-mongodb36 Software Collection
rh-mysql80-syspaths.x86_64 : System-wide wrappers for the rh-mysql80 Software Collection
rh-postgresql10-syspaths.x86_64 : System-wide wrappers for the rh-postgresql10 Software Collection
rh-postgresql12-syspaths.x86_64 : System-wide wrappers for the rh-postgresql12 Software Collection
rh-postgresql96-syspaths.x86_64 : System-wide wrappers for the rh-postgresql96 Software Collection

There are no syspath packages for redis or php

@enbrnz
Copy link
Contributor Author

enbrnz commented Oct 29, 2020

TODO: Check what syspath does, other options are symlinks, or simple wrapper scripts:

#!/usr/bin/env sh 

set -eo pipefail  
exec /path/to/rh/binary "$@"

@xoxys
Copy link
Contributor

xoxys commented Sep 8, 2021

I've checked the MongoDB syspath package. No real magic, it also just creates wrapper scripts for the binaries and symlinks for everything else e.g. manpages or systemd unit files. I'll prepare a PR to add similar behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants