[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Handling raw files



Rik Burt (rikb@home.com) wrote:

> I have figured out how to get the raw tar.gz files for the dpkg
> package.

Do you mean the file data.tar.gz?  Or did you download source code?

> How do I know where to put these files once I get them
> ungzipped and untarred?

`tar tzvf data.tar.gz' will give you a table of contents.  For example,
if I do this on the data.tar.gz file from ae_962-23_i386.deb:

  jekyll:~$ tar tzvf data.tar.gz 
  drwxr-xr-x root/root         0 1999-04-17 13:48:11 ./
  drwxr-xr-x root/root         0 1999-04-17 13:48:11 usr/
  drwxr-xr-x root/root         0 1999-04-17 13:48:10 usr/doc/
  drwxr-xr-x root/root         0 1999-04-17 13:48:11 usr/doc/ae/
  [...]

As you can infer, this is a listing which is relative to the root
directory.  So:

  tar -xzv -C / -f data.tar.gz

will extract the contents of the file in the root directory.

Please note that you should *only* do this in an emergency!

-- 
Greg Wooledge                    | "Truth belongs to everybody."
wooledge@kellnet.com             |   Red Hot Chili Peppers,
http://www.kellnet.com/wooledge/ |

Attachment: pgpnKBmHfVbyl.pgp
Description: PGP signature


Reply to: