Shared server guidance · Question & answer

How do I preview a Linux upgrade before scheduling maintenance?

A transaction preview helps reveal package changes, but it cannot predict every service restart, configuration prompt or application incompatibility. Use it alongside the distribution’s release notes and the application’s support matrix. Routine package updates and a major operating-system release upgrade require different plans.

IntermediateLinux servers using APT or DNF; systemd for the service baseline
Go to the answer

Before you start

  • An authorised SSH session on the Linux server.

Instructions

1. Inspect a proposed package transaction

Use the current repository metadata. APT simulation and DNF’s decline option allow you to inspect the solver’s proposed changes without committing them.

Remote Linux shell
apt-get -s upgrade

Debian/Ubuntu: read packages held back and any warnings. This is not a distribution-release upgrade.

Remote Linux shell
sudo dnf upgrade --assumeno

RHEL-family alternative: inspect the transaction, then decline automatically. Metadata may still be refreshed.

2. Map changes to service validation

List the currently failed services before maintenance so an older issue is not mistaken for a new regression. Identify applications, scheduled work and kernel components affected by the proposed transaction.

Remote Linux shell
systemctl --failed --no-pager

On systemd servers this provides a baseline of failed units. Pair it with application-level health checks and planned reboot access.

Check the result

  • The maintenance plan names the exact package transaction, service checks, recovery approach and any expected restart or reboot. Review the transaction again when it is actually executed.

Troubleshooting

A preview proposes removing a critical package
Stop and inspect repository compatibility, dependency changes and package holds. A solver’s valid transaction can still be wrong for your application.

Official references

Use the documentation for your installed version when a flag, service name or platform feature differs.