Wednesday, November 18, 2015

Extracting a .zip file using unzip command in IBM AIX


Unzip utility is not installed in IBM AIX by default. And also it can not be installed using apt-get, as we do in Linux OS.

Here is a step by step guide to install unzip in IBM AIX.

Step 01

Visit http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/alpha.html and download the rpm for unzip. (unzip-5.51-1.aix5.1.ppc.rpm )

Step 02

Run the following command to install unzip feature in AIX

rpm -ivh unzip-5.51-1.aix5.1.ppc.rpm

You will get the following output.

l490vp017_pub[/home/u0013155] > rpm -ivh unzip-5.51-1.aix5.1.ppc.rpm

unzip                       ##################################################

Step 03

Type unzip and check whether it is installed correctly.

l490vp017_pub[/home/u0013155] > unzip
UnZip 5.51 of 22 May 2004, by Info-ZIP.  Maintained by C. Spieler.  Send
bug reports using http://www.info-zip.org/zip-bug.html; see README for details.

Usage: unzip [-Z] [-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]
  Default action is to extract files in list, except those in xlist, to exdir;
  file[.zip] may be a wildcard.  -Z => ZipInfo mode ("unzip -Z" for usage).

  -p  extract files to pipe, no messages     -l  list files (short format)
  -f  freshen existing files, create none    -t  test compressed archive data
  -u  update files, create if necessary      -z  display archive comment
  -x  exclude files that follow (in xlist)   -d  extract files into exdir

modifiers:                                   -q  quiet mode (-qq => quieter)
  -n  never overwrite existing files         -a  auto-convert any text files
  -o  overwrite files WITHOUT prompting      -aa treat ALL files as text
  -j  junk paths (do not make directories)   -v  be verbose/print version info
  -C  match filenames case-insensitively     -L  make (some) names lowercase
  -X  restore UID/GID info                   -V  retain VMS version numbers
                                             -M  pipe through "more" pager
Examples (see unzip.txt for more info):
  unzip data1 -x joe   => extract all files except joe from zipfile data1.zip
  unzip -p foo | more  => send contents of foo.zip via pipe into program more
  unzip -fo foo ReadMe => quietly replace existing ReadMe if archive file newer

Step 04

Use unzip command to extract the .zip file.

unzip wso2esb-4.8.1.zip


I will guide you on how to install IBM JDK in IBM AIX. 


0 comments:

Post a Comment