Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Build an rpm with install/uninstall conditions

7 views
Skip to first unread message

Jeff

unread,
Nov 8, 2010, 2:06:55 PM11/8/10
to
I hope this is the proper place to post this question. I'm working on
a tomcat rpm that includes additional helper scripts and files. One of
them is /etc/tomcat/tomcat.conf That file will help me illustrate my
install/uninstall problems

INSTALL:
I would like the rpm to NOT install that file if it exists.

UNINSTALL:
Once that file is installed, I don't want rpm --erase to remove it

I can think of kludgy ways to do that but there's probably a "right"
way or a better way.

TIA,
Jeff

Michal Jaegermann

unread,
Nov 8, 2010, 8:57:52 PM11/8/10
to
Jeff <joes...@gmail.com> wrote:
>
> INSTALL:
> I would like the rpm to NOT install that file if it exists.

http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch09s05s03.html
"Marking files as documentation or configuration files". Surprise!

> UNINSTALL:
> Once that file is installed, I don't want rpm --erase to remove it

Modified config files on a package removal go into .rpmsave files.
Maybe you can hack with %ghost but I am not sure what results of that
will be. Just experiment on a small sample.

Michal

0 new messages