[lug] rpm build question

Zan Lynx zlynx at acm.org
Wed Dec 11 14:46:50 MST 2002


On Wed, 2002-12-11 at 14:36, Michael J. Hammel wrote:
[snip]
> There are a number of ways to handle this situation.  For a man page one
> of the simplest would be to check for the existance of the man page in
> the pre-install and, if it exists, move it out of the way.  After you
> package is installed, you can check for the old version and, if it's
> there, move your version to a saved location and the move the old one
> back.  That way other packages won't break.  Your package's removal
> script can then check for you version of the man page as (for example)
> manpage.mypackage and, if it exists, remove that instead of the real man
> page (possibly by using the temporary move trick you used during
> installtion - but in reverse).
> 
> Lots of trickery like this can be done with man pages.  With binaries it
> might be more difficult depending on how often the binary is used.

I dislike doing this because the RPM will not verify properly after the
installation scripts move things around.  I also like to be able to
query RPM for the package owner of a file and get a true answer.

But there are many ways to do it.  I don't have the One True Way :-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20021211/a765954e/attachment.pgp>


More information about the LUG mailing list