let’s have some dnf magic!

Well, the time had come and I last one and a half month 3 – 4 times I run out of space in / (root) partition! That happened due to a crash of a program which took more than 2Gb of core dumped files! And not only that, but recently I had to install a LOT of fonts, which I ended up with 480 mb free space.

So, one of the first thoughts was to remove all these fonts I installed. Of course I didn’t want to remove them from graphical dnf tool, so I searched for commands that I could see the history of dnf installations, and from there I could remove the packets. I ended up with these commands:

#    dnf history

it shows the dnf history in a list! From there, you can ask for more infos on specific action, like:

#    dnf history info 115

and it shows all actions included, like what packages installed / updated or removed! Now, I wanted to remove all packages from action 115, and continuing my search I met this magic command:

# dnf history undo 115

and like that from 480 Mb free space I went to more than 1Gb 😉