Skip to main content

List and sort user-installed files according to dnf

Project description

dnf-humbug

dnf-humbug tool lists packages that are marked as "user installed" and gives a list of such, allowing a user to adjust this.

"user installed" are packages the system thinks you have directly installed, and are thus always kept and not removed automatically.

So, as my list of "user installed" packages included a ton of old dev packages, lots of libraries I could not remember installing, I wanted something to make a list out of those and see what was where.

One such way was this:

comm -2 -3    <(dnf repoquery --userinstalled --qf '%{name}-%{version}-%{release}.%{arch}'|sort)  <(dnf leaves| sed 's/^[- ] //'|sort)

Clearly not optimal, so I wrote this utility.

To install in a venv

python3 -m venv --system-site-packages humbug-venv
source humbug-venv/bin/activate
pip install dnf-humbug

Launching

Either use:

python3 -m dnf_humbug

Or:

dnf-humbug

Bugs, Features, Issues?

Feel free to hack on it, I'll probably do too. I don't have a plan to port it to dnf5 yet, but who knows, dnf5 might also annoy me and I'll have to do it there as well.

License

I snagged some code from the "dnf leaves" code when I started this, so we follow suit with GPLv2 license.

Dependencies

This is not a DNF plugin, but a separate tool that uses python3-dnf on Fedora (or other systems).

So make sure to install python3-dnf and python3-textual, or you can just have python3-dnf installed and use pypi to install textual.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dnf-humbug-0.0.11.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

dnf_humbug-0.0.11-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file dnf-humbug-0.0.11.tar.gz.

File metadata

  • Download URL: dnf-humbug-0.0.11.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for dnf-humbug-0.0.11.tar.gz
Algorithm Hash digest
SHA256 9b5966352b1333c526772ba303c1fd1ffb50e7c122e674ffcceff5e7a70745a5
MD5 5f2a27f72e10f1dec22e86bcb68475da
BLAKE2b-256 8c7491f9b0dee1e376e7365cebb5ffca1d3fe2f21db09314114cc5704cd11021

See more details on using hashes here.

File details

Details for the file dnf_humbug-0.0.11-py3-none-any.whl.

File metadata

  • Download URL: dnf_humbug-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for dnf_humbug-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 7b00a1f8e42370bff61027964b98f4a309ddff58575d2359d910d98260184c80
MD5 229719ae361c5f359af6e5737d1ee728
BLAKE2b-256 753dd2f37a12899075f9bc179038c7ddac8d65acf3ea79a6313f772ea2200c37

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page