July 14, 2007
Not in your distro package repository?!? Stow it!
All of us feel that sometimes the package we want is not on our distribution repository, be it Gentoo, Ubuntu or Debian. The general solution which I found only a couple of months ago and has been working perfectly is GNU Stow.
Stow allows you to install packages in /usr/local and keep track of what was installed or not. The general procedure is:
- Get the software tarball;
- Unpack it;
- Configure it using a prefixed directory (usually inside /usr/local/stow);
- ./configure –prefix=/usr/local/stow/<packagename>
- Stow it using the package name. Go to /usr/local/stow and write ‘stow <packagename>’. Stow will create the correct symlinks from usr local directory to the package directory.
- cd /usr/local/stow
- stow <packagename>
Use the software!!! Whenever you want to remove it just go to the stow directory, e.g. /usr/local/stow and
stow -D <packagename>