Public Access
install scripts
This commit is contained in:
Executable
+25
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
STOW_VERSION="${STOW_VERSION:-2.4.1}"
|
||||
|
||||
# Create temp build directory
|
||||
BUILD_DIR=$(mktemp -d)
|
||||
trap 'rm -rf "$BUILD_DIR"' EXIT
|
||||
|
||||
# 1. Download and extract
|
||||
cd "$BUILD_DIR"
|
||||
curl -O "http://ftp.gnu.org/gnu/stow/stow-${STOW_VERSION}.tar.gz"
|
||||
tar xf "stow-${STOW_VERSION}.tar.gz"
|
||||
cd "stow-${STOW_VERSION}"
|
||||
|
||||
# 2. Configure installation to user directory
|
||||
./configure --prefix="$HOME/.local"
|
||||
|
||||
# 3. Compile and install (no sudo needed)
|
||||
make
|
||||
make install
|
||||
|
||||
# 4. Add to PATH (add this line to ~/.bashrc or ~/.zshrc)
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
|
||||
# 5. Verify installation
|
||||
stow --version
|
||||
Reference in New Issue
Block a user