AIX Open Source

 View Only
  • 1.  cp command -a option

    Posted 25 days ago

    Installing on AIX from MetaCpan I've run into a module that uses the cp command with the -a option.  Linux manpage says it is an archive option.  AIX does not appear to support the -a option.

    Is there a open version of cp in the toolbox that supports this option?

    Thanks for you assistance.



    ------------------------------
    Jim Rinn
    ------------------------------


  • 2.  RE: cp command -a option

    Posted 24 days ago

    Yes, you can install coreutils rpm from AIX Toolbox , which provides open source version of cp. 



    ------------------------------
    Ayappan P
    ------------------------------



  • 3.  RE: cp command -a option

    IBM Champion
    Posted 24 days ago

    After you installed coreutils and before you call CPAN or this module you should either:

    • temporarily change your PATH variable and include /opt/freeware/bin as your first directory into PATH
    • create an alias cp to /opt/freeware/bin/cp and unalias it later after you don't need it
    • patch the module to use /opt/freeware/bin/cp directly


    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com
    ------------------------------