Skip to content
Home » AIX » How AIX UNZIP Files

How AIX UNZIP Files

AIX unzip

I found there's no unzip utility available in AIX 7.2.

$ which unzip
which: 0652-141 There is no unzip in /usr/bin /etc /usr/sbin /usr/ucb /home/oracle/bin /usr/bin/X11 /sbin .

To get handy unzip command, we have 2 options to install it.

1. Yum

If your server do have yum utility and repositories, you can install unzip package like this.

# yum -y install unzip
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package unzip.ppc 0:6.0-3 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================
 Package       Arch        Version         Repository           Size
=====================================================================
Installing:
 unzip         ppc         6.0-3           AIX_Toolbox         353 k

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

Total download size: 353 k
Installed size: 353 k
Downloading Packages:
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : unzip-6.0-3.ppc                                   1/1

Installed:
  unzip.ppc 0:6.0-3

Complete!

If you don't have any yum repository, let's move on.

2. Rpm

After doing some research, I know we need to install unzip from AIX toolbox, which contains a collection of open source and GNU software built for AIX IBM Systems.

Download unzip RPM

First of all, we need to download unzip RPM from AIX toolbox to server.

Install unzip RPM

Then use rpm to install unzip. In this case, the package I got is unzip-6.0-3.aix6.1.ppc.rpm.

# rpm -ivh unzip-6.0-3.aix6.1.ppc.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:unzip-6.0-3                      ################################# [100%]

Check unzip Utility

# which unzip
/usr/bin/unzip
# rpm -q unzip
unzip-6.0-3.ppc

Now, we can use unzip to uncompress zip files (*.zip).

Leave a Reply

Your email address will not be published. Required fields are marked *