brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: apt changelog shows why a package wants to update

Apt
~/tips/tip-ubuntu-apt-changelog

apt changelog openssh-server

Shows the maintainers' notes for a package so you know what an update actually changes.

The update list says a package has a new version. It never says why. One command does.

apt changelog openssh-server

According to the apt-get man page, it tries to download the changelog of a package and shows it in your pager. By default you get the changelog of the installed version. Debian and Ubuntu changelogs read like terse notes from the maintainers, with bug numbers and, for security fixes, CVE ids.

I find it useful when a package is on the upgradable list and I am wondering whether it can wait. If the top entry mentions a CVE in something that faces the internet, it cannot. If it is a packaging tweak, it can.

Quit the pager with q, like any other.

It also works for packages that are not installed yet, so you can read it before deciding to install the new version.

Caveat: it needs a network connection, because the text comes from a server and not from your disk. Also, an Ubuntu changelog often says little more than a one-line summary. It tells you what Ubuntu changed, not everything the upstream project did.

Further reading: apt-get(8) man page (Ubuntu 24.04), On this site: apt autoremove –purge also deletes the leftover config files, On this site: –no-install-recommends stops apt from dragging in extras

More Apt tips sudo apt-mark minimize-manual apt list '~c' grep -E ' (install|upgrade|remove) ' /var/log/dpkg.log | tail -o Dpkg::Options::="–force-confold" upgrade sudo apt-get -d -y full-upgrade All Apt tips (42) All topics

Link