01-14-2006
I believe that GNU tar allows you to specify an alternate root path.
The problem is that the tar file was created using an explicit path. An explicit path always starts with /, and means it starts from root. A relative path would be something like local/bin/wget when you have cd'd to /usr.
Tar files are best made relative, unless you want to insure the files are put back exactly where they came from (like a database). You can use 'tar -tvf' to show what files are stored, and evaluate the path before extracting.
hope that helps.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I am trying to write to a dat tape, using HP UX 10.20
tar: cannot open /dev/dat
not mounted ?
ioscan ? if so, then where ?
suggestions ?
thanks
simon (6 Replies)
Discussion started by: simon2000
6 Replies
2. Solaris
Hi,
When i am trying to untar a file for installation its showing an error like
tar -xvf te_agent__sparc.en_tar.gz
tar: directory checksum error
Please help me to solve this issue........... (10 Replies)
Discussion started by: Renjesh
10 Replies
3. AIX
Hello
Im trying to extract this file
tar -xvf opt-samba-base.tar.tar
tar: 0511-169 A directory checksum error on media; 0 not equal to 75420.
but I get that message
I tried algo with gunzip and uncompress but nothing happens
gunzip -d opt-samba-base.tar.tar
gunzip:... (2 Replies)
Discussion started by: lo-lp-kl
2 Replies
4. Ubuntu
I stumbled across a somewhat strange behavior of tar and find no explanation for it: i was testing a DVD for read errors and thought to simply tar the content and direct the output to /dev/null:
tar -cvf - /my/mountpoint/*ts > /dev/null
This way i expected the system to read the complete... (4 Replies)
Discussion started by: bakunin
4 Replies
5. Shell Programming and Scripting
Dears,
I have copied one compressed file from one directory to another directory
say finame.txt.tar.gz copied from FirstDirectory to SecondDirecory
cd FirstDirectory /
cp finame.txt.tar.gz SecondDirecory
cd SecondDirecory/
once i do gunzip to finame.txt.tar.gz it, the file got... (4 Replies)
Discussion started by: faiz
4 Replies
6. UNIX for Dummies Questions & Answers
Hi all,
I have a tar file that was done with tar -cvf <tar_file> /directory.
Is there any way that I can untar this, i.e. tar -xvf <tar_file> into a different directory?
So far Google said you can't do tar -xvf to a different directory.
Unfortunately, am not the one doing the tar -cvf... (9 Replies)
Discussion started by: newbie_01
9 Replies
7. Shell Programming and Scripting
Hi all,
I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Discussion started by: bashnewbee
1 Replies
8. UNIX for Advanced & Expert Users
Good afternoom,
I have a file very big, when I execute tar xvf XXXXXX_2010.tar, and show me this in the screen.
x XXXXXX_2010_(01_DE_18).ixf, 3330845041 bytes, 6505557 media blocks.
x XXXXXX_2010_(02_DE_18).ixf, 3336071703 bytes, 6515766 media blocks.
x XXXXXX_2010_(03_DE_18).ixf, 3333011013... (3 Replies)
Discussion started by: systemoper
3 Replies
9. Solaris
I have recently built a new server and patched Soalris 10 up tp latest bundle etc...
When I run a decompress using the format zcat fred.Z |tar -xvf - it runs at a very slow rate.
A similiar server which is less powerful runs over twice as quick.
Is there any work arounds to configure decompress... (4 Replies)
Discussion started by: smcart
4 Replies
LEARN ABOUT MOJAVE
vfs-filesystems
vfs-filesystems(n) vfs-filesystems(n)
__________________________________________________________________________________________________________________________________________________
NAME
vfs-filesystems - Filesystems provided by tclvfs
SYNOPSIS
package require Tcl 8.4
package require vfs ?1.2.1?
package require vfs::zip ?1.0?
package require vfs::mk4 ?1.6?
package require vfs::tar ?0.9?
package require vfs::ftp ?1.0?
package require vfs::ns ?1.0?
package require vfs::webdav ?0.1?
package require vfs::http ?0.5?
package require vfs::urltype ?1.0?
vfs::zip::Mount path to
vfs::mk4::Mount path to
vfs::tar::Mount path to
vfs::ftp::Mount path to
vfs::ns::Mount path to
vfs::webdav::Mount path to
vfs::http::Mount path to
vfs::urltype::Mount path to
_________________________________________________________________
DESCRIPTION
The package vfs provides not only the means to implement a virtual filesystem at the tcl level, but also a number of ready to be used
filesystems as well.
Each of these filesystem exists as its own package, and can be accessed through package require vfs::NAME. The whole set of these virtual
filesystems is known informally as 'vfslib'.
SUPPORTED VFS TYPES
Currently supported are ftp, tar, http, zip, mk4, ns, and webdav. In addition there is the ability to mount any 'urltype' as a new direc-
tory, provided an appropriate vfs is supported. This means that you can treat urls based on the schemes ftp://, http:// and file:// as
files. To do this, simply evaluate the command vfs::urltype::Mount ftp for example. Any access inside the new volume will result in an
attempt to require a package through package require vfs::${type}, which must therefore exist, or errors will be thrown. If a filesystem
is loaded, use the associated command listed below to mount a source for that filesystem as a tcl directory.
vfs::zip::Mount path to
Mount the zip file path as directory to.
vfs::mk4::Mount path to
Mount the metakit database file file path as directory to.
vfs::tar::Mount path to
Mount the tar file path as directory to.
vfs::ftp::Mount path to
Mount the ftp url path as directory to.
vfs::ns::Mount path to
Mount the tcl namespace path as directory to.
vfs::webdav::Mount path to
Mount the webdav url path as directory to.
vfs::http::Mount path to
Mount the http url path as directory to.
vfs::urltype::Mount path to
Mount the url path, of type urltype as directory to.
LIMITATIONS
Most of the vfs types listed above have not been very well debugged as yet. Please test them!
SEE ALSO
vfs, vfs-fsapi
KEYWORDS
file, filesystem, ftp, http, metakit, namespace, tar, vfs, vfslib, webdav, zip
COPYRIGHT
Copyright (c) 2001-2003 Vince Darley <vincentdarley@users.sourceforge.net>
Copyright (c) 2003 Andreas Kupries <andreas_kupries@users.sourceforge.net>
Tcl-level Virtual Filesystems 1.0 vfs-filesystems(n)