Through the years I have often found myself asking this question “Which packages have I installed?” which comes in handy when you want to reinstall your system from scratch, or want to remove cruft. Unfortunately there has never been a proper way to answer it. One way would be to save somewhere all the packages that came with the installation, and compare with the current ones. However you would also see the packages that where installed as dependencies, which might be a lot. But finally, I noticed a new feature (to me) of yum; history.
In itself it’s very simple; store the history of package management, however, somebody decided to differentiate manually installed packages (Install) from packages installed as dependencies (Dep-Install), updates, and other stuff, and that’s all we need to do the magic.
Here’s a little script that simply goes through the history and finds which packages you installed (and are still installed) and list them in chronological order.
In order to demonstrate how is this useful I’ll go through my packaging history and try to explain it. It’s not that interesting but the post is too short otherwise :p Also, you can imagine what kind of findings you would get on your own system.
Very nice package to see how my new laptop CPU is organized🙂 (how many cores and so on)
Not everything is free in life.
I want 3D stuff on my machine.
I decided to step away from GNOME and give XFCE a try.
The best browser, of course.
I want to run Starcraft 2🙂
It turns out wine needs 32-bit packages.
Need some chatting.
Time to start some hacking I guess.
Looks like I want to compile something.
And maybe I want to watch some TV series or something.
This is the best way to get nvidia kernel modules, specially if you build your own kernels.
I need mp4info a lot, mostly for work-related stuff (to check clips).
Time to steup my mail stuff; sometimes I use mutt, but mostly I use notmuch (compile and hack), msmtp to send mails through multiple accounts, and isync to synchronize my IMAP folders.
I like these fonts🙂
I probably need to get some work done; send patches, mount a shared folder.
I love my ruby scripts🙂
Agh, somebody forced me to open some Microsoft document.
Looks like I want to do some GStreamer development, and watch some stuff.
This is interesting. All these dependencies probably just to compile some GUI crap. I should remove all that stuff.
I think that’s enough to demonstrate my point, so I’ll just skim through the rest.
Better than minicom🙂
Very nice tool to generate documentation from plain ascii files.
Agh, I was forced to install Pidgin, probably to test some msn-pecan stuff.
I probably need to cross-compile msn-pecan for Windows and test it with QEMU.
Probably needed for wine, or maybe Android’s SDK.
The rest is not interesting, but suffice it to say that there’s a lot of stuff that can be removed🙂