I may have made a stupid mistake today. I say “may” because I at least saved my machine from being so messed up I would have had to reinstall it. What happened was that my Fedora-35 box became frozen up and would not budge under any circumstances that hit the power button.
This would have worked, but on reboot, flashing by quickly in red and white letters, was something about “CUPS”. Therefore I went into emergency maintenance mode and removed cups with “dnf erase cups”. Unfortunately, I failed to write down all the dependencies the went away with CUPS.
So, with my humble hat in my hand, I would like to ask if anyone knows what those dependencies are, or how to find out. I can’t even run system-config-printer and my job rests on printing at the end of a shift.
Any help, thanks in advance.
you should just be able to
dnf install cups
edit … thanks @ilikelinux I should’ve thought about this more
sudo dnf rq --whatrequires cups
will get you what depends on it
if removing cups is the last thing you did you can get the list of things you removed by:
sudo dnf history list last info
sudo dnf history list --reverse
find the line with cups, and get the transaction number
sudo dnf history info <transaction number>
will also give you the the packages that were removed.
Then you can either install by hand
sudo dnf history undo <transaction number>
sorry about that
I would have said the same as @grumpey , i made it on my machine and aborted the remove:
Package Arch Version Repository Size
cups x86_64 1:2.3.3op2-10.fc35 @updates 7.6 M
Removing dependent packages:
bluez-cups x86_64 5.62-2.fc35 @updates 48 k
cups-filters x86_64 1.28.10-1.fc35 @updates-testing 2.6 M
foomatic x86_64 4.0.13-21.fc35 @fedora 827 k
foomatic-db-ppds noarch 4.0-72.20210611.fc35 @fedora 77 M
gutenprint-cups x86_64 5.3.4-5.fc35 @updates 1.0 M
hplip x86_64 3.21.2-13.fc35 @updates 26 M
Removing unused dependencies:
cups-filesystem noarch 1:2.3.3op2-10.fc35 @updates 0
cups-filters-libs x86_64 1.28.10-1.fc35 @updates-testing 327 k
cups-ipptool x86_64 1:2.3.3op2-10.fc35 @updates 4.4 M
foomatic-db noarch 4.0-72.20210611.fc35 @fedora 9.5 M
foomatic-db-filesystem noarch 4.0-72.20210611.fc35 @fedora 0
hplip-common x86_64 3.21.2-13.fc35 @updates 1.3 M
hplip-libs x86_64 3.21.2-13.fc35 @updates 463 k
libsane-hpaio x86_64 3.21.2-13.fc35 @updates 190 k
net-snmp-libs x86_64 1:5.9.1-7.fc35 @fedora 3.1 M
poppler-cpp x86_64 21.08.0-1.fc35 @fedora 118 k
poppler-utils x86_64 21.08.0-1.fc35 @fedora 680 k
qpdf-libs x86_64 10.3.2-2.fc35 @fedora 1.7 M
Remove 19 Packages
Thank you both very much! I followed the dependency trail, and ended up with a fully functioning CUPS system. I couldn’t have done it without you.