Skip to Content.
Sympa Menu

baslinux - Re: [BL] ipfwadm in BL3

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: "David Moberg" <davidjmoberg AT lycos.com>
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] ipfwadm in BL3
  • Date: Mon, 21 Feb 2005 22:27:55 -0500

----- Original Message -----
From: 3aoo-cvfd AT dea.spamcon.org

> David Moberg wrote:
> >
> > You can automatically remove packages with this command sequence:
> > cd /
> > rm -f `tar -ztf /full/path/to/package.tgz`
> > rmdir `tar -ztf /full/path/to/package.tgz`
>
> Couple of problems with those. You need the -v parameter
> to get the filelist.

Under the list of options in my Busybox tar (tar --help) I see:

t list

In GNU tar, I see:

-t, --list list the contents of an archive

If I run the following command to create a tarball:

tar -zcf new.tar.gz file1 file2 file3 directory1

(directory1 being an empty directory) and then run

tar -ztf new.tar.gz

I get the following as output:

file1
file2
file3
directory1/

Why exactly is the v option necessary?

> You need to remove the data that preceeds the filename
> (otherwise rm and rmdir will barf).

I only get that data when I add the v option, which doesn't
seem necessary.

> The rmdir will only delete the bottom directory of each
> subtree (you can get around this by running it again and
> again).

Woops, I missed that one. Running it again and again would be
easier with a shell script, no?

I'm a little confused about these tar options, could you please
clarify how they work?

Thanks,
David
--
_______________________________________________
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10





Archive powered by MHonArc 2.6.24.

Top of Page