ITPub博客

首页 > Linux操作系统 > Linux操作系统 > AIX下打开CPIO.GZ文件操作办法

AIX下打开CPIO.GZ文件操作办法

原创 Linux操作系统 作者:perfychi 时间:2013-01-01 09:32:36 0 删除 编辑

引用:http://tonnyxs.blog.163.com/blog/static/27937985201272744553629/

参数参考网址:http://baike.baidu.com/view/2524122.htm

上传安装文件CPIO文件格式,需要进行 解压缩。需要使用gunzip和cpio命令进行文件解压缩。几个常见的错误都遇到了,使用gunzip时报错,需要重传文件,注意以Bin的方式。另外 再用cpio时,也要注意加正常的参数。

 

  #gunzip 文件名.cpio.gz

 

  这样文件就解压成为 "文件名.cpio" 了,然后再对它进行cpio操作

 

  #cpio –idmv < 文件名.cpio

 

   

# gunzip 10gr2_aix5l64_database.cpio.gz

 

gunzip: 10gr2_aix5l64_database.cpio.gz: unexpected end of file

解决办法:用FTP以二进制方式重新上传安装文件。

 

注意如果cpio命令不加 "<"符号。

cpio -idmv 10gr2_aix5l64_database.cpio

则会一直挂 在这里,不报错也没有其他提示

 

 

执行CPIO时的报错

# cpio -idmv < 10gr2_aix5l64_database.cpio

 

cpio: 0511-903 Out of phase!

cpio attempting to continue...

 

 

cpio: 0511-904 skipping 732944 bytes to get back in phase!

One or more files lost and the previous file is possibly corrupt!

 

cpio: 0511-027 The file name length does not match the expected value.

 

# man cpio
c Reads and writes header information in ASCII character form. If a cpio archive was created using the c flag, it must be extracted with c flag.

加上参数c就OK了。

 

#cpio -idmvc < 10gr2_aix5l64_database.cpio

 

则可以看到文件被正常解开。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/27042095/viewspace-751964/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: Aix 上NFS详细介绍
请登录后发表评论 登录
全部评论

注册时间:2012-06-06

  • 博文量
    484
  • 访问量
    2976213