How can I install GNU Parallel alongside Moreutils?

Homebrew has a formula for moreutils and GNU parallel.

GNU Parallel conflicts with Moreutils since it also has a binary called parallel, which is just less useful. However I'd still like to install both formulae at the same time. How can I do that?

Ideally, I'd install GNU Parallel as gparallel – akin to the naming of the Coreutils binaries – to avoid these conflicts, but I don't see a way to specify that in the formula itself, since prefix is just the Homebrew prefix.

def install                                                                                                                               
    system "./configure", "--prefix=#{prefix}"                                                                                              
    system "make install"                                                                                                                   
end

Any way to get the best of both worlds?


Solution 1:

You have to install a third-party version of the formula:

brew install slhck/moreutils/moreutils --without-parallel

Then:

brew install parallel

Solution 2:

In homebrew 2.0 options have been removed

The way to get GNU parallels working now is

brew unlink moreutils
brew install parallel
brew link --overwrite moreutils
brew unlink parallel
brew link --overwrite parallel