Thread: db2iprune
View Single Post

   
  #3 (permalink)  
Old 02-27-2008, 03:09 AM
Jean-Marc Blaise
 
Posts: n/a
Default Re: db2iprune

"Darin McBride" <dmcbride@naboo.to.org.no.spam.for.me> a écrit dans le
message de news:LHQYd.660992$6l.35593@pd7tw2no...
> Jean-Marc Blaise wrote:
>
> > Hi folks,
> >
> > When can we get the db2iprune command that is very usefull on Windows to
> > run also on Linux and Unix ?

>
> The db2iprune command on Linux and Unix is shipped with the OS: it's
> called "rm". On Sun and HP, you need the "-rf" parameter, but not on
> AIX or Linux.
>
> > The fixpacks are getting bigger and bigger and a command to remove
> > languages or components we don't need would be the most welcome. So that
> > it fits on a CD ... For example, on linux, keeping only french and

english
> > - manually (very painful and error not free) could reduce the size from
> > 710 Mb to 350 Mb.

>
> Simply remove the filesets from the image that you're not interested
> in. As long as they aren't actually required, this works just fine.
>
> Windows' db2iprune utility was created out of an inability to provide
> such a simple interface, so one was created.
>
> DB2 for Unix and Linux users have been doing this for years. You just
> need to make sure you don't delete anything you need. Which is not
> significantly different from db2iprune and deleting anything you need
> there.
>
> So, as an example, if you simply want to keep French and English, but
> remove all the other languages:
>
> perl -e 'for my $pkg (@ARGV) { unlink $pkg unless $pkg =~ /en|fr/i }'
> IBM_db2{ms,jh,ch}*.rpm
>
> (put all that on one line)
>
> This is complex solely because you gave a list of what you want to
> keep, rather than what you want to remove. If you want to remove all
> German and Polish support, just run:
>
> rm IBM_db2{ms,jh,ch}{de,pl}81*.rpm
>
> I'm not sure that this really is any more complicated (for a unix user)
> than db2iprune (for a windows user).


Hi Darin,

Thanks for your reply. The thing you don't mention about db2iprune is that
you work thru a list of components you uncomment to make them remove. Of
course, on windows, the CAB files have such a complicated name that you
cannot guess.

To remove on Unix or Linux for someone who doesn't know, you have to analyse
first all rpms or fileset and make a decision. Then, rm or whatever can be
used in a nutshell. For the example in the command you gave to remove Cerman
and Polish support it seems to me the rpm list is not complete in the
command you gave: IBM_db2{ms,jh,ch}*.rpm, what about IBM_db2de* ? Is it so
simple that anyone knows to remove chinese support, you should remove *cn*,
*Cn*, *CN* ?

Best regards,

Jean-Marc





Reply With Quote