Skip to main content

No project description provided

Project description

dnf-humbug

This 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.

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.

To install in a venv

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

Launching

Either use:

python3 -m dnf_humbug

Or:

dnf-humbug

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

dnf_humbug-0.0.3-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dnf_humbug-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 63b4d65ee158581f30b99fe400d54c88c45c2a133d098ef3a12f55387a0e8861
MD5 3308ef9f35bdebeea474d1a65d2c2142
BLAKE2b-256 0f50c0c143d241d382188460dd2a70debd01a451de9e12b5d8a71636b06cbf58

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