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.
Metadata
Release files for dnf-humbug 0.0.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dnf-humbug-0.0.14.tar.gz | 12.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dnf_humbug-0.0.14-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.6 kB
Release files / dnf-humbug-0.0.14.tar.gz
| Download URL | dnf-humbug-0.0.14.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
36e632b881822c442218218d3f3749431acd955f2ad60d47e4baa68ef106ecc8
|
|
BLAKE2b-256 checksum How to use checksums |
5850f92cd1b1bbe3a6205d2b64bc52ca3b7ff6f9f2c5327c32ddd655c67a1e83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|
Release files / dnf_humbug-0.0.14-py3-none-any.whl
| Download URL | dnf_humbug-0.0.14-py3-none-any.whl |
|---|---|
| Size | 13.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c6392d38cccd84ad48da95e14c3e993c7da13db45f04cac3eb0b74c24635a193
|
|
BLAKE2b-256 checksum How to use checksums |
ae06030d3016c36f458a47dd3d903c15db6f3217f29852e35603e4fd000093fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|