Created
June 14, 2017 16:26
-
-
Save kurtis318/e3b8ac5510554e0705aee4e107289da5 to your computer and use it in GitHub Desktop.
Show all versions of a package using yum
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I needed to determine all the different versions of a package that came from repositories I had set up on a server. | |
I knew there was at least two versions of java-1.8.0-openjdk but I wanted to be sure. | |
I found the following command and it did the job perfectly: | |
[root@hwwn3 ~]# yum --showduplicates list java-1.8.0-openjdk | expand | |
Loaded plugins: product-id, search-disabled-repos, subscription-manager | |
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. | |
Available Packages | |
java-1.8.0-openjdk.ppc64le 1:1.8.0.65-3.b17.el7 xcat-otherpkgs0 | |
java-1.8.0-openjdk.ppc64le 1:1.8.0.102-4.b14.el7 local-rhels7.3-ppc64le--install-rhels7.3-ppc64le | |
java-1.8.0-openjdk.ppc64le 1:1.8.0.102-4.b14.el7 xCAT-rhels7.3-path0 | |
Here is the url where I discovered this command. You have to look carefully for the command. | |
https://unix.stackexchange.com/questions/151689/how-can-i-instruct-yum-to-install-a-specific-version-of-package-x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment