Gonna ask here as well because in the Fedora Matrix-Channel I’m just getting answers from someone who doesn’t even know what I’m asking (bless their soul).
Is there any way for dnf history undo
to use only the package name for the undo instead of the entire NEVRA identifier…?
I installed like 15 packages (+ dependencies) that I needed for some dev work a couple weeks ago (the AppImage stuff)… obviously there were updates since then and when I try to undo the transaction now it can’t find any of the RPM NEVRA
man page just mentions that “If it is not possible to undo some operations due to the current state of RPMDB, it will not undo the transaction.”, but no other alternative
history rollback
doesn’t work either because that would require installing old packages, which requires the versions to still be in the repo, which… they are not anymore.
sudo dnf history undo 69 # also: nice.
Last metadata expiration check: 3:06:31 ago on Tue 08 Oct 2024 05:02:02 CEST.
Error: The following problems occurred while running a transaction:
Cannot find rpm nevra "gcc-14.2.1-1.fc40.x86_64".
Cannot find rpm nevra "gcc-plugin-annobin-14.2.1-1.fc40.x86_64".
...
It’s the same for all of them because they have been updated since they were installed:
dnf list installed gcc
Installed Packages
gcc.x86_64 14.2.1-3.fc40 @updates
I mean yeah I can dump the transaction into a text file, remove all the useless text from 250(!) package installs manually (because writing a RegEx that fits all packages would probably take me longer then that), and pipe that back into dnf remove
, but… what’s the point of dnf history undo
then…
Holy shit… I think I’m poppin’ a vein.
rant time:
After taking an hour to explain to them how none of their ideas make any sense, they come back at me with:
it is not working way you think it should get over it
THAT is just next level rude.
Don’t get me wrong, I appreciate when people try to help. But when they very clearly know less about the issue then I do (because I already did my research), I’m just explaining to them why their ideas won’t work because they run into the exact issue I’m already having. When it takes them an hour of back and forth to come to the exact same conclusion I was at in my very first message, I get a little frustrated…
I knew from their first message that they had no idea what I was even asking, and I still took the time to explain it to them so they could learn as well, and that’s what I get.
Anyway… /rant