Discussion:
A Very Basic RPM Doubt
Lis Maria
2007-08-01 11:12:38 UTC
Permalink
Hi

I have a doubt which seems to be very basic. I have done few RPM building
and deployments and may be i just missed this point somewhere.

When we give rpmbuild -ba <spec file>, this command executes the
%prep,%build and %install sections mentioned in the SPEC file and also
created the binary and source RPMs..right???

Likewise, when we give rpm -Uvh <the binay rpm name>, how does the RPM know
that it has to execute the %post section after installing the RPM???

Thanks,

Lis Thomas
Jos Vos
2007-08-01 11:19:56 UTC
Permalink
Post by Lis Maria
Likewise, when we give rpm -Uvh <the binay rpm name>, how does the RPM know
that it has to execute the %post section after installing the RPM???
The %post (and %pre etc.) sections are stored in the header of the
binary RPM during the build, so they can be used when installing
the binary RPM.
--
-- Jos Vos <***@xos.nl>
-- X/OS Experts in Open Systems BV | Phone: +31 20 6938364
-- Amsterdam, The Netherlands | Fax: +31 20 6948204
Lis Maria
2007-08-01 12:26:49 UTC
Permalink
Thank You !!!
Post by Jos Vos
Post by Lis Maria
Likewise, when we give rpm -Uvh <the binay rpm name>, how does the RPM
know
Post by Lis Maria
that it has to execute the %post section after installing the RPM???
The %post (and %pre etc.) sections are stored in the header of the
binary RPM during the build, so they can be used when installing
the binary RPM.
--
-- X/OS Experts in Open Systems BV | Phone: +31 20 6938364
-- Amsterdam, The Netherlands | Fax: +31 20 6948204
_______________________________________________
Rpm-list mailing list
https://www.redhat.com/mailman/listinfo/rpm-list
Loading...