How can i enter value during rpm -i and use them during the postinstall process?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



All,

I know I repeat this question already, but I really want to know the
answers.

1. I would like to install software_a.rpm with command "rpm -i
software_a.rpm /opt/mydirectory servername". Where the
"/opt/mydirectory" is a string indicate the installation directory.
"servername" is a string value. Both values will be used during postinstall
process.

2. In the postinstall section of the spec file. I can do something such as
"echo $INSTALLDIR" and "echo $SERVERNAME" to proof that I have past those
values and can be used.
How can i pass the first input and the second input values into the
postinstall script?

Thanks.

Barry



_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux