AIX下如何解压缩zip文件

来源:互联网 发布:手机木马软件 编辑:程序博客网 时间:2024/05/16 19:13
from:http://blog.chinaunix.net/uid-77311-id-3318868.html

环境:
OS:AIX 5.3
 
  今天需要解压缩oracle安装文件,发现aix下没有unzip命令,aix默认是不安装unzip的,看来需要自己安装了.

1.首先检查是否安装如下包,若没有安装的话需要从安装介质中安装
lslpp -l |grep -i rpm.rte
lslpp -l |grep -i rpm.rte
就可以像linux那样使用rpm命令来安装软件包了.

2.下载gzip和unzip软件包
下载gzip包,5.2 、5.3都可用官网下载地址:ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/gzip/gzip-1.2.4a-10.aix5.2.ppc.rpm
下载unzip包,地址:ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/unzip/unzip-5.51-1.aix5.1.ppc.rpm
下载完成后将如上两个安装包上传到服务器上,这里我是存放在/soft目录下

3.分别安装gzip和unzip软件
#smitty install选择刚才下载的两个包
                                Install Software
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
                                                        [Entry Fields]
* INPUT device / directory for software               /soft
* SOFTWARE to install                                [gzip-1.2.4a          > +
  PREVIEW only? (install operation will NOT occur)    no                     +
  COMMIT software updates?                            yes                    +
  SAVE replaced files?                                no                     +
  AUTOMATICALLY install requisite software?           yes                    +
  EXTEND file systems if space needed?                yes                    +
  OVERWRITE same or newer versions?                   no                     +
  VERIFY install and check file sizes?                no                     +
  Include corresponding LANGUAGE filesets?            yes                    +
  DETAILED output?                                    no                     +
  Process multiple volumes?                           yes                    +
  ACCEPT new license agreements?                      no                     +
  Preview new LICENSE agreements?                     no                     +
 
F1=Help             F2=Refresh          F3=Cancel           F4=List
F5=Reset            F6=Command          F7=Edit             F8=Image         
F9=Shell            F10=Exit            Enter=Do             
                                Install Software
Type or select values in entry fields.      
Press Enter AFTER making all desired changes.
                                                        [Entry Fields]
* INPUT device / directory for software               /soft
* SOFTWARE to install                                [unzip-5.51           > +
  PREVIEW only? (install operation will NOT occur)    no                     +
  COMMIT software updates?                            yes                    +
  SAVE replaced files?                                no                     +
  AUTOMATICALLY install requisite software?           yes                    +
  EXTEND file systems if space needed?                yes                    +
  OVERWRITE same or newer versions?                   no                     +
  VERIFY install and check file sizes?                no                     +
  Include corresponding LANGUAGE filesets?            yes                    +
  DETAILED output?                                    no                     +
  Process multiple volumes?                           yes                    +
  ACCEPT new license agreements?                      no                     +
  Preview new LICENSE agreements?                     no                     +
 
F1=Help             F2=Refresh          F3=Cancel           F4=List
F5=Reset            F6=Command          F7=Edit             F8=Image          
F9=Shell            F10=Exit            Enter=Do                    

4.安装完成后就可以解压缩zip压缩文件了
#unzip aix.ppc64_11gR2_grid.zip  -d  ./grid

如上命令是将zip文件加压缩到当前目录下的grid目录下
 
-- The End --
原创粉丝点击