How to Version Lock RPM Packages in Linux
In this article
- 11. Introduction to RPM Package Version Locking
- 22. Version Locking with yum
Table of Contents
- Introduction to RPM Package Version Locking
- Version Locking with
yum- Installing the
yum-versionlockPlugin - Locking a Package Version
- Listing Locked Packages
- Removing a Version Lock
- Installing the
- Version Locking with
dnf- Installing the
dnf-plugin-versionlockPlugin - Locking a Package Version
- Listing Locked Packages
- Removing a Version Lock
- Installing the
- Version Locking with
zypper- Locking a Package Version
- Listing Locked Packages
- Removing a Version Lock
- Version Locking with
apt(Debian/Ubuntu)- Holding a Package
- Listing Held Packages
- Unholding a Package
- Conclusion
1. Introduction to RPM Package Version Locking
RPM (Red Hat Package Manager) is a powerful package management system used by several Linux distributions, including Red Hat, CentOS, Fedora, and openSUSE. Locking a package version ensures that a specific version of a package remains installed and prevents updates to that package. This is particularly useful when you need to maintain a stable environment or when a newer version of a package introduces changes that are not compatible with your current setup.
2. Version Locking with yum
Installing the yum-versionlock Plugin
For CentOS/RHEL 7 and earlier, the yum package manager is used. To lock a package version, you need to install the yum-versionlock plugin.
3. Version Locking with dnf
4. Version Locking with `zypper`
5. Version Locking with `apt` (Debian/Ubuntu)
6. Conclusion
Version locking RPM packages is a crucial technique for maintaining stability in your Linux environment. By following the steps outlined in this guide, you can ensure that specific versions of packages remain installed, preventing unwanted updates that could potentially disrupt your system or applications. Whether you are using yum, dnf, zypper, or apt, the process is straightforward and helps maintain a predictable and stable environment.
For further assistance or more detailed guides, you can refer to the documentation specific to your Linux distribution or consult the knowledge base at Domain India Knowledgebase or submit a ticket at Domain India Support.
Was this article helpful?
Your feedback helps us improve our documentation
Still need help? Submit a support ticket