Which Linux distro have you installed (Ubuntu server, Ubuntu desktop, Kubuntu, Lubuntu, Xubuntu, Ubuntu MATE, Mint, et al.), & which release number? Different releases have different tools for us to recommend. Please click [edit] & add that to your question, so all facts we need are in the question. Please don't use Add Comment, since that's our one-way channel to you. All facts about your PC should go in the Question with [edit]
– K7AAYMay 21 '20 at 22:49
@Kulfy - I believe it does, I get the kernel update history. Thank you so much.
– SunandaMay 22 '20 at 17:13
@MitaliCyrus You can change the pattern in zgrep to achieve that. The answers in the above question are more general.
– KulfyMay 22 '20 at 21:21
@Kulfy Yes the answers in the question above more general, but my question is specific to kernel updates and hence is not addressed in the answers. If you post your solution as a answer then I can accept it since it answers my question. Thank you.
– SunandaJul 20 '20 at 20:59
zgrep 'install linux-headers' /var/log/dpkg.log* | sort | cut -f1,2,4 -d' 'help? – Kulfy May 21 '20 at 21:09zgrepto achieve that. The answers in the above question are more general. – Kulfy May 22 '20 at 21:21