Yum check version installed package




















Please take a look at my response above regarding using the cache to avoid network access — plasmid Thank you, I now see how yum and rpm can be used interchangeably here!! It's not obvious, but if installed is listed under the Repo tag, it's installed. Otherwise it would list the repo that it is available from.

This results in connecting to remote yum repos when all I want is to see what's happening on my local machine. NoahSussman to list all packages installed currently on your local machine you can use yum list installed. From there you can use the grep command to get a more precise answer for what you're looking for.

Also if you want to check for a specific package you can add that to your command - Ex: php70w. Eric Leschinski Eric Leschinski 3, 4 4 gold badges 19 19 silver badges 26 26 bronze badges. If the result is 0 zero the package is installed. Tom Emerson Tom Emerson 1. This is very slow compared to the rpm -q bind solution shown in John's answer.

Although perhaps using yum -C Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses. Featured on Meta. More comprehensive than rpm -q or rpm -qa , rpm -qi displays package information including name, description, release, size, build date, install date, vendor, and other miscellaneous data.

The yumdb method provides more information compared to the previous option. Why not see what version of python is installed on our Linux system. Noam Manos Noam Manos 6 6 silver badges 9 9 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses.

Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Related 2. Hot Network Questions.



0コメント

  • 1000 / 1000