Usually, when you install a package in CentOS and Ubuntu Usb to ethernet adapter driver for windows 10. , the package management software selects the latest package version from the repository, by default. However, sometimes, for one reason or the other, you may want to install a specific package version on your Linux system.
Brief: This article explains the difference between apt and apt-get commands of Linux. It also lists some of the most commonly used apt commands that replace the older apt-get commands. One of the noticeable new features of Ubuntu 16.04 was the ‘introduction’ of apt command. The reality is that.
At work we use a backported version of Subversion as the stable package is 1.1.4 and I wanted to install the latest one we could get a package for which was version 1.3.2. Along with the backported Subversion package is a package that contains a number of useful hook scripts called subversion-tools. When you have listed the versions to choose the specific one, you can install it with the apt-get install command followed by the name and the version of the package. So, you need to follow the syntax as below.
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.
Install Specific Package Version in CentOS/RHEL/Fedora
First, you need to check for all the available versions of a package, whether installed or not. Normally, yum ignores specific versions of a package and will always try to install the latest version available.
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.
From the above command output, the naming format for packages are:
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.
Once you have identified the specific version of a package (for example nginx-1.10.3-1.el7.ngx), install it as follows. 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.
Alternatively, if you want to use a version with certain updates, specify the build_number (package_name-version_number-build_number) as shown.
Farm frenzy free online. Install Particular Package Version in CentOS
Considering the above situation, a newer version of the packages is already installed on the system. Therefore, you need to remove the installed package version, if you want to install an older version from the available packages as shown.
Once you have removed the installed package, you can then install the specific version you desire as explained above.
Install Specific Package Version in Ubuntu and DebianInstall Specific Version Apt Get
First check the version of the package installed on your system plus all available packages in the repository, using the apt-cache command below.
To install a specific package version, use the following command with syntax below.
Install Specific Package Version in Ubuntu
Apt Get Install Old Version 2
If a newer version of a package is already installed on your Ubuntu system, you can remove it and then install the version you want.
Apt Get Version Upgrade
That’s all! For more information, refer to the yum, apt, apt-cache man pages. If you have any queries, use the comment form below to get to us.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |