Skip to content

Install for all users? #1420

Answered by pavelzw
sinoroc asked this question in Q&A
May 20, 2024 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Since this is a statically linked binary, you can just put it in /usr/local/bin/pixi.

curl -Ls \
    "https://github.com/prefix-dev/pixi/releases/download/v0.22.0/pixi-$(uname -m)-unknown-linux-musl" \
    -o /usr/local/bin/pixi
chmod +x /usr/local/bin/pixi

If you also want to add ~/.pixi/bin to $PATH (for pixi global install), you could add something like this to /etc/bash.bashrc

export PATH="$HOME/.pixi/bin:$PATH"

This will adjust the $PATH in bash. You can do similar things in zsh and fish by modifying /etc/zshenv and /etc/fish/config.fish.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@sinoroc
Comment options

@pavelzw
Comment options

@sinoroc
Comment options

@ruben-arts
Comment options

Answer selected by ruben-arts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants