Skip to content

Instantly share code, notes, and snippets.

@mrwormhole
Created October 5, 2025 17:51
Show Gist options
  • Select an option

  • Save mrwormhole/c6ebc3c1044ed433acc4232905458eef to your computer and use it in GitHub Desktop.

Select an option

Save mrwormhole/c6ebc3c1044ed433acc4232905458eef to your computer and use it in GitHub Desktop.
outputs all pacman packages
#!/bin/bash
# Output file with timestamp
OUTPUT_FILE="$HOME/Documents/pacman-packages-$(date +%Y%m%d-%H%M%S).txt"
# List ALL installed packages (including dependencies)
pacman -Q > "$OUTPUT_FILE"
echo "Package list saved to: $OUTPUT_FILE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment