Page 1 of 1

[Solved] mintupdate -history export

Posted: Tue Jul 09, 2019 4:34 am
by Lanser
Does anyone know how to export the update history from mintupdate ? [LM19.1 Mate 64]
A search in the obvious places doesn't locate a txt or a log file and mintupdate-cli doesn't seem to have a history option.
I've been using screen grabs, but a txt file would be more useful.
many thanks
Lanser

Re: mintupdate -history export

Posted: Tue Jul 09, 2019 4:50 am
by gm10
May I ask what you would want that for?

mintupdate parses dpkg's log to generate the history but without knowing what you are trying to achieve I'm not sure that's the best answer to give you.

Re: mintupdate -history export

Posted: Tue Jul 09, 2019 5:18 am
by Lanser
Sure. The history view provides a detailed list of the individual updated files which I find useful for problem determination.
The primary update descriptions generally only provide a high level description of an update that often includes multiple files.
Occasionally one of these files causes an unexpected problem with HW or another app. Having a list just makes PD a bit easier.

Lanser

Re: mintupdate -history export

Posted: Tue Jul 09, 2019 5:21 am
by gm10
No I get that, that's why the history exists, but that still doesn't explain why you'd want to export it/screenshot it, and that's what I was really wondering about.

Re: mintupdate -history export

Posted: Tue Jul 09, 2019 5:32 am
by Lanser
Old habits. When I see updates that are more complex and maybe have implications down track, I document and keep a record for "change control".
Maybe I have been in IT for too long...but it has helped me identify and fix a few issues over the years
Lanser

Re: mintupdate -history export

Posted: Tue Jul 09, 2019 6:06 am
by gm10
Well, the history doesn't go away, but if you want a separate record for your own documentation then the answer I'll give you is:

Code: Select all

zgrep -e " upgrade " -sh /var/log/dpkg.log*

Re: mintupdate -history export

Posted: Tue Jul 09, 2019 7:14 am
by Lanser
Thank you gm10. Perfect. I should have realised that it was "dpkg" action.
Using timeshift snapshots to restore is often the quickest way to fix an update problem, but I learn more if I try to understand the root cause and fix options.

cheers
Lanser