Search code examples
pysidecentos7yumpython-packaging

yum install specific version of python package


I want to yum install python-pyside, but I don't want any old/new version of pyside, I want pyside version 1.2.1.

How can I do this?

I currently have:

yum install python-pyside

Solution

  • First check which versions are available in your repos

    yum --showduplicates list python-pyside | expand
    

    Then use the following to install a specific version that is listed from the command above

    yum install <package name>-<version info>
    

    Which means if v1.2.1 is available, you would need to run the command:

    yum install python-pyside-1.2.1
    

    If it's not available then you need to enable a repo which has that version.