Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 2901

Programming • [Bash] Output changelog for upgradeable packages?

$
0
0
Low priority, but for curiosity's sake, I occasionally want to know what has changed when I upgrade my system and would like to have a terse aliased option to knock it out.

I started writing it out and figured I'd see if anyone else had any suggestions before I get too deep into it. Where I stand now, the results are returned, but each as individual commands' entire changelog, and each command's changelog being opened separately:

Code:

sudo apt-get upgrade -s|rg -A1 following|rg -0v following|awk '{print $2,$3,$4,$5,$6,$7,$8,$9,$10}'|xargs -n1 apt changelog
I'd like to have only the first 4-5 lines of each changelog, all consolidated into one document in standard output

(For an even lower priority, how can I print all the results in awk >= 2 instead of manually hardcoding it?

Statistics: Posted by m4c-attack — 2024-10-07 00:09



Viewing all articles
Browse latest Browse all 2901

Trending Articles