Skip to content

Installation

Adrian Thomas edited this page Oct 2, 2025 · 5 revisions

Installation Guide

This guide covers installing symlinkit 2.0 on Linux, macOS, and WSL.


Quick Install

Automated Install Script (Recommended)

curl -fsSL https://raw.githubusercontent.com/ctrl-alt-adrian/symlinkit/main/scripts/install.sh | bash

This script:

  • Downloads the latest version
  • Installs to /usr/local/bin/
  • Sets execute permissions
  • Verifies the installation

Manual Installation

Linux / WSL

# Download symlinkit
curl -o symlinkit https://raw.githubusercontent.com/ctrl-alt-adrian/symlinkit/main/symlinkit

# Make executable
chmod +x symlinkit

# Move to system PATH
sudo mv symlinkit /usr/local/bin/

macOS

macOS requires GNU coreutils for grealpath:

# Install coreutils (provides grealpath)
brew install coreutils

# Download symlinkit
curl -o symlinkit https://raw.githubusercontent.com/ctrl-alt-adrian/symlinkit/main/symlinkit

# Make executable
chmod +x symlinkit

# Move to system PATH
sudo mv symlinkit /usr/local/bin/

Verify Installation

symlinkit --version

Expected output:

symlinkit 2.0.0 (Linux)
symlinkit 2.0.0 (Darwin)
symlinkit 2.0.0 (Linux+WSL)

Requirements

Required

All Platforms:

  • Bash 3.2 or higher (already included on Linux/macOS/WSL)
  • realpath utility (pre-installed on most Linux distributions)

macOS Only:

  • GNU coreutils via Homebrew (provides grealpath)
    brew install coreutils

No Optional Dependencies

symlinkit 2.0 has zero optional dependencies. Everything works out-of-the-box after installing the required tools above.


Platform-Specific Notes

Linux

Most Linux distributions include all required tools by default. Just download and run.

# Verify realpath is available
which realpath
# Output: /usr/bin/realpath

macOS

macOS uses BSD utilities by default, so you need GNU coreutils:

# Install coreutils
brew install coreutils

# Verify grealpath is available
which grealpath
# Output: /opt/homebrew/bin/grealpath (Apple Silicon)
# Output: /usr/local/bin/grealpath (Intel)

WSL (Windows Subsystem for Linux)

WSL behaves like Linux and includes all required tools:

# WSL detection is automatic
symlinkit --version
# Output: symlinkit 2.0.0 (Linux+WSL)

Alternative Installation Locations

User-Local Installation (No sudo)

# Install to ~/bin
mkdir -p ~/bin
curl -o ~/bin/symlinkit https://raw.githubusercontent.com/ctrl-alt-adrian/symlinkit/main/symlinkit
chmod +x ~/bin/symlinkit

# Add to PATH (if not already)
echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

System-Wide Installation

# Install to /usr/local/bin (recommended)
sudo curl -o /usr/local/bin/symlinkit https://raw.githubusercontent.com/ctrl-alt-adrian/symlinkit/main/symlinkit
sudo chmod +x /usr/local/bin/symlinkit

Updating symlinkit

To update to the latest version:

# Using install script (easiest)
curl -fsSL https://raw.githubusercontent.com/ctrl-alt-adrian/symlinkit/main/scripts/install.sh | bash

# Or manually
sudo curl -o /usr/local/bin/symlinkit https://raw.githubusercontent.com/ctrl-alt-adrian/symlinkit/main/scripts/symlinkit
sudo chmod +x /usr/local/bin/symlinkit

Uninstallation

Quick Uninstall (Recommended)

curl -fsSL https://raw.githubusercontent.com/ctrl-alt-adrian/symlinkit/main/scripts/uninstall.sh | bash

This script:

  • Removes the symlinkit binary from ~/bin
  • Removes the man page
  • Removes bash and zsh completion scripts
  • Warns about remaining shell config entries (PATH/MANPATH exports)

Note: Shell configuration files (.bashrc, .zshrc) won't be auto-edited. Remove PATH/MANPATH entries manually if desired.

Manual Uninstall

# Remove binary
rm -f ~/bin/symlinkit
# or if installed system-wide:
sudo rm /usr/local/bin/symlinkit

# Remove man page (Linux)
rm -f ~/.local/share/man/man1/symlinkit.1

# Remove man page (macOS)
rm -f /usr/local/share/man/man1/symlinkit.1
# or if using Homebrew prefix:
rm -f "$(brew --prefix)/share/man/man1/symlinkit.1"

# Remove completions (optional)
rm -f ~/.local/share/bash-completion/completions/symlinkit
rm -f ~/.local/share/zsh/site-functions/_symlinkit

# macOS: Remove coreutils if not needed by other tools
brew uninstall coreutils findutils

Troubleshooting

"realpath: command not found" (Linux)

Install coreutils:

# Debian/Ubuntu
sudo apt install coreutils

# RHEL/CentOS/Fedora
sudo yum install coreutils

# Arch
sudo pacman -S coreutils

"grealpath: command not found" (macOS)

Install GNU coreutils:

brew install coreutils

Permission Denied

Ensure symlinkit is executable:

chmod +x /usr/local/bin/symlinkit

Next Steps

Symlinkit Wiki Navigation

Getting Started

Features & Functionality

Development & Contributing

Clone this wiki locally