AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  Installing RPM on AIX

    Posted Thu October 28, 2021 01:08 AM
    I am writing you from Japan.
    I have questions regarding Installing RPM packages on AIX 7200-05-03.
    I downloaded the required packages from following site.

    ▼Download site
    AIX Toolbox for Linux Applications : Downloads alpha

    ▼Download Contents
    rpm-XXX.src.rpm

    I checked the installation packages by the following procedure, but it outputs [@@~.rpm]​ and it looks like is has already been installed.

    ▼Install Procedure
    1.smit install_all
    2.select the file location derectory
    3. [Software to install] to install refer to target RPM packages.

    When I ran the installation, the log shows success.
    However, RPM, which should have been installed, is not output in the ouput result of [rpm -qa].

    ▼Questions
    1.Isn't that mean is has been already installed?
    2.Is the installation prucedure and target correct ?
    3.If the procedure and target is incorrect, please tell me the correct procedure.

    ------------------------------
    修 清水
    ------------------------------


  • 2.  RE: Installing RPM on AIX

    Posted Thu October 28, 2021 02:02 PM
    Hi,

    Procedure seems to be correct.
    However, it's not clear if you downloaded the packages like rpm-XXX.src.rpm or packages ending with the name .ppc.rpm.
    Packages ending with .src.rpm are the source rpm packages which are used to build rpm packages in different environment.
    We should be downloading and installing packages ending with .ppc.rpm.


    ------------------------------
    SANGAMESH
    ------------------------------



  • 3.  RE: Installing RPM on AIX

    Posted Thu October 28, 2021 03:05 PM
    Hi,

    If you plan to install multiple rpm packages, I would recommend that you setup yum on AIX.
    The process has been simplified considerably since early attempts to get yum running on AIX.

    There are a couple different ways to do the install:
    1. The easiest way is to download and install the yum.sh script from:
    https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/e
    zinstall/ppc/

    This script will download and install the latest rpm.rte and yum_bundle.tar file which contains all of the rpm dependencies needed to install yum on AIX.  Keep in mind that you will need to be able to access the internet from your LPAR in order to use this script.

    2. You can download the required files from the same location as noted in option 1:
    https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/e
    zinstall/ppc/
    - make sure you have installed the latest version of rpm.rte
    - download the latest yum_bundle.tar
    - untar the yum_bundle.tar
    - install each of the rpm packages using the rpm command:   rpm -ivh *rpm
    - try the yum repolist command to see if the install worked

    I'd recommend trying this on a test LPAR!
    I've attached a README-yum file that I used back when I installed yum on AIX in 2020.  This README is old but still useful.

    This is a link to a really good video by Rob McNelly (another IBM Champion).  This video is very helpful too.
    https://techchannel.com/SMB/08/2021/video-yum-aix

    Good luck,
    Norman

    ------------------------------
    Norman Owens
    Open Systems Architect
    Mohawk Industries
    ------------------------------



  • 4.  RE: Installing RPM on AIX

    Posted Thu October 28, 2021 03:09 PM
    I just noticed there is a dnf for AIX. 

    That would probably be better than yum.  So, I'll have to test that and let you know my thoughts.

    Let me know if you need further help.

    Norman

    ------------------------------
    Norman Owens
    Open Systems Architect
    Mohawk Industries
    ------------------------------