Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  Need to install python with all dependency in AIX LPAR

    Posted Wed November 16, 2022 08:43 AM
    Hi Team,

    I wanted to install python with all dependency in AIX LPAR, could you please suggest how we can achieve this.

    ------------------------------
    Manoj Kumar
    ------------------------------

    #AIXOpenSource


  • 2.  RE: Need to install python with all dependency in AIX LPAR

    Posted Wed November 16, 2022 08:50 AM

    Please install dnf from AIX toolbox then you can install any package.

    Between with dnf python will also be installed.

     

    Thanks,

     

    Sanket Rathi

     






  • 3.  RE: Need to install python with all dependency in AIX LPAR

    Posted Wed November 16, 2022 09:03 AM
    Thanks, Sanket. Let me try this option. I will keep you posted.

    ------------------------------
    Manoj Kumar
    ------------------------------



  • 4.  RE: Need to install python with all dependency in AIX LPAR

    Posted Wed November 16, 2022 09:08 AM
    Hello Sanket, 

    Do we have steps for this DNF installation?

    Regards
    Manoj

    ------------------------------
    Manoj Kumar
    ------------------------------



  • 5.  RE: Need to install python with all dependency in AIX LPAR

    Posted Wed November 16, 2022 09:12 AM

    It is there on AIX toolbox web page. You need to just run dnf script if your machine has outbound access.

     

     

    Thanks,

     

    Sanket Rathi

     






  • 6.  RE: Need to install python with all dependency in AIX LPAR

    Posted Wed November 16, 2022 09:33 AM
    Thanks, Sanket. I tried this. Please find the output below. Is that done or anything else we have to do.

    ./dnf_aixtoolbox.sh -d
    Attempting download of dnf_bundle_aix_71_72.tar ...
    Saving to 'dnf_bundle_aix_71_72.tar'...
    168 MB received in 41 seconds (4.09 MB/sec)

    Extracting dnf_bundle_aix_71_72.tar ...
    x ca-certificates-2020.06.01-0.aix7.1.ppc.rpm, 952182 bytes, 1860 tape blocks
    x dnf-4.2.17-32_2.aix7.1.noarch.rpm, 10981 bytes, 22 tape blocks
    x dnf-automatic-4.2.17-32_2.aix7.1.noarch.rpm, 12288 bytes, 24 tape blocks
    x dnf-data-4.2.17-32_2.aix7.1.noarch.rpm, 23516 bytes, 46 tape blocks
    x extra_list, 218 bytes, 1 tape blocks
    x install_dnf.sh, 11878 bytes, 24 tape blocks
    x libcomps-0.1.11-32_1.aix7.1.ppc.rpm, 1273338 bytes, 2487 tape blocks
    x libdnf-0.39.1-32_2.aix7.1.ppc.rpm, 15810655 bytes, 30881 tape blocks
    x libmodulemd-1.5.2-32_2.aix7.1.ppc.rpm, 3433754 bytes, 6707 tape blocks
    x librepo-1.11.0-32_1.aix7.1.ppc.rpm, 3650338 bytes, 7130 tape blocks
    x libsmartcols-2.34-32_1.aix7.1.ppc.rpm, 183412 bytes, 359 tape blocks
    x libsolv-0.7.9-32_1.aix7.1.ppc.rpm, 1533403 bytes, 2995 tape blocks
    x libzstd-1.4.4-32_1.aix7.1.ppc.rpm, 469194 bytes, 917 tape blocks
    x p11-kit-0.23.16-0.aix7.1.ppc.rpm, 1047702 bytes, 2047 tape blocks
    x p11-kit-tools-0.23.16-0.aix7.1.ppc.rpm, 39777 bytes, 78 tape blocks
    x python3-3.7.9-0.aix7.1.ppc.rpm, 43168080 bytes, 84313 tape blocks
    x python3-dateutil-2.8.0-1.aix6.1.noarch.rpm, 363137 bytes, 710 tape blocks
    x python3-devel-3.7.9-0.aix7.1.ppc.rpm, 237244 bytes, 464 tape blocks
    x python3-dnf-4.2.17-32_2.aix7.1.noarch.rpm, 197205 bytes, 386 tape blocks
    x python3-dnf-plugin-migrate-4.0.16-32_1.aix7.1.noarch.rpm, 8546 bytes, 17 tape blocks
    x python3-dnf-plugins-core-4.0.16-32_1.aix7.1.noarch.rpm, 49763 bytes, 98 tape blocks
    x python3-docs-3.7.9-0.aix7.1.ppc.rpm, 2993180 bytes, 5847 tape blocks
    x python3-gpgme-1.13.1-32_1.aix7.1.ppc.rpm, 682308 bytes, 1333 tape blocks
    x python3-hawkey-0.39.1-32_2.aix7.1.ppc.rpm, 3113865 bytes, 6082 tape blocks
    x python3-libcomps-0.1.11-32_1.aix7.1.ppc.rpm, 1020925 bytes, 1994 tape blocks
    x python3-libdnf-0.39.1-32_2.aix7.1.ppc.rpm, 22549836 bytes, 44043 tape blocks
    x python3-librepo-1.11.0-32_1.aix7.1.ppc.rpm, 2292962 bytes, 4479 tape blocks
    x python3-six-1.13.0-1.aix6.1.noarch.rpm, 514483 bytes, 1005 tape blocks
    x python3-test-3.7.9-0.aix7.1.ppc.rpm, 28383122 bytes, 55436 tape blocks
    x python3-tools-3.7.9-0.aix7.1.ppc.rpm, 12734 bytes, 25 tape blocks
    x rpm-python3-4.15.1-32_1.aix7.1.ppc.rpm, 100168 bytes, 196 tape blocks
    x rpm.rte, 40620032 bytes, 79336 tape blocks
    x yum-4.2.17-32_2.aix7.1.noarch.rpm, 8466 bytes, 17 tape blocks
    x zchunk-1.1.4-32_1.aix7.1.ppc.rpm, 552363 bytes, 1079 tape blocks
    x zchunk-devel-1.1.4-32_1.aix7.1.ppc.rpm, 19487 bytes, 39 tape blocks
    x zchunk-libs-1.1.4-32_1.aix7.1.ppc.rpm, 534328 bytes, 1044 tape blocks

    Installing rpm.rte at the latest version ...
    This may take several minutes depending on the number of rpms installed...
    +-----------------------------------------------------------------------------+
    Pre-installation Verification...
    +-----------------------------------------------------------------------------+
    Verifying selections...done
    Verifying requisites...done
    Results...

    WARNINGS
    --------
    Problems described in this section are not likely to be the source of any
    immediate or serious failures, but further actions may be necessary or
    desired.

    Already Installed
    -----------------
    The number of selected filesets that are either already installed
    or effectively installed through superseding filesets is 1. See
    the summaries at the end of this installation for details.

    NOTE: Base level filesets may be reinstalled using the "Force"
    option (-F flag), or they may be removed, using the deinstall or
    "Remove Software Products" facility (-u flag), and then reinstalled.

    << End of Warning Section >>

    +-----------------------------------------------------------------------------+
    BUILDDATE Verification ...
    +-----------------------------------------------------------------------------+
    Verifying build dates...done
    FILESET STATISTICS
    ------------------
    1 Selected to be installed, of which:
    1 Already installed (directly or via superseding filesets)
    ----
    0 Total to be installed


    Pre-installation Failure/Warning Summary
    ----------------------------------------
    Name Level Pre-installation Failure/Warning
    -------------------------------------------------------------------------------
    rpm.rte 4.15.1.3 Already installed



    Checking whether any of the rpms from dnf_bundle are already installed...
    Takes couple of minutes to process.

    ca-certificates-2020.06.01-0 will be installed
    dnf-4.2.17-32_2 will be installed
    dnf-automatic-4.2.17-32_2 will be installed
    dnf-data-4.2.17-32_2 will be installed
    libcomps-0.1.11-32_1 will be installed
    libdnf-0.39.1-32_2 will be installed
    libmodulemd-1.5.2-32_2 will be installed
    librepo-1.11.0-32_1 will be installed
    libsmartcols-2.34-32_1 will be installed
    libsolv-0.7.9-32_1 will be installed
    libzstd-1.4.4-32_1 will be installed
    p11-kit-0.23.16-0 will be installed
    p11-kit-tools-0.23.16-0 will be installed
    python3-3.7.9-0 will be installed
    python3-dnf-4.2.17-32_2 will be installed
    python3-gpgme-1.13.1-32_1 will be installed
    python3-hawkey-0.39.1-32_2 will be installed
    python3-libcomps-0.1.11-32_1 will be installed
    python3-libdnf-0.39.1-32_2 will be installed
    python3-librepo-1.11.0-32_1 will be installed
    rpm-python3-4.15.1-32_1 will be installed
    zchunk-libs-1.1.4-32_1 will be installed

    Installing the packages...

    Verifying... ################################# [100%]
    Preparing... ################################# [100%]
    Updating / installing...
    1:python3-3.7.9-0 ################################# [ 5%]
    2:libzstd-1.4.4-32_1 ################################# [ 9%]
    3:libmodulemd-1.5.2-32_2 ################################# [ 14%]
    4:libsolv-0.7.9-32_1 ################################# [ 18%]
    5:libsmartcols-2.34-32_1 ################################# [ 23%]
    6:zchunk-libs-1.1.4-32_1 ################################# [ 27%]
    7:librepo-1.11.0-32_1 ################################# [ 32%]
    8:rpm-python3-4.15.1-32_1 ################################# [ 36%]
    9:libdnf-0.39.1-32_2 ################################# [ 41%]
    10:python3-libdnf-0.39.1-32_2 ################################# [ 45%]
    11:python3-hawkey-0.39.1-32_2 ################################# [ 50%]
    12:libcomps-0.1.11-32_1 ################################# [ 55%]
    13:python3-libcomps-0.1.11-32_1 ################################# [ 59%]
    14:python3-gpgme-1.13.1-32_1 ################################# [ 64%]
    15:p11-kit-0.23.16-0 ################################# [ 68%]
    16:p11-kit-tools-0.23.16-0 ################################# [ 73%]
    17:dnf-data-4.2.17-32_2 ################################# [ 77%]
    18:python3-dnf-4.2.17-32_2 ################################# [ 82%]
    19:dnf-4.2.17-32_2 ################################# [ 86%]
    20:dnf-automatic-4.2.17-32_2 ################################# [ 91%]
    21:ca-certificates-2020.06.01-0 ################################# [ 95%]
    22:python3-librepo-1.11.0-32_1 ################################# [100%]

    dnf installed successfully.
    Please run 'dnf update' to update packages to the latest level.

    Please note, RPM packages are downloaded in dnf cache /var/cache/dnf.
    RPM packages install files go under the path /opt.
    Hence it is recommended to always keep at least 512MB of free space in /var & /opt
    to avoid any download and installation/update failures.

    ------------------------------
    Manoj Kumar
    ------------------------------



  • 7.  RE: Need to install python with all dependency in AIX LPAR

    Posted Thu November 17, 2022 12:08 AM

    Yes it is installed. Now you can find python3 in /opt/freeware/bin/python3

    If you want to update python3 to latest level from AIX toolbox you can just run

     

    # dnf update python3

     

    Thanks,

     

    Sanket Rathi

     






  • 8.  RE: Need to install python with all dependency in AIX LPAR

    Posted Thu November 17, 2022 09:46 AM
    Thanks, Sanket.

    ------------------------------
    Manoj Kumar
    ------------------------------