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.  Issues with removing GCC packages from AIX 7.2?

    Posted Wed February 20, 2019 04:54 PM

    Originally posted by: exxoid2


    I attempted to install GCC on my AIX 7.2 host, everything went fine except I did not end up needing it. So what i wanted to do now is remove all of the RPMs that got installed.

     

    The packages installed were...

     

    -rw-r--r--    1 root     system     29233398 Nov 27 06:02 gcc-8.1.0-2.aix7.2.ppc.rpm
    -rw-r--r--    1 root     system     11923175 Nov 27 06:02 gcc-cplusplus-8.1.0-2.aix7.2.ppc.rpm
    -rw-r--r--    1 root     system     10864041 Nov 27 06:02 gcc-cpp-8.1.0-2.aix7.2.ppc.rpm
    -rw-r--r--    1 root     system      1703009 Jan 16 2018  gmp-6.1.2-1.aix6.1.ppc.rpm
    -rw-r--r--    1 root     system       580046 Aug 27 00:11 info-6.4-1.aix6.1.ppc.rpm
    -rw-r--r--    1 root     system       999885 Nov 27 06:02 libgcc-8.1.0-2.aix7.2.ppc.rpm
    -rw-r--r--    1 root     system       334985 May 07 2016  libmpc-1.0.3-1.aix6.1.ppc.rpm
    -rw-r--r--    1 root     system     12684095 Nov 27 06:02 libstdcplusplus-8.1.0-2.aix7.2.ppc.rpm
    -rw-r--r--    1 root     system     12684095 Nov 27 06:02 libstdcplusplus-8.1.0-2.aix7.2.ppc.rpm.1
    -rw-r--r--    1 root     system      3400235 Nov 27 06:02 libstdcplusplus-devel-8.1.0-2.aix7.2.ppc.rpm
    -rw-r--r--    1 root     system       849050 May 07 2016  mpfr-3.1.2-3.aix6.1.ppc.rpm
    -rw-r--r--    1 root     system      3477827 Jan 09 05:02 ncurses-6.1-2.aix6.1.ppc.rpm
    -rw-r--r--    1 root     system       339136 Jan 09 05:02 ncurses-devel-6.1-2.aix6.1.ppc.rpm
    -rw-r--r--    1 root     system       178381 Feb 15 2017  zlib-1.2.11-1.aix6.1.ppc.rpm

     

    To uninstall these I use this:

     

    rpm -e "libstdc++-8.1.0-2.ppc" gmp-6.1.2-1.ppc ncurses-6.1-2.ppc mpfr-3.1.2-3.ppc libmpc-1.0.3-1.ppc info-6.4-1.ppc
    error: Failed dependencies:
            info is needed by (installed) AIX-rpm-7.2.3.15-1.ppc

     

    I have no idea why "info" became a dependency of the already installed AIX-rpm-7.2.3.15-1.ppc package. I think it may have already been pre-installed so it just got upgraded with the dependency requirement?

     

    If I try to leave the info package out of this, then i run into other dependency mess.

     

    root@aix:rpm -e "libstdc++-8.1.0-2.ppc" gmp-6.1.2-1.ppc ncurses-6.1-2.ppc mpfr-3.1.2-3.ppc libmpc-1.0.3-1.ppc
    error: Failed dependencies:
            libncurses.a(libncurses.so.6) is needed by (installed) info-6.4-1.ppc

     

    Here is some other info..

     

    root@aix: lslpp -l | grep "rpm"
      rpm.rte                   4.13.0.3  COMMITTED  RPM Package Manager
      rpm.rte                   4.13.0.3  COMMITTED  RPM Package Manager

    Here are all the packages that are installed, the ones in bold are not needed.

    root@aix: rpm -qa
    tcl-8.4.7-3.ppc
    expect-5.42.1-3.ppc
    sudo-1.8.27-1.ppc
    unzip-6.0-3.ppc
    rsync-3.1.3-2.ppc
    libstdc++-8.1.0-2.ppc
    info-6.4-1.ppc
    gmp-6.1.2-1.ppc
    libmpc-1.0.3-1.ppc

    AIX-rpm-7.2.3.15-1.ppc
    tk-8.4.7-3.ppc
    wget-1.19.2-1.ppc
    bash-4.4-3.ppc
    libgcc-8.1.0-2.ppc
    ncurses-6.1-2.ppc
    zlib-1.2.11-1.ppc
    mpfr-3.1.2-3.ppc

    root@aix: rpm --version
    RPM version 4.13.0.1

    How can I remove the recently installed GCC packages without breaking dependency for RPM as I do want that to remain on the system.



  • 2.  Re: Issues with removing GCC packages from AIX 7.2?

    Posted Wed February 20, 2019 05:38 PM

    Originally posted by: exxoid2


    If I try to uninstall a single rpm package, i again end up at AIX-rpm being a dependency.

     

    root@new: rpm -e "libstdc++-8.1.0-2.ppc"
    error: Failed dependencies:
            libstdc++ >= 6.3.0-1 is needed by (installed) ncurses-6.1-2.ppc
            libstdc++.a(libstdc++.so.6) is needed by (installed) ncurses-6.1-2.ppc
    root@new: rpm -e "ncurses-6.1-2.ppc"
    error: Failed dependencies:
            libncurses.a(libncurses.so.6) is needed by (installed) info-6.4-1.ppc
    root@new: rpm -e info-6.4-1.ppc
    error: Failed dependencies:
            info is needed by (installed) AIX-rpm-7.2.3.15-1.ppc
    root@new:



  • 3.  Re: Issues with removing GCC packages from AIX 7.2?

    Posted Thu February 21, 2019 02:10 AM

    Originally posted by: AyappanP


    Commands like info, install-info are needed by rpm . So these are provided by the rpm.rte fileset itself. 

    They are also coming from info rpm and going to the same location. If someone removes the rpm, the files will be gone.

    So to avoid that, AIX-rpm has dependency on info rpm. From rpm.rte 4.13.0.4 onwards, the dependencies are removed as the files are going to a separate path "/usr/opt/rpm" .

    You can install the rpm.rte fileset and downgrade the info rpm to (info-4.6) to come out of the situation.

    Don't remove the info rpm as it is needed by other rpm package scripts. 

     



  • 4.  Re: Issues with removing GCC packages from AIX 7.2?

    Posted Thu February 21, 2019 10:36 AM

    Originally posted by: exxoid2


    I found ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/INSTALLP/ppc/rpm.rte.4.13.0.6 and installed this using SMITTY installp.

     

    Command: running stdout: yes stderr: no
    Before command completion, additional instructions may appear below.
    [MORE...36]
    Installing Software...
    +-----------------------------------------------------------------------------+
    installp: APPLYING software for:
    rpm.rte 4.13.0.6

    . . . . . << Copyright notice for rpm.rte >> . . . . . . .
    Licensed Materials - Property of IBM
    5765H4000
    Copyright International Business Machines Corp. 2000, 2019.
    Copyright The Regents of the University of California, 1990, 1993, 1994.
    Copyright Tom Dyas <tdyas@eden.rutgers.edu>, 1998.
    Copyright W. L. Estes <wlestes@uncg.edu>, 1998.
    Copyright Free Software Foundation, Inc., 1999-2014.
    Copyright The Internet Society (1998).
    Copyright Red Hat, Inc., 1998-2003, 2005, 2007, 2009-2011.
    Copyright Red Hat Software, 1995-2002.
    Copyright Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>, 2004.
    Copyright System Design and Research, 2003.
    All rights reserved.
    US Government Users Restricted Rights - Use, duplication or disclosure
    restricted by GSA ADP Schedule Contract with IBM Corp.
    . . . . . << End of copyright notice for rpm.rte >>. . . .
    ##################################################################
    This version of rpm installs files under the path /usr/opt/rpm.
    More detailed information on new changes can be found in
    /usr/opt/rpm/README file.
    ##################################################################
    Please wait...
    Successfully updated the Kernel Authorization Table.
    Successfully updated the Kernel Role Table.
    Successfully updated the Kernel Command Table.
    Successfully updated the Kernel Device Table.
    Successfully updated the Kernel Object Domain Table.
    Successfully updated the Kernel Domains Table.
    Successfully updated the Kernel RBAC log level.
    Finished processing all filesets. (Total time: 21 secs).
    +-----------------------------------------------------------------------------+
    Summaries:
    +-----------------------------------------------------------------------------+
    Installation Summary
    --------------------
    Name Level Part Event Result
    -------------------------------------------------------------------------------
    rpm.rte 4.13.0.6 USR APPLY SUCCESS
    rpm.rte 4.13.0.6 ROOT APPLY SUCCESS
    [BOTTOM]
    COMMAND STATUS
    Command: OK stdout: yes stderr: no
    Before command completion, additional instructions may appear below.
    [MORE...39]
    installp: APPLYING software for:
    rpm.rte 4.13.0.6

    . . . . . << Copyright notice for rpm.rte >> . . . . . . .
    Licensed Materials - Property of IBM
    5765H4000
    Copyright International Business Machines Corp. 2000, 2019.
    Copyright The Regents of the University of California, 1990, 1993, 1994.
    Copyright Tom Dyas <tdyas@eden.rutgers.edu>, 1998.
    Copyright W. L. Estes <wlestes@uncg.edu>, 1998.
    Copyright Free Software Foundation, Inc., 1999-2014.
    Copyright The Internet Society (1998).
    Copyright Red Hat, Inc., 1998-2003, 2005, 2007, 2009-2011.
    Copyright Red Hat Software, 1995-2002.
    Copyright Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>, 2004.
    Copyright System Design and Research, 2003.
    All rights reserved.
    US Government Users Restricted Rights - Use, duplication or disclosure
    restricted by GSA ADP Schedule Contract with IBM Corp.
    . . . . . << End of copyright notice for rpm.rte >>. . . .
    ##################################################################
    This version of rpm installs files under the path /usr/opt/rpm.
    More detailed information on new changes can be found in
    /usr/opt/rpm/README file.
    ##################################################################
    Please wait...
    Successfully updated the Kernel Authorization Table.
    Successfully updated the Kernel Role Table.
    Successfully updated the Kernel Command Table.
    Successfully updated the Kernel Device Table.
    Successfully updated the Kernel Object Domain Table.
    Successfully updated the Kernel Domains Table.
    Successfully updated the Kernel RBAC log level.
    Finished processing all filesets. (Total time: 21 secs).
    +-----------------------------------------------------------------------------+
    Summaries:
    +-----------------------------------------------------------------------------+
    Installation Summary
    --------------------
    Name Level Part Event Result
    -------------------------------------------------------------------------------
    rpm.rte 4.13.0.6 USR APPLY SUCCESS
    rpm.rte 4.13.0.6 ROOT APPLY SUCCESS

    If I check the RPM package installed, we can see..

    root@new:lslpp -l | grep "rpm"
    rpm.rte 4.13.0.6 COMMITTED RPM Package Manager
    rpm.rte 4.13.0.6 COMMITTED RPM Package Manager

    However when I check the RPM version reported via --version I still get 4.13.0.1?

    root@new:rpm --version
    RPM version 4.13.0.1

    What is the issue here?



  • 5.  Re: Issues with removing GCC packages from AIX 7.2?

    Posted Thu February 21, 2019 10:48 AM

    Originally posted by: exxoid2


    By the way I was able to get out of the dependency mess by upgrading the RPM package, had to rpm -e multiple packages together. Back to a clean "rpm -qa" list without all of the gcc dependencies. So your suggestion worked, I guess --version may not be updated?



  • 6.  Re: Issues with removing GCC packages from AIX 7.2?

    Posted Thu February 21, 2019 10:50 AM

    Originally posted by: AyappanP


    Okay, it's a doubt that comes to everybody. 

    There is a difference between the rpm.rte fileset version and the real rpm version.

    The real rpm version ( rpm source code from community) shipped is still 4.13.0.1.

    As a rte fileset for AIX, the version field is increased to "4.13.0.6" .

    I don't think AIX has five field versioning system that formed the reason behind this confusion.