Skip to content

Uninstallation

Method 1: Package Removal (If installed via package)

RPM packages:

# Remove package
sudo dnf remove pglord

# Or with yum
sudo yum remove pglord

Method 2: Using Makefile

If you still have the source directory:

cd pg-lord-of-the-rings

# If installed system-wide
sudo make uninstall

# If installed locally
make uninstall PREFIX=$HOME/.local

This properly removes both the script and manual page, and updates the manual database.

Method 3: Manual Removal

If you no longer have the source directory:

System-wide Installation

# Remove script and manual page
sudo rm /usr/local/bin/pg
sudo rm /usr/local/share/man/man1/pg.1

# Update manual database
sudo mandb -q

Local Installation

# Remove script and manual page
rm $HOME/.local/bin/pg
rm $HOME/.local/share/man/man1/pg.1

# Update manual database (if you have mandb permissions)
mandb -q 2>/dev/null || true

Verification

Confirm removal:

# Check command is no longer available
which pg
# Should return nothing or "pg not found"

# Check manual page is removed
man pg
# Should return "No manual entry for pg"