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: "Carl Reaburn" <carlreaburn AT attech.net.au>
  • To: <baslinux AT lists.ibiblio.org>
  • Subject: Re: [BL] ipfwadm in BL3
  • Date: Tue, 22 Feb 2005 13:30:02 +1100

----- Original Message ----- From: <3aoo-cvfd AT dea.spamcon.org>
To: <baslinux AT lists.ibiblio.org>
Sent: Tuesday, February 22, 2005 7:39 AM
Subject: Re: [BL] ipfwadm in BL3


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. You need to remove the data that
preceeds the filename (otherwise rm and rmdir will barf).
The rmdir will only delete the bottom directory of each
subtree (you can get around this by running it again and
again).


I know this may be a cardinal sin.

I imported the manifest file into excel. trimmed off the first few columns. inserted a column of "rm" in front of the file names. Saved it at space delimited text file. Copied it to the BL3 machine and ran it! bye bye to all the files installed. :)

I then installed the correct version of the package and now ipchains is working just fine :)

Judging by the discussion over how to uninstall a package I suspect the pkg command needs an uninstall option added to it. It should not be too difficult to use the tgz file as a list of files to remove, rather than add. The hard part will be knowing if the empty directories were there before the install, and if they should be removed or not.






Archive powered by MHonArc 2.6.24.

Top of Page