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: pro fix --dry-run shows what a CVE or USN fix would change

Linux
~/tips/tip-ubuntu-pro-fix-dry-run

pro fix USN-5079-2 --dry-run

Previews the steps to fix a CVE or USN without installing anything.

Security notices read like a lottery: is my machine affected, and what will the fix touch? The Ubuntu Pro client can answer that before it changes a single package.

pro fix USN-5079-2 --dry-run

That is the example in the Ubuntu Pro client documentation. The option simulates a pro fix run and reports what would happen. It installs no packages, and it doesn’t attach the machine or enable services either. The output only describes those steps as things that would happen in a real run.

In the documentation’s example, the output contains these lines:

WARNING: The option --dry-run is being used.
No packages will be installed when running this command.
A fix is available in Ubuntu Pro: ESM Infra.
{ apt update && apt install --only-upgrade -y curl libcurl3-gnutls }

So you learn that a fix exists, which service it comes from, and which packages would be upgraded. For a fix that needs a subscription, the output also covers the steps required: that it comes through the esm-infra service, that an Ubuntu Pro subscription is needed and that the service must be enabled. That makes it a useful pre-check on a machine you haven’t attached.

Once the preview looks right, run the same command without --dry-run. By default pro fix also handles related USNs. If you only want the one you named, the docs describe --no-related:

pro fix USN-5573-1 --no-related

In the documentation, the output of that example lists only the requested USN and ends with USN-5573-1 is resolved.

Caveat: the documentation says dry run is for single CVEs or USNs. To check a list, it points to the u.pro.security.fix.cve.plan.v1 API endpoint instead. The examples above come from the docs and were not run on a live machine.

Further reading: How to preview the result of the pro fix command, How to skip fixing related USNs

More Linux tips notify-send -r "$id" "Backup" "Done" pgrep -af 'sleep 301' smbstatus -L msmtp --serverinfo --tls --tls-certcheck=off --host=smtp.example.com --port=587 smbclient //server/share -U user -Tc backup.tar "*" All Linux tips (283) All topics

Link