- Edited
Cant you just type for example apt-get install xxx >> output.file and when you can just check that file or i understood your solution wrongly ?
That is not how it is supposed to be used.potato wroteCant you just type for example apt-get install xxx >> output.file and when you can just check that file or i understood your solution wrongly ?
The issue is that the log file is in a complex format and parsing it can be a pain. grep and such make it difficult to deal with it. A tool like `apt-history` would allow this.You can have a look at the log file, maybe using cat, tail, grep, etc.
This is a real problem. One thing you could do, if you package it as a .deb, is to include a postinstall script to disable log rotation for this file. I'm not too sure how to do it, or if it's even a good idea.I have a concern though, that logrotate would swich out history.log between two commands, in which case the number will then be referring to something else.
I would not want to modify the system.Joe wrote This is a real problem. One thing you could do, if you package it as a .deb, is to include a postinstall script to disable log rotation for this file. I'm not too sure how to do it, or if it's even a good idea.