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.  RPM.RTE Uninstall

    Posted Thu March 31, 2022 02:08 PM
    How can you completely uninstall the Yum updater?

    ------------------------------
    Steve Mckinney
    ------------------------------


  • 2.  RE: RPM.RTE Uninstall

    Posted Fri April 01, 2022 01:31 PM
    Hi, Steve
    See part of my blog post

    We used this test tool script "
    destroyRPMS "  to remove all existing packages.
    This is a tool the team has had around for a long time, it is not a supported tool, and not regularly tested by the toolbox team.
    I use this script a lot in support, to clean up my lab environments, and have never had issues. The only issue right now is that it leaves the rpm.rte broken, but that is easily fixed by reinstalling the rpm.rte.

    ***Note:  You can backup the directory before running this script.
    # tar -cvf /export/lpp_source/freeware.backup.tar ./opt/freeware

    The destroyRPMS script did not completely remove rpm.rte, so it needed to be reinstalled.
    We downloaded  the latest rpm.rte and did a forced overwrite.
    # installp -qaXFY -d . rpm.rte

    Then, you can install DNF with the dnf_aixtoolbox.sh script:

    # dnf_aixtoolbox.sh -d

    ------------------------------
    Jan Harris
    AIX Development Support (Liaison to the AIX Toolbox for Open Source)
    IBM (Contract)
    Austin TX
    Jan
    ------------------------------



  • 3.  RE: RPM.RTE Uninstall

    Posted Thu April 07, 2022 11:42 AM
    Hello @Jan Harris So I ran the script and it looks like it removed most of the rpm's and rpm.rte however when I try to reinstall all I get is this,

    lejptasig12:/>installp -qaXFY -d . rpm.rte
    +-----------------------------------------------------------------------------+
    Pre-installation Verification...
    +-----------------------------------------------------------------------------+
    Verifying selections...done
    Verifying requisites...done
    Results...

    FAILURES
    --------
    Filesets listed in this section failed pre-installation verification
    and will not be installed.

    Missing Filesets
    ----------------
    The following filesets could not be found on the installation media.
    If you feel these filesets really are on the media, check for typographical
    errors in the name specified or, if installing from directory, check for
    discrepancies between the Table of Contents file (.toc) and the images that
    reside in the directory.

    rpm.rte

    << End of Failure Section >>

    +-----------------------------------------------------------------------------+
    BUILDDATE Verification ...
    +-----------------------------------------------------------------------------+
    Verifying build dates...done
    FILESET STATISTICS
    ------------------
    1 Selected to be installed, of which:
    1 FAILED pre-installation verification
    ----
    0 Total to be installed


    Pre-installation Failure/Warning Summary
    ----------------------------------------
    Name Level Pre-installation Failure/Warning
    -------------------------------------------------------------------------------
    rpm.rte Not found on the installation media

    The file is there,

    -rwxr-xr-x 1 root system 40620032 Apr 08 00:39 rpm.rte

    So not sure what I'm missing.

    ------------------------------
    Steve Mckinney
    ------------------------------



  • 4.  RE: RPM.RTE Uninstall

    Posted Thu April 07, 2022 02:11 PM
    Hi Steve

    Can you check to make sure there are no other images in the directory, then try to create a table of contents.

    # ls -al rpm.rte*
    #  inutoc .


    ------------------------------
    Jan Harris
    AIX Development Support (Liaison to the AIX Toolbox for Open Source)
    IBM (Contract)
    Austin TX
    ------------------------------



  • 5.  RE: RPM.RTE Uninstall

    Posted Thu April 07, 2022 02:13 PM
    Also check sum:

    # cksum rpm.rte.4.15.1.3.I
    2104259252 40620032 rpm.rte.4.15.1.3.I

    ------------------------------
    Jan Harris
    AIX Development Support (Liaison to the AIX Toolbox for Open Source)
    IBM (Contract)
    Austin TX
    ------------------------------



  • 6.  RE: RPM.RTE Uninstall

    Posted Thu April 07, 2022 03:40 PM
    @Jan Harris Awesome, inutoc . command did the trick. I was able to completely reinstall rpm.rte, download all of the rpm's and reinstall yum to get all of it working again. Thanks for your help.

    ------------------------------
    Steve Mckinney
    ------------------------------



  • 7.  RE: RPM.RTE Uninstall

    Posted Fri April 08, 2022 12:26 PM
    I'm glad this worked, Steve! I find that it is much easier to start from scratch than try to piece installations together.  I have moved to DNF now, which is even better. 


    Cheers!

    ------------------------------
    Jan Harris
    AIX Development Support (Liaison to the AIX Toolbox for Open Source)
    IBM (Contract)
    Austin TX
    ------------------------------