10201 Database Linux X86 64.Cpio.Gz

/ Comments off

How to extract. How to extract. File QR Code. Home Premium Link to Us Search. 在linux下装oracle的时候发现了自己不会操作后缀为.cpio.gz文件,后来在网上查了一下,发现了它的解决方法,现写出来供大家参考: 首先,该文件是一个经过压缩的文件,当然要先解压了,这些大家都非常清楚的,就是用#gunzip 文件名.cpio.gz这样文件就解压成为.

I've received a Unix software distribution as a compressed cpio file. What's the best command to extract the files?

Mark HarrisonMark Harrison

migrated from stackoverflow.comAug 28 '09 at 1:28

How to open mysql database linux

This question came from our site for professional and enthusiast programmers.

10201_database_linux_x86_64.cpio.gz Download

4 Answers

  • i : extract (input)
  • d : create directories
  • m : preserve mtime
  • v : verbose
Mark HarrisonMark Harrison

While this is an old question, it shows up high on Google, so I thought I might update it. I agree with the accepted answer in general, but you should add '--no-absolute-filenames' unless you are intending to overwrite important system files on your machine. Also, personally, I prefer 'zcat' over 'gzip -cd' or 'gunzip -c'.

Finally, note that you need to run cpio as root (e.g. sudo) if you are extracting a root filesystem that contains device nodes.

MattMatt

This Wikipedia page on cpio has some good notes.
For more details, refer to the cpio manual.

A link from the same Wikipedia page discusses comparison with tar archives.
And, here is an example of using cpio with the tar format.

niknik

For example, to extract the archived contents of /etc/httpd/ to the current directory, creating subdirectories ./etc/httpd/

The accepted answer and Matt's were both helpful to me but I was stumped for a while because of three details:

Linux

  1. The matching pattern needs to be quoted to work as a pattern :P
  2. The option --no-absolute-filenames must precede the pattern on the command line
  3. Since that option removes the leading / from filenames, the matching pattern must also omit the leading /
Chris D'AmatoChris D'Amato

10201_database_linux_x86_64.cpio.gz Ftp

Not the answer you're looking for? Browse other questions tagged cpio or ask your own question.