Command to remove existing files in the tar files in Solaris 10

Hi,
I am using solaris 10 OS.Please help me out with the commands needed in below two scenarios.

1)How to delete the existing files in the tar file.

suppose i have a main tarfile named application.tar and it contains a file called ingres.tar .
what is the command to remove ingres.tar from the main application.tar file

2)What is the command to see specific files in the tar file.

suppose i have tar file named application.tar which contains solarisstudio.tar .i have used

tar -tvf tarfile name

.but my main tar file application.tar contains so many files.so i am not able to figure out whethere a specific file exists or not.

Appreciate your response on it.

---------- Post updated at 06:13 AM ---------- Previous update was at 05:11 AM ----------

Any response on the above mentioned query?

Try:

  1. Normally it is not possible to delete a file from a tape archive. Some tars may have a special option. Otherwise the archive would need to be recreated.
  2. Try:
tar tvf tarfile '*solarisstudio.tar'

1) The pax command can do it.

man pax
pax -w -c "ingres.tar" < application.tar > newapplication.tar

newapplication.tar is the same as application.tar but the file ingres.tar