Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tar unpacking problem in FC4

Status
Not open for further replies.

stfaprc

Programmer
Feb 10, 2005
216
US
version 1.15.1
tar --help says:
Code:
Operation modifiers:
  -k, --keep-old-files       don't replace existing files when extracting
but when I try it the result is:
[ls2 /]# tar -zxvf -k /home/loger/netBU/move/net_home.tar.gz
tar: -k: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: /home/loger/netBU/move/net_home.tar.gz: Not found in archive
tar: Error exit delayed from previous errors
[ls2 /]# tar -zxvf --keep-old-files /home/loger/netBU/move/net_home.tar.gz
tar: --keep-old-files: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: /home/loger/netBU/move/net_home.tar.gz: Not found in archive
tar: Error exit delayed from previous errors
for some reason it is looking for a file named "k" or "keep-old-files" instead of unpacking and skipping existing files. What gives?
 
In other words, it expects the tar filename to immediately follow the -f option.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top