[lug] rpm and temp files

Pete Krawczyk pak at unixdba.com
Tue Dec 12 12:35:04 MST 2000

D. Stimits wrote:

> I'm wondering if there is a simple way in "rpm --rebuild" to tell
> it to use rm -f instead of just rm?

You could either try to re-alias rm for rpm:
   alias rm "rm -f" # not wise :-)
or you could put a dir in your path,
   export PATH=`pwd`:$PATH
create your own rm,
   echo '#!/bin/sh' > rm
   echo '/bin/rm -f $*' >> rm
   chmod +x rm
and re-run rpm.

I'm not guaranteeing either of these will work, but those would be my 
avenues.  Remember, rpm just takes the specfile and runs the commands 
therein.  And most specfiles I've seen don't specifically set the paths to 
the commands they run unless they have to.

-Pete K
Pete Krawczyk
   UNIX/RDBMS Administrator
   Absolute Performance
   pak at unixdba.com

More information about the LUG mailing list