4

Am looking for a way to install packages in home folder. This thread suggests using

apt-get source 
./configure --prefix=$HOME

However, it doesn't provide a way to manage dependencies like apt-get install does. Tools like Homebrew have a limited number of packages. Is there a way to use apt-get, but to install in home folder.

alpha_cod
  • 143

1 Answers1

3

UPDATE: Linuxbrew has been merged into Homebrew

Linuxbrew/brew has been merged into Homebrew/brew! Existing installations of Linuxbrew will be automatically migrated to Homebrew. Linuxbrew/brew will no longer be updated. See the Homebrew documentation of Linuxbrew and the Homebrew 2.0.0 blog post.

Homebrew officially supports Linux and Windows 10 with Windows Subsystem for Linux (WSL). “Homebrew on Linux” is called “Linuxbrew”. You can install it in your home directory, so it does not require sudo, and use it to install software that your host distribution’s package manager does not provide. Linuxbrew uses its own repository for formulae: Linuxbrew/homebrew-core.

NOTE: Original answer is below for historical purposes.


I'd take a look at Linuxbrew.

A fork of Homebrew for Linux

Features

  • Can install software to a home directory and so does not require sudo
  • Install software not packaged by the native distribution
  • Install up-to-date versions of software when the native distribution is old
  • Use the same package manager to manage both your Mac and Linux machines

The formulas list looks pretty extensive to me.

As of 2014-06-03 there are ~2832 Formulas on that page.

References

slm
  • 369,824
  • Thanks! I was little concerned over the available libraries in Linuxbrew, but the list seems comprehensive. – alpha_cod Jun 04 '14 at 04:36
  • @alpha_cod - yes I'd never heard of this package until your Q and was pleasantly surprised with how extensive a list they had compiled. – slm Jun 04 '14 at 11:15
  • the link you posted doesn't work anymore, it 404s – Rainb Jun 26 '20 at 08:52
  • @Rainb - ty for the heads up, updated A'er to reflect changes. – slm Jun 27 '20 at 16:23