linuxbrew

Installation

$ sudo transactional-update pkg in git-core
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
$ eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
$ brew install hello
$ hello

If hello runs properly, you've successfully installed linuxbrew. It can safely be removed with brew remove hello

Enabling brew by default

*** Caution: DO NOT add the shellenv eval statement to your .bashrc/.zshrc/etc This can cause issues with flatpak, and potentially cause issues with the system using the brew binaries rather than the system ones, in some cases.***

If you wish to have brew be enabled in konsole (or other terminal emulators) by default, please run the following:

$ echo 'if [ $(basename $(printf "%s" "$(ps -p $(ps -p $$ -o ppid=) -o cmd=)" | cut --delimiter " " --fields 1)) = konsole ] ; then '$'\n''eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"'$'\n''fi'$'\n' >> ~/.bashrc

This will run the eval of the shellenv and add brew to your $PATH only when using konsole. Adjust as necessary for your terminal emulator of choice.

In testing, this has not been shown to cause update failures, and does not cause conflicts with the system packages.