-
Notifications
You must be signed in to change notification settings - Fork 0
Installation Guide
Abraham Esandayinze Tanta edited this page Sep 26, 2025
·
1 revision
PortKill is designed to be easy to install with multiple options to suit different needs and environments.
The easiest way to install PortKill on macOS:
# Add the PortKill tap
brew tap mr-tanta/portkill
# Install PortKill
brew install portkill
# Verify installation
portkill --version# Update to latest version
brew upgrade portkill
# Uninstall if needed
brew uninstall portkill
# Remove tap (optional)
brew untap mr-tanta/portkillOne-line installation for both macOS and Linux:
# Install latest version
curl -sSL https://raw.githubusercontent.com/mr-tanta/portkill/main/install.sh | bash
# Install specific version
curl -sSL https://raw.githubusercontent.com/mr-tanta/portkill/main/install.sh | bash -s v2.3.2
# Install to custom location
curl -sSL https://raw.githubusercontent.com/mr-tanta/portkill/main/install.sh | bash -s - --prefix=/opt/portkill- Downloads the latest PortKill release
- Verifies checksums for security
- Installs to
/usr/local/binby default - Makes the script executable
- Adds to system PATH
# Download latest release
wget https://github.com/mr-tanta/portkill/releases/latest/download/portkill
# Make executable
chmod +x portkill
# Move to system path
sudo mv portkill /usr/local/bin/
# Test installation
portkill --versionFor developers and contributors:
# Clone the repository
git clone https://github.com/mr-tanta/portkill.git
cd portkill
# Make executable
chmod +x bin/portkill
# Test locally
./bin/portkill --version
# Optional: Install system-wide
sudo cp bin/portkill /usr/local/bin/
# Optional: Create symlink for development
sudo ln -sf "$(pwd)/bin/portkill" /usr/local/bin/portkill# Install from AUR
yay -S portkill
# or
paru -S portkill# Download and install .deb package
wget https://github.com/mr-tanta/portkill/releases/latest/download/portkill_2.3.2-1_all.deb
sudo dpkg -i portkill_2.3.2-1_all.deb
# Fix dependencies if needed
sudo apt-get install -f# Download and install .rpm package
wget https://github.com/mr-tanta/portkill/releases/latest/download/portkill-2.3.2-1.noarch.rpm
sudo rpm -ivh portkill-2.3.2-1.noarch.rpm
# Or use dnf/yum
sudo dnf install portkill-2.3.2-1.noarch.rpm- Shell: Bash 4.0 or later
- OS: macOS 10.12+, Linux kernel 3.0+, or any Unix-like system
-
Core utilities:
lsof,ps,kill,netstat
- Docker: For container management features
- bc: For advanced benchmarking calculations
- curl/wget: For downloading updates
# Check Bash version
bash --version
# Check required utilities
which lsof ps kill netstat
# Check optional utilities
which docker bc curlAfter installation, verify PortKill is working correctly:
# Check version
portkill --version
# Test basic functionality
portkill list 3000
# Test help system
portkill --help
# Test with JSON output
portkill --json list 3000
# Test interactive menu
portkill menubrew upgrade portkill# Re-run install script
curl -sSL https://raw.githubusercontent.com/mr-tanta/portkill/main/install.sh | bash
# Or download new release manually
wget https://github.com/mr-tanta/portkill/releases/latest/download/portkill -O /usr/local/bin/portkill
chmod +x /usr/local/bin/portkill# Current version
portkill --version
# Check latest release on GitHub
curl -s https://api.github.com/repos/mr-tanta/portkill/releases/latest | grep '"tag_name"'brew uninstall portkill
brew untap mr-tanta/portkill# Remove binary
sudo rm /usr/local/bin/portkill
# Remove any config (if exists)
rm -rf ~/.portkill
# Remove from PATH if manually added
# Edit ~/.bashrc, ~/.zshrc, etc. to remove any PATH additions# Debian/Ubuntu
sudo apt remove portkill
# Red Hat/CentOS/Fedora
sudo dnf remove portkill
# or
sudo rpm -e portkill
# Arch Linux
pacman -R portkill
# or
yay -R portkill# Solution: Use sudo for system-wide installation
sudo mv portkill /usr/local/bin/
sudo chmod +x /usr/local/bin/portkill# Check if installed location is in PATH
echo $PATH | grep -o '/usr/local/bin'
# Add to PATH if missing (add to ~/.bashrc or ~/.zshrc)
export PATH="/usr/local/bin:$PATH"# macOS: Install Xcode Command Line Tools
xcode-select --install
# Linux: Install required packages
# Ubuntu/Debian
sudo apt-get install lsof psmisc net-tools
# CentOS/RHEL
sudo yum install lsof psmisc net-tools
# Arch Linux
sudo pacman -S lsof psmisc net-tools# Clear bash command cache
hash -r
# Or restart terminalIf you encounter issues:
- Check our Troubleshooting Guide
- Search existing issues
- Create a new issue with:
- Your OS and version
- Bash version (
bash --version) - Installation method used
- Error messages
Next: Quick Start Guide