Uninstallation¶
Method 1: Package Removal (If installed via package)¶
RPM packages:
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: