See [linux-audit](https://linux-audit.com/determine-file-and-related-package/). See [fedora docs on dnf vs apt](https://docs.fedoraproject.org/en-US/quick-docs/dnf-vs-apt/) ## Adding and Removing ## Listing packages List installed packages (see [tylersguides](https://tylersguides.com/guides/listing-installed-packages-with-dnf/)) ``` dnf list installed ``` ## Which package contains ``` dnf provides /bin/ps ``` Though this searches all packages, including those not installed. For me, under Rocky 9 KDE, the kde-connect daemon crashes, and I don't need it. So to find the package name ``` dnf provides $(which kdeconnect-app) ``` which yields ``` kde-connect... ``` but this is slow. Rather (as above) ``` dnf list installed | grep kde | grep connect ``` and then ``` dnf remove kdeconnectd ``` ## Installing Dependencies See [this stackoverflow](https://stackoverflow.com/questions/13876875/how-to-make-rpm-auto-install-dependencies). ```bash yum --nogpgcheck localinstall packagename.arch.rpm ``` actually with `dnf` you can now just do ```bash dnf install package.rpm ```