Skip to content
Advertisement

How to search /var/log/dpkg.log for monthly install/upgrade logs and output to text file

I would like to output a file with install/upgrade logs limited to the past month by looking in /var/log/dpkg.log.

I do not know bash, I know that the grep command could make it, but I still need some help.

Advertisement

Answer

JavaScript

Sample output:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement