Skip to content

Instantly share code, notes, and snippets.

@hellwolf
Created October 8, 2022 16:11
Show Gist options
  • Save hellwolf/fd1e5fa3a0a3307847add2f4457a3c42 to your computer and use it in GitHub Desktop.
Save hellwolf/fd1e5fa3a0a3307847add2f4457a3c42 to your computer and use it in GitHub Desktop.
Fedora DNF list user installed packages
sudo dnf repoquery --userinstalled | xargs -n1 bash -c 'echo -n $0" ";sudo dnf remove $0 2>&1 | tail -n4 | head -n1;' | sed -e 's/Remove//g' -e 's/Packages$//' -e 's/Package$//g' | tee ~/tmp/userinstalled-packages.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment