The syntax to remove a directory from a tar ball is as follows:
OR
tar --delete -f file.tar 'path1/dir1'
To delete a directory called etc/security from a foo.tar, enter:
tar --delete -f file.tar 'dir1'
$ tar --delete -f foo.tar 'etc/security'
Verify that directory has been deleted from the foo.tar ball, enter:
$ tar -tvf foo.tar | less
OR
$ tar -tvf foo.tar | grep 'etc/security'
No comments:
Post a Comment