Install the downloaded RPM file locally as shown below: # yum localinstall vsftpd-3.0.86_64. You can use –resolve switch with yumdownloader to check for the dependencies. My software compiles just fine using this version. Vsftpd-3.0.86_64.rpm | 167 kB 00:02 $ ls -lrt How do I ask yum to install specific version of gcc When I run yum install gcc on fc17 I get gcc 4.7.2. You can also download the RPM of a package with a specific version using yumdownloader command. The command repoquery is part of yum-utils package, so if you don’t find one, install it as shown below: # yum install yum-utils $ repoquery -show-duplicates vsftpd* Not sure how to construct/append the version, release and architecture information of a package? You can take help from repoquery command. It’s absolutely fine to append architecture and release information as well. You need to append the version information of the package as shown below: # yum install vsftpd-3.0.2-11.el7_2 How to install a specific version of a package? # yum -showduplicates list openssh | expand For example, the below command lists duplicates for openssh package and also the version of the installed package as well. Moreover, the above command will also list the version of a package that was already installed in the system under ‘Installed Packages’. This particular switch will search for the given package and lists the available version (including the base and updated versions). The first thing you should do is, to find out all the available versions of a package using –showduplicates switch. But sometimes you might want to install only a particular version of a package and yum allows you to choose what to install. Well, there can be a multiple versions of package in the yum repository and if not instructed, yum will install the default version. If you ever want to instruct YUM to install only a particular version of a package, then here’s how you can do that.
0 Comments
Leave a Reply. |