Skip to content

Instantly share code, notes, and snippets.

import subprocess
import re
# Store the output of pacman -Qq in a list, i.e. the name of all packages
pack_command = subprocess.getoutput("pacman -Qq")
packages_list = pack_command.splitlines()
# Store the output of paclog --package=pack_name for all packages in a list
# Even though the format of the list is pretty ugly.
pac_log = []