Dup Goto 📝

PackageManagement101

To Pop
43 lines, 126 words, 1079 chars Monday 2023-07-31 13:46:40

See linux-audit. See fedora docs on dnf vs apt

Adding and Removing

Listing packages

List installed packages (see tylersguides)

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.

yum --nogpgcheck localinstall packagename.arch.rpm

actually with dnf you can now just do

dnf install package.rpm