Power

 View Only
Expand all | Collapse all

Install a 7-Zip Unpacking Tool on aix 7.1 server

  • 1.  Install a 7-Zip Unpacking Tool on aix 7.1 server

    Posted Mon March 06, 2023 09:54 AM

    Install a 7-Zip Unpacking Tool on aix 7.1 server
    please help with installation command and all the steps for it



    ------------------------------
    SIRISHA BEZAWADA
    ------------------------------


  • 2.  RE: Install a 7-Zip Unpacking Tool on aix 7.1 server

    Posted Tue March 07, 2023 12:57 PM

    Do you mean p7zip from https://www.ibm.com/support/pages/aix-toolbox-open-source-software-downloads-alpha ?

    As 7-Zip is not supported on AIX.

    Download the rpm then use rpm -Uhv p7zip-16.02-1.aix6.1.ppc.rpm

    If it has prerequisite packages, I recommend you first install dnf and then use dnf to install all the dependent packages with dnf install p7zip



    ------------------------------
    Nigel Griffiths
    ------------------------------



  • 3.  RE: Install a 7-Zip Unpacking Tool on aix 7.1 server

    Posted Wed March 08, 2023 01:21 AM
    I have tried to install 7zip using  rpm -Uhv p7zip-16.02-1.aix6.1.ppc.rpm , but it failed. please see the screenshot for the same and suggest further.
    Also please share steps, link to download for your below recommendation:
    If it has prerequisite packages, I recommend you first install dnf and then use dnf to install all the dependent packages with dnf install p7zip


    ------------------------------
    SIRISHA BEZAWADA
    ------------------------------



  • 4.  RE: Install a 7-Zip Unpacking Tool on aix 7.1 server

    Posted Thu March 09, 2023 04:45 AM

    You seem to give up quickly!

    Download the dnf bundle for your version of AIX from here https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/ezinstall/ppc/

    1. untar it.
    2. Run the script it includes - assumes you have Internet access.

    A good place to start for Open Source Toolbox hints https://www.ibm.com/support/pages/aix-toolbox-open-source-software-get-started

    Or start here https://community.ibm.com/community/user/power/blogs/sangamesh-mallayya1/2021/05/28/dnf-is-now-available-on-aix-toolbox



    ------------------------------
    Nigel Griffiths
    ------------------------------



  • 5.  RE: Install a 7-Zip Unpacking Tool on aix 7.1 server

    Posted Tue March 14, 2023 07:28 AM

    Hi Nigel,

    we tried to install dnf bundle package on aix server, it was successful. After that again tried to install p7zip package and its giving errors.

    Please refer screnshots and share your suggestions.

    image

     

     



    ------------------------------
    SIRISHA BEZAWADA
    ------------------------------



  • 6.  RE: Install a 7-Zip Unpacking Tool on aix 7.1 server

    Posted Wed March 15, 2023 05:10 AM

    The error is saying the /opt file system is too small.

    So, make it larger and try again.



    ------------------------------
    Nigel Griffiths
    ------------------------------



  • 7.  RE: Install a 7-Zip Unpacking Tool on aix 7.1 server

    Posted Wed March 15, 2023 05:53 AM

    demo42:root:/ # dnf list p7zip
    Last metadata expiration check: 1 day, 0:26:57 ago on Tue Mar 14 09:24:00 GMT 2023.
    Available Packages
    p7zip.ppc                                  16.02-1                                  AIX_Toolbox
    demo42:root:/ # dnf install p7zip
    Last metadata expiration check: 1 day, 0:27:10 ago on Tue Mar 14 09:24:00 GMT 2023.
    Dependencies resolved.
    ===============================================================================================
     Package             Architecture      Version                 Repository                 Size
    ===============================================================================================
    Installing:
     p7zip               ppc               16.02-1                 AIX_Toolbox               2.8 M

    Transaction Summary
    ===============================================================================================
    Install  1 Package

    Total download size: 2.8 M
    Installed size: 2.8 M
    Is this ok [y/N]: y
    Downloading Packages:
    p7zip-16.02-1.aix6.1.ppc.rpm                                   909 kB/s | 2.8 MB     00:03    
    -----------------------------------------------------------------------------------------------
    Total                                                          889 kB/s | 2.8 MB     00:03     
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Transaction test succeeded.
    Running transaction
      Preparing        :                                                                       1/1 
      Installing       : p7zip-16.02-1.ppc                                                     1/1 
      Verifying        : p7zip-16.02-1.ppc                                                     1/1 

    Installed:
      p7zip-16.02-1.ppc                                                                            

    Complete!

    demo42:root:/ # df -m
    Filesystem    MB blocks      Free %Used    Iused %Iused Mounted on
    /dev/hd4         512.00    452.67   12%     4241     4% /
    /dev/hd2        2560.00    396.43   85%    49829    33% /usr
    /dev/hd9var     1024.00    569.76   45%     1354     2% /var
    /dev/hd3         512.00    171.30   67%      228     1% /tmp
    /dev/hd1         512.00    509.24    1%       51     1% /home
    /dev/hd11admin    256.00    255.61    1%        5     1% /admin
    /proc                 -         -    -        -      - /proc
    /dev/hd10opt    1536.00    600.48   61%    14275    10% /opt
    /dev/livedump    256.00    255.64    1%        4     1% /var/adm/ras/livedump
    /ahafs                -         -    -       35     1% /aha
    demo42:root:/ # 



    ------------------------------
    Nigel Griffiths
    ------------------------------



  • 8.  RE: Install a 7-Zip Unpacking Tool on aix 7.1 server

    Posted Wed March 15, 2023 06:10 AM

    Check p7zip installed

    # rpm -qa | grep -i p7zip
    p7zip-16.02-1.ppc

    #

    Archive a file

    # 7za a arch.7z smit.log

    7-Zip (a) 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
    p7zip Version 16.02 (locale=en_US,Utf16=on,HugeFiles=on,64 bits,1 CPU BE)

    Scanning the drive:
    1 file, 583618 bytes (570 KiB)

    Creating archive: arch.7z

    Items to compress: 1

        
    Files read from disk: 1
    Archive size: 29399 bytes (29 KiB)
    Everything is Ok
    #

    List the archive

    # 7za l arch.7z         

    7-Zip (a) 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
    p7zip Version 16.02 (locale=en_US,Utf16=on,HugeFiles=on,64 bits,1 CPU BE)

    Scanning the drive for archives:
    1 file, 29399 bytes (29 KiB)

    Listing archive: arch.7z

    --
    Path = arch.7z
    Type = 7z
    Physical Size = 29399
    Headers Size = 122
    Method = LZMA2:768k
    Solid = -
    Blocks = 1

       Date      Time    Attr         Size   Compressed  Name
    ------------------- ----- ------------ ------------  ------------------------
    2022-12-16 15:50:04 ....A       583618        29277  smit.log
    ------------------- ----- ------------ ------------  ------------------------
    2022-12-16 15:50:04             583618        29277  1 files

    Extract a file

    # 7za e arch.7z   

    7-Zip (a) 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
    p7zip Version 16.02 (locale=en_US,Utf16=on,HugeFiles=on,64 bits,1 CPU BE)

    Scanning the drive for archives:
    1 file, 29399 bytes (29 KiB)

    Extracting archive: arch.7z
    --
    Path = arch.7z
    Type = 7z
    Physical Size = 29399
    Headers Size = 122
    Method = LZMA2:768k
    Solid = -
    Blocks = 1

    Everything is Ok

    Size:       583618
    Compressed: 29399
    #

    Print help information

    # 7za -?                

    7-Zip (a) 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
    p7zip Version 16.02 (locale=en_US,Utf16=on,HugeFiles=on,64 bits,1 CPU BE)

    Usage: 7za <command> [<switches>...] <archive_name> [<file_names>...]
           [<@listfiles...>]

    <Commands>
      a : Add files to archive
      b : Benchmark
      d : Delete files from archive
      e : Extract files from archive (without using directory names)
      h : Calculate hash values for files
      i : Show information about supported formats
      l : List contents of archive
      rn : Rename files in archive
      t : Test integrity of archive
      u : Update files to archive
      x : eXtract files with full paths

    <Switches>
      -- : Stop switches parsing
      -ai[r[-|0]]{@listfile|!wildcard} : Include archives
      -ax[r[-|0]]{@listfile|!wildcard} : eXclude archives
      -ao{a|s|t|u} : set Overwrite mode
      -an : disable archive_name field
      -bb[0-3] : set output log level
      -bd : disable progress indicator
      -bs{o|e|p}{0|1|2} : set output stream for output/error/progress line
      -bt : show execution time statistics
      -i[r[-|0]]{@listfile|!wildcard} : Include filenames
      -m{Parameters} : set compression Method
        -mmt[N] : set number of CPU threads
      -o{Directory} : set Output directory
      -p{Password} : set Password
      -r[-|0] : Recurse subdirectories
      -sa{a|e|s} : set Archive name mode
      -scc{UTF-8|WIN|DOS} : set charset for for console input/output
      -scs{UTF-8|UTF-16LE|UTF-16BE|WIN|DOS|{id}} : set charset for list files
      -scrc[CRC32|CRC64|SHA1|SHA256|*] : set hash function for x, e, h commands
      -sdel : delete files after compression
      -seml[.] : send archive by email
      -sfx[{name}] : Create SFX archive
      -si[{name}] : read data from stdin
      -slp : set Large Pages mode
      -slt : show technical information for l (List) command
      -snh : store hard links as links
      -snl : store symbolic links as links
      -sni : store NT security information
      -sns[-] : store NTFS alternate streams
      -so : write data to stdout
      -spd : disable wildcard matching for file names
      -spe : eliminate duplication of root folder for extract command
      -spf : use fully qualified file paths
      -ssc[-] : set sensitive case mode
      -ssw : compress shared files
      -stl : set archive timestamp from the most recently modified file
      -stm{HexMask} : set CPU thread affinity mask (hexadecimal number)
      -stx{Type} : exclude archive type
      -t{Type} : Set type of archive
      -u[-][p#][q#][r#][x#][y#][z#][!newArchiveName] : Update options

      -v{Size}[b|k|m|g] : Create volumes
      -w[{path}] : assign Work directory. Empty path means a temporary directory
      -x[r[-|0]]{@listfile|!wildcard} : eXclude filenames
      -y : assume Yes on all queries

    #



    ------------------------------
    Nigel Griffiths
    ------------------------------



  • 9.  RE: Install a 7-Zip Unpacking Tool on aix 7.1 server

    Posted Thu March 16, 2023 06:11 AM

    Hi Nigel,

    thank you very much for all your inputs on this.

    still issue remains the same.  Is reboot required after pzip rpm installtion?

     I have a request you to schedule a meeting through webex or teams meeting if there is any possibility, So that it will be easy for us to explain the exact issue by sharing our screen. 

    Regards,

    Sirisha.



    ------------------------------
    SIRISHA BEZAWADA
    ------------------------------



  • 10.  RE: Install a 7-Zip Unpacking Tool on aix 7.1 server

    Posted Wed March 15, 2023 08:40 AM

    We have installed dnf_bundle_aix_71_72 and again dnf_bundle. But dnf is not showing and checking which command. Getting below errror.

    Please check and confirm.

    # dnf list p7zip
    ksh: dnf:  not found
    # which dnf
    no dnf in /krb5/install/bin/64 /krb5/admin/bin/64 /krb5/sbin/64 /krb5/bin/64 /usr/bin /etc /usr/sbin /usr/ucb /usr/bin/X11 /sbin /usr/java14_64/jre/bin /usr/java14_64/bin

    We have enough space on /opt filesystem.

    # df -g /opt
    Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on
    /dev/hd10opt      12.62     11.80    7%    11597     1% /opt



    ------------------------------
    Rajkumar Pandian
    ------------------------------



  • 11.  RE: Install a 7-Zip Unpacking Tool on aix 7.1 server

    Posted Thu March 16, 2023 12:11 PM

    Put /opt/freeware/bin/ in your root $PATH



    ------------------------------
    Nigel Griffiths
    ------------------------------



  • 12.  RE: Install a 7-Zip Unpacking Tool on aix 7.1 server

    Posted Wed March 15, 2023 09:50 AM

    7-Zip 16.02 Sources

    -------------------

     

    7-Zip is a file archiver for Windows.

     

    7-Zip Copyright (C) 1999-2016 Igor Pavlov.

     

     






  • 13.  RE: Install a 7-Zip Unpacking Tool on aix 7.1 server

    Posted Wed March 15, 2023 09:53 AM

    https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/LICENSES/Info-ZIP.html

     

    get zip from this url

     

    https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox






  • 14.  RE: Install a 7-Zip Unpacking Tool on aix 7.1 server

    Posted Tue March 14, 2023 09:54 AM

    Hi 

    We have tried to install the package. But getting below error and increased the size of /opt filesystem. But still the same issue.



    ------------------------------
    Rajkumar Pandian
    ------------------------------



  • 15.  RE: Install a 7-Zip Unpacking Tool on aix 7.1 server

    Posted Tue March 14, 2023 09:54 AM

    Hi Nigel,

    We have tried to installed the dnf_bundle package on the server and getting below error.



    ------------------------------
    Rajkumar Pandian
    ------------------------------



  • 16.  RE: Install a 7-Zip Unpacking Tool on aix 7.1 server

    Posted Thu March 16, 2023 12:26 PM

    Create an AIX  Open Source Toolbox repository

    Go to https://www.ibm.com/support/pages/node/6585774

    and take the last link on the page - also read the messages on that page.



    ------------------------------
    Nigel Griffiths
    ------------------------------