[Rpm-maint] RPM won't install unless I specify --noscripts

James Olin Oden james.oden at gmail.com
Thu Dec 21 15:34:30 UTC 2006


On 12/21/06, Edward Quick <edwardquick at hotmail.com> wrote:
> Hi,
>
> I'm trying to install an RPM I've built on Redhat onto a Solaris 8
> (Sparc) box, and the only way I can get it to install anything is if I
> issue it with the --noscripts flag:
>
> rpm --nodeps --ignoreos --ignorearch --noscripts --install
> apache-instance-ohdev04-1-1.i386.rpm
<snip>
> rpm -qp --scripts  apache-instance-ohdev04-1-1.i386.rpm
> preinstall script (through /bin/sh):
> #
> # Add the "apache" user & group
> #
> /usr/sbin/groupadd ohadmin \
>         2> /dev/null || :
> /usr/sbin/useradd -c "File owner for oh" -g ohadmin ohadmin \
>         2> /dev/null || :
> /usr/sbin/groupadd ohapache \
>         2> /dev/null || :
> /usr/sbin/useradd -c "Apache for oh" -g ohapache ohapache \
>         2> /dev/null || :
> postinstall script (through /bin/sh):
> /oh/apache/ohdev04/bin/.install/post-install
> preuninstall script (through /bin/sh):
> /oh/apache/ohdev04/bin/.install/pre-uninstall
>

What error message are you getting?  Note that the apache scripts you
are calling have a return code and since its the last command to run
in you %post and %preun scriptltes that is the return code rpm is
going to get.

Lastly, this is an RPM maintentenance list, that is its more of a
development list, such that your post is off topic.    You want to
send this sort of thing to rpm-list at redhat.com.

Good luck...james
>



More information about the Rpm-maint mailing list