上传安装文件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
附:部分压缩文件的解压方式
.gz | gzip –d 或 gunzip | gzip |
.Z | uncompress | compress |
.tar | tar -xvf | tar –cvf |
.cpio | cpio -idumv cpio -idmvc |
|
.zip | unzip 或 jar -xvf |
|
*.tar.gz | gzip -dc *.tar.gz | tar xvf - |
|
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/31392094/viewspace-2140884/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/31392094/viewspace-2140884/