📅  最后修改于: 2023-12-03 14:48:41.860000             🧑  作者: Mango
yum install package with version
- Shell/BashIn the world of Linux package management, yum
is a popular tool that lets you install and manage software packages on CentOS/RHEL/Fedora systems. With yum
, you can install packages with their latest versions, but sometimes you may need to install a specific version of a package. In this tutorial, we will explain how to use yum
to install specific versions of packages.
To install a specific version of a package with yum
, you need to follow these steps:
yum list <package-name> --showduplicates
nginx
package, you would run:yum install nginx-1.0.0
--oldpackage
option. This option will allow yum
to replace the newer version with the older version of the package. For example, to downgrade the nginx
package to version 1.0.0, you would run:yum downgrade nginx-1.0.0 --oldpackage
In this tutorial, we have shown how to use yum
to install specific versions of packages. By following these steps, you can easily manage different versions of packages on your CentOS/RHEL/Fedora system.