baslinux AT lists.ibiblio.org
Subject: Baslinux mailing list
List archive
- 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
-
Re: [BL] printing in BL3 with wp
, (continued)
- Re: [BL] printing in BL3 with wp, 3aoo-cvfd, 02/25/2005
- Re: [BL] printing in BL3 with wp, sindi keesan, 02/25/2005
- Re: [BL] printing in BL3 with wp, sindi keesan, 02/25/2005
- [BL] smbmount I /O error, Jason Chall, 02/24/2005
- Re: [BL] How do I port scan myself? [Firewall testing], James Miller, 02/22/2005
- Re: [BL] How do I port scan myself? [Firewall testing], Carl Reaburn, 02/23/2005
- Re: [BL] How do I port scan myself? [Firewall testing], James Miller, 02/23/2005
- [BL] Automount command line or script!, listas, 02/23/2005
- Re: [BL] ipfwadm in BL3, 3aoo-cvfd, 02/22/2005
Archive powered by MHonArc 2.6.24.