[openfabrics-ewg] Aborting install removes OFED sources

Jeff Squyres (jsquyres) jsquyres at cisco.com
Tue May 9 05:55:38 PDT 2006


> -----Original Message-----
> From: Vladimir Sokolovsky [mailto:vlad at mellanox.co.il] 
> Sent: Tuesday, May 09, 2006 8:51 AM
> To: Jeff Squyres (jsquyres)
> Cc: openfabrics-ewg at openib.org
> Subject: Re: [openfabrics-ewg] Aborting install removes OFED sources
> 
> OFED can remove installation prefix directory except /usr, /bin, 
> /usr/local, /usr/bin, /opt /root, /.
> I will update this mechanism...

I think we need to be more careful than that.  OFED should remove only
*exactly* what it installed.  This is how real installers/uninstallers
work -- they keep a list of files that were installed or created and
then remove them.  

"rm -rf <some_dir>" should absolutely not be an option.  If we start
building in "remove all of this except A, B, C, ..." you're going to run
into some whacky case where a user has some directory or file that
you're not expecting, and therefore won't be in the "except A, B, C,
..." list -- and OFED will remove it.

Why is "rm -rf" being used, anyway?  Shouldn't "rpm -e ..." be
sufficient?

-- 
Jeff Squyres
Server Virtualization Business Unit
Cisco Systems



More information about the ewg mailing list