Page
Perform a system rollback

Next, we’ll walk through how to perform a system rollback then read a summary of this learning path.
In this lesson, you will:
- Perform a system rollback.
- Read a learning path summary
Revert to a previous version
In the event that the host is no longer operating properly after the update, it can be rolled back to the previous version of the image. This is shown below. Notice that after the host is rebooted, it is again running the earlier version of Red Hat Enterprise Linux (RHEL) 9.5 that was used to initially deploy the virtual machine.
# Set system to rollback at next boot
$ sudo bootc rollback
Next boot: rollback deployment
# Reboot to initiate rollback
$ sudo reboot
# SSH back into the rolled back system
$ ssh smerrow@192.168.124.101
Last login: Mon Mar 31 13:12:31 2025 from 192.168.124.1
# Verify that rollback is complete
$ sudo bootc status
[sudo] password for smerrow:
No staged image present
Current booted image: quay.io/seanmerrow/rhel9-httpd:v1
Image version: 9.20250217.0 (2025-03-28 20:56:34.366462786 UTC)
Image digest: sha256:04d85d36679e6aefc05299dff33974a1cede994f20b7ec8cd615a404c03f75d6
Current rollback image: quay.io/seanmerrow/rhel9-httpd:v2
Image version: 9.20250325.0 (2025-03-28 21:08:25.470786760 UTC)
Image digest: sha256:e4a48560e3a47351a3a8308bb6e89e84feee3a9db8a81d8a26fb6faa5b6bbd91
That concludes this walkthrough on Image mode for RHEL.
Summary
In this learning path, you’ve mastered a robust command-line workflow for creating, updating, and managing custom Red Hat Enterprise Linux (RHEL) container images with Podman. You now have the skills to build a bootable RHEL system, with the flexibility to easily roll back or update both the host and application by simply creating a new image. By following this process, you've gained control over your system’s life cycle.
Want to learn more? Try these:
- Get started with Red Hat Enterprise Linux with learning materials tailored to developers: https://developers.redhat.com/products/rhel/getting-started
- Find Red Hat Enterprise Linux learning resources for all experience levels: https://www.redhat.com/en/technologies/linux-platforms/enterprise-linux/learn
- Learn helpful Linux commands for developers using the Developer Sandbox: https://developers.redhat.com/learn/rhel/helpful-linux-commands-developers-using-developer-sandbox-red-hat-openshift