Installation Guide¶
This guide covers all methods to install SecScan on your system.
Prerequisites¶
- Go 1.19 or higher (for building from source)
- Git (for cloning the repository)
- Linux, macOS, or WSL2 on Windows
Installation Methods¶
Method 1: Quick Install (Recommended)¶
Use the installation script for an interactive setup:
The script will:
- Build the binary
- Ask you to choose between system-wide or local installation
- Set up everything automatically
- Verify the installation
Method 2: Make Install (System-wide)¶
Install globally to /usr/local/bin (requires sudo):
Verify installation:
Method 3: Make Install (Local - No sudo)¶
Install to ~/.local/bin without sudo:
If ~/.local/bin is not in your PATH, add this to your ~/.bashrc or ~/.zshrc:
Then reload your shell:
Method 4: Go Install¶
If the repository is public and you have Go installed:
This installs to $GOPATH/bin (usually ~/go/bin).
Ensure $GOPATH/bin is in your PATH:
Method 5: Manual Build¶
For complete control over the build process:
# Clone the repository
git clone https://github.com/Zayan-Mohamed/secscan.git
cd secscan
# Build the binary
make build
# Binary will be in build/secscan
./build/secscan -version
System-wide Manual Installation¶
Local Manual Installation¶
Verify Installation¶
After installation, verify that SecScan is properly installed:
# Check version
secscan -version
# Check location
which secscan
# Run a test scan
secscan -root /tmp -history=false
Uninstalling¶
System-wide Installation¶
Local Installation¶
Go Install¶
Troubleshooting¶
Permission Denied¶
If you get "permission denied" when trying to install system-wide:
- Use
make install-localinstead - Or use
sudo make install
Command Not Found¶
If secscan is not found after installation:
- Check if the binary exists:
- Ensure the directory is in your PATH:
- Add to PATH if needed:
Build Fails¶
If the build fails:
- Check Go version:
-
Ensure Go 1.19 or higher is installed
-
Try cleaning and rebuilding:
Next Steps¶
- 🚀 Quick Start Guide
- 🎯 Run Your First Scan
- 🔧 Configuration Options