Skip to content

Instantly share code, notes, and snippets.

@maxkagamine
Last active January 18, 2024 14:42
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxkagamine/7e3741b883a272230eb451bdd84a8e23 to your computer and use it in GitHub Desktop.
Save maxkagamine/7e3741b883a272230eb451bdd84a8e23 to your computer and use it in GitHub Desktop.

How to install GNU Stow on Unraid

Unraid OS ≥6.11.0

  1. Install the User Scripts (Andrew Zawadzki) plugin from CA
  2. cat /etc/slackware-version and check which Slackware version the current Unraid OS is based on
    • 6.11.0 ⇒ Slackware 15
  3. Head to packages.slackware.com, filter Release to Slackware64 + that version, and search for the following packages:
    • gc
    • guile
    • make

    Tip: You can find additional packages on the community repositories pkgs.org and SlackOnly.
    If you plan on compiling other software, you will probably need binutils, gcc, gcc-g++, glibc, libffi, and kernel-headers. Make sure you're filtering to the correct Slackware64 version each time, not "Slackware current"!

  4. mkdir -p /boot/extra && cd /boot/extra && wget <paste each package mirror link here>
  5. Packages placed in /boot/extra are auto-installed on boot, but you can installpkg *.txz while still in /boot/extra to install them now
  6. Run in a user script:
    wget http://ftp.gnu.org/gnu/stow/stow-latest.tar.gz -O - | tar -xzC /tmp
    ( cd /tmp/stow* && ./configure && make install )
    rm -rf /tmp/stow*

Unraid OS <6.11.0

  1. Install DevPack GUI (dmacias72) and User Scripts (Andrew Zawadzki) from CA
  2. In Settings > Dev Pack, install:
    • gc
    • guile
    • make
  3. Run in a user script:
    wget http://ftp.gnu.org/gnu/stow/stow-latest.tar.gz -O - | tar -xzC /tmp
    ( cd /tmp/stow* && ./configure && make install )
    rm -rf /tmp/stow*

See also

https://github.com/aspiers/stow/blob/master/INSTALL.md
https://www.gnu.org/software/stow/
https://www.gnu.org/software/stow/manual/html_node/index.html

https://github.com/maxkagamine/dotfiles — Example cross-machine dotfiles using Stow for "mod management"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment