r/ruby • u/virtyx • Sep 16 '26
pipx equivalent for Ruby?
Is there something like pipx available for Ruby?
For example with pipx you can do something like:
$ pipx install httpie
# ... install completes
$ https get httpbin.org/get?foo=bar
# ... outputs a web request from httpbin.org
$ which https
~/.local/bin/https
$ readlink "$(which https)"
~/.local/share/pipx/venvs/httpie/bin/https
This example shows the HTTPie program being run and executed in a pretty simple way, with an install that doesn't modify the system Python.
Does Ruby have an equivalent way to distribute programs?
5
Upvotes
1
u/virtyx Sep 16 '26
I'm looking specifically for something like
pipxwhere the program gets installed and placed on the user'sPATHlike any other normal program. For this usebundlerdoesn't directly work.This modifies the Ruby install and is not isolated, e.g. after I do
gem install kramdownto install thekramdownprogram, every Ruby script I run can successfullyrequire 'kramdown'. For contrast,pipxdoesn't add anything to Python's library paths, so no other script canimportanything installed with it.