Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 2
    Interesting solution. You'll need to adjust the grep command a bit to just get a list of packages and to account for packages installed by aptitude and other package managers. If your logs have rotated away, well then you are out of luck. Commented Jan 23, 2011 at 22:27
  • @steven Updated. My grep-fu is of a novice, so I'll leave that to the reader. Also, I don't know if the thing rotates away. I only have to files in there myself. Commented Jan 23, 2011 at 23:03
  • Whether they rotate away will depend on your logrotate setup and how long your system has been around. I'm unsure of Ubuntu defaults since it has been a long time since I changed them. Commented Jan 24, 2011 at 3:40
  • See this answer for a command that does the filtering (including thorough the history.log.<n>.gz files). Commented Aug 8 at 8:34