Discussion:
Rpmbuild problem
Ferris, John
2008-06-18 15:05:10 UTC
Permalink
Hello,
I'm new to rpmbuilding, and have not been able to find the information
to fix the problem I am having. I'm trying to build an RPM that runs two
scripts as it's installation. While the rpm is building, it is able to
run the scripts and install the software, but after, all it does is
unpackage the software into specific folders, never running the scripts.
Does this mean that RPM's can't run scripts on the fly? Also, the
scripts require user input...will that be possible? Thank you in advance
for your help.
John
diego bowen
2008-06-18 16:54:00 UTC
Permalink
Use "makeself"
 
http://www.megastep.org/makeself/
 
 
Let me know how it works...

--- On Wed, 6/18/08, Ferris, John <***@gdc4s.com> wrote:

From: Ferris, John <***@gdc4s.com>
Subject: Rpmbuild problem
To: rpm-***@redhat.com
Date: Wednesday, June 18, 2008, 8:05 AM



Hello,
I'm new to rpmbuilding, and have not been able to find the information to fix the problem I am having. I'm trying to build an RPM that runs two scripts as it's installation. While the rpm is building, it is able to run the scripts and install the software, but after, all it does is unpackage the software into specific folders, never running the scripts. Does this mean that RPM's can't run scripts on the fly? Also, the scripts require user input…will that be possible? Thank you in advance for your help.
John
devzero2000
2008-06-18 20:42:14 UTC
Permalink
Post by Ferris, John
Hello,
I'm new to rpmbuilding, and have not been able to find the information to
fix the problem I am having. I'm trying to build an RPM that runs two
scripts as it's installation. While the rpm is building, it is able to run
the scripts and install the software, but after, all it does is unpackage
the software into specific folders, never running the scripts. Does this
mean that RPM's can't run scripts on the fly?
No, it is not true. Look at the %pre, %post scriptlet section in the
published docu
Post by Ferris, John
Also, the scripts require user input…will that be possible? Thank you in
advance for your help.
In general the answer is no: rpm was born for noninteractive installation
Post by Ferris, John
_______________________________________________
Rpm-list mailing list
https://www.redhat.com/mailman/listinfo/rpm-list
G***@aotx.uscourts.gov
2008-06-23 14:49:37 UTC
Permalink
Post by Ferris, John
Hello,
I'm new to rpmbuilding, and have not been able to find the
information to fix the problem I am having. I'm trying to build an
RPM that runs two scripts as it's installation. While the rpm is
building, it is able to run the scripts and install the software,
but after, all it does is unpackage the software into specific
folders, never running the scripts. Does this mean that RPM's can't
run scripts on the fly? Also, the scripts require user input…will
that be possible? Thank you in advance for your help.
John
John,

What section of the spec are you placing the scripts in? If you could the
spec file would be a useful reference to help you.

As for user input.... in general that is strongly discouraged for RPMs due
to their design towards being headlessly installed. Is it possible? Yes, I
believe it is.

-greg

Loading...