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
Expand all | Collapse all

How to uninstall bzip2 package

  • 1.  How to uninstall bzip2 package

    Posted Wed February 12, 2020 04:20 AM

    Originally posted by: jifr03


    <Environment>

    AIX7.1 TL05 SP04

    rpm.rte 4.13.0.3

     

    <Event>

    bzip2 already existed because rpm.rte was installed.

     

    # lslpp -f rpm.rte | grep bzip2

                            /usr/opt/freeware/bin/bzip2

                            /usr/opt/freeware/bin/bzip2recover

    #

     

     

    However, when trying to install pbzip2 from Toolbox, it was dependent on bzip2.

     

    # rpm --test -ivh ppc/pbzip2/pbzip2-1.1.13-1.aix6.1.ppc.rpm

    error: Failed dependencies:

            bzip2 >= 1.0.6-3 is needed by pbzip2-1.1.13-1.ppc

    #

     

     

    To solve the dependency, bzip2 was also installed from Toolbox.

    The installation of pbzip2 and bzip2 was successful.

     

     

    I wanted to undo and tried to uninstall pbzip2 and bzip2, but

    bzip2 was required for another package (AIX-rpm-7.1.4.31-2.ppc) and could not be uninstalled.

     

    # rpm --test -evh bzip2-1.0.6-3.ppc pbzip2-1.1.13-1.ppc

    error: Failed dependencies:

            bzip2 is needed by (installed) AIX-rpm-7.1.4.31-2.ppc

    #

     

    <Q1>

    Shouldn't the Toolbox bzip2 be installed, ignoring dependencies when installing pbzip2?

     

    <Q2>

    How do I get it back?

    Do I have to restore from a system backup?

     

     

    Thank you.



  • 2.  Re: How to uninstall bzip2 package

    Posted Wed February 12, 2020 05:15 AM

    Originally posted by: sangameshm


    This was the limitation until rpm.rte-4.13.0.3 and this limitation has been removed from rpm.rte-4.13.0.4.

    More detailed information can be found in this README file.

    https://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/INSTALLP/ppc/README_rpm.rte.4.13.0.10

    Once if you update rpm.rte to latest version then you can remove bzip2.

    https://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/INSTALLP/ppc/

     

    But why you want to uninstall bzip2 as this is required to run rpm command ?

     

    Thanks,

    Sangamesh