AIX Open Source

 View Only
  • 1.  Python3 specific version installation

    Posted Mon June 14, 2021 07:43 AM

    Hi,

    Is there any way to install specific version of python3 using yum.
    Last time when I ran yum install python3 command in AIX it installed 3.7.9 version in development environment.

    Now after few months when same requirement came to install 3.7.9 python3 version using yum it installed automatically 3.7.10 version.

    Please suggest me if there is any way to install 3.7.9 python3 upgrade in AIX specifically. How does yum take version?

    Thanks,
    Priya







    ------------------------------
    Priya Soni
    ------------------------------


  • 2.  RE: Python3 specific version installation

    Posted Tue June 15, 2021 03:25 AM
    It is not recommended to install older version as newer version would be having fixes from communities.
    Anyway if you want to install a specific version of package using yum that is very much possible.

    Just provide the version number in yum install command for package.

    # yum install <package>-<version>
    For python3 3.7.9-1 the command will be
    # yum install python3-3.7.9-1

    You can also query what all versions of a packages are available

    # yum --showduplicates list <package_name>
    ​​​​

    ------------------------------
    SANKET RATHI
    ------------------------------



  • 3.  RE: Python3 specific version installation

    Posted Thu July 08, 2021 03:53 AM
    Thanks so much Sanket for prompt reply!

    Actually I have one more query that is there any way to install python without Yum and offline?
    I am not AIX expert and not sure how I can do this. I tried alot to get details and tried to download libs and packages from AIXTools box, but all dependencies are not available there. Not sure how to achive this, please suggest.

    Thanks,
    Priya


    ------------------------------
    Priya Soni
    ------------------------------



  • 4.  RE: Python3 specific version installation

    Posted Fri July 09, 2021 01:09 AM
    Installing rpm on AIX is no different than any other rpm based Linux system.
    So you can install rpms without yum but then you will have to resolve all the dependencies manually.
    Get all the packages together and put them in a directory and install using following command.

    # rpm -ivh *.rpm

    All the dependencies for a package are available on AIX toolbox. 

    I think following are the dependencies needed for python3 from AIX toolbox.

    python3
    bzip2
    expat
    gdbm
    gettext
    libffi
    libgcc
    ncurses
    readline
    sqlite
    xz-libs
    zlib
    bash
    glib2
    info
    libiconv
    libstdc++
    libunistring
    libxml2

    ​​

    ------------------------------
    SANKET RATHI
    ------------------------------