remove packages from modules 

http://wolvix.org/node/583

Here are a few tips on how to remove packages from modules rather easily and quickly. It might be the method you use, but it seems to me, by what you writ,e that you just remove files you find an not the entire package(s).

Here's how I do it (Wolvix 1.1.0):

  1. Extract the module to a temporary directory:

    lzm2dir name_of_module.lzm tempdirectory/
  2. Inside the 'tempdirectory/' look for the var/log/packages/ folder. Inside it is a list of all packages which have been installed to the module. Since the packages have been installed to the modules we can uninstall them with the 'removepkg' command, just like you would on Slackware, but there's a little trick to it. You have to use the 'ROOT=' parameter. Here's an example:

    ROOT=tempdirectory/ removepkg name_of_package

The 'ROOT=' parameter tells the system to remove the package from the target directory and not from the system it self.

You can also remove several packages at once:

ROOT=tempdirectory/ removepkg audacious streamtuner mplayer

Once one or more packages have been removed from the module, look in tempdirectory/var/log/removed_packages and tempdirectory/var/log/removeed_scripts. In those dirs you'll see the list of removed packages and scripts. You don't need those files anymore, so you can just delete them if you want. They are just log files.

2007-06-06, wolven