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.  some yum subcommands put /var in read-only mode

    Posted Fri March 24, 2023 03:59 PM

    Does anyone facing  the following problem ? 
    When I use some  yum subcommands, it puts /var in read-only mode! 
    Example: 
    X064# yum version
    Warning: RPMDB altered outside of yum.
    Installed: $releasever/ppc                              79:dc12a6c9c7ca19fb5796affef57a19d9b6ec6fb9
    Group-Installed: yum                                    7:55d66bf6e25f6717bd180900fdc4d184af87437e
    version
    Traceback (most recent call last):
      File "/usr/bin/yum", line 32, in <module>
        yummain.user_main(sys.argv[1:], exit_code=True)
      File "/opt/freeware/share/yum-cli/yummain.py", line 288, in user_main
        errcode = main(args)
      File "/opt/freeware/share/yum-cli/yummain.py", line 156, in main
        if unlock(): return 200
      File "/opt/freeware/share/yum-cli/yummain.py", line 74, in unlock
        base.doUnlock()
      File "/opt/freeware/lib/python2.7/site-packages/yum/__init__.py", line 1838, in doUnlock
        self._unlock(lockfile)
      File "/opt/freeware/lib/python2.7/site-packages/yum/__init__.py", line 1859, in _unlock
        misc.unlink_f(filename)
      File "/opt/freeware/lib/python2.7/site-packages/yum/misc.py", line 939, in unlink_f
        os.unlink(filename)
    OSError: [Errno 30] The file system has read permission only.: '/var/run/yum.pid'

    the same behaviour when running for example: 
    yum clean all or yum history 
    NB: of course with /var having read only permission, unable to create the /var/run/yum.pid, etc... 

    version installed: 
    Name        : yum-metadata-parser
    Version     : 1.1.4
    Release     : 2

    Name        : yum
    Version     : 3.4.3
    Release     : 7

    Name        : yum-utils
    Version     : 1.1.31
    Release     : 2

    Thanks in advance for your help

    Michel 



    ------------------------------
    michel Eymard
    ------------------------------

    #AIXOpenSource


  • 2.  RE: some yum subcommands put /var in read-only mode

    Posted Fri March 24, 2023 04:05 PM
    Two thoughts:
    • Fix the permissions, and record them before and after the run
    • What is the root user's UMASK?

    -- 
    Stephen L. Ulmer
    Enterprise Architect
    Mainline Information Systems








  • 3.  RE: some yum subcommands put /var in read-only mode

    Posted Mon March 27, 2023 09:30 AM

    DNF is replacing yum.