6/4/2023 0 Comments Yum install specific version![]() Install Particular Package Version in CentOSĬonsidering the above situation, a newer version of the packages is already installed on the system. # yum install nginx-1.10.3Īlternatively, if you want to use a version with certain updates, specify the build_number ( package_name-version_number-build_number) as shown. Note that the name format will have to change here, to the full RPM desired, package_name-version_number as shown in the following command. Once you have identified the specific version of a package (for example nginx-1.10.), install it as follows. The build_number represents minor changes made by the package maintainer, not by the program author, such as additional documentation, changes to configuration files, or bug fixes and more. # yum -showduplicates list nginxįrom the above command output, the naming format for packages are: package_name.architecture version_number–build_number repository ![]() Secondly, when you try to find info about a package, yum only shows the latest version of that package in the output of info, list or search sub-commands but using the -showduplicates switch, you can display all package versions present in the repository. ![]() Normally, yum ignores specific versions of a package and will always try to install the latest version available. ![]() Install Specific Package Version in CentOS/RHEL/Fedoraįirst, you need to check for all the available versions of a package, whether installed or not. In this article, we will explain how to install a particular or specific package version in CentOS and Ubuntu using Yum and APT front-end package managers, respectively. However, sometimes, for one reason or the other, you may want to install a specific package version on your Linux system. Usually, when you install a package in CentOS and Ubuntu, the package management software selects the latest package version from the repository, by default.
0 Comments
Leave a Reply. |