Operating System - Linux
1752775 Members
6124 Online
108789 Solutions
New Discussion юеВ

Re: diff size of the rpm ?

 
SOLVED
Go to solution
Maaz
Valued Contributor

diff size of the rpm ?

Hi Experts

I downloaded the src.rpm from wine's website(winehq)
#rpmbuild -rebuild wine*.src.rpm; cd /usr/redhat/RPMS/i386
# du -h wine-20050419-1wbel3winehq.i386.rpm
22M wine-20050419-1wbel3winehq.i386.rpm


and following i386.rpm i have downloaded from wine's website.
# du -h wine-20050419-1wbel3winehq.i386.rpm
15M wine-20050419-1wbel3winehq.i386.rpm

I m amazed .... why is the diff b/w the size of the readymade binary, and the
binary i have made via rpmbuild ? one is of 22M and the other is of 15M ...
its a big diff.

Regards
Maaz
5 REPLIES 5
Stuart Browne
Honored Contributor
Solution

Re: diff size of the rpm ?

Different library versions.. different options included.. possibly some more documentation included. It's not all that suprising.

You'd have to walk through the specfile and the config.status to find out the precise differences.
One long-haired git at your service...
Maaz
Valued Contributor

Re: diff size of the rpm ?

Thanks Dear Stuart
plz le me know where i can find the "specfile" and "config.status" file ?

Regards
Maaz
Gopi Sekar
Honored Contributor

Re: diff size of the rpm ?


spec files are generally located in /usr/redhat/SPECS
Never Never Never Giveup
Stuart Browne
Honored Contributor

Re: diff size of the rpm ?

You won't be left with a spec file or the config.status if you do 'rpmbuild --rebuild ..', as they are removed afterwards.

If you really want to look at them, do the following:

rpm -ivh wine*.src.rpm
cd /usr/src/redhat/SPEC

there will be a 'wine.spec'. From here do:

rpmbuild -ba wine.spec

Once that completes, you'll have RPMS in '/usr/src/redhat/RPMS/i386/', and you'll have the built source in '/usr/src/redhat/BUILD/wine*', including the config information (which was generated by the 'configure' command during the build).
One long-haired git at your service...
Maaz
Valued Contributor

Re: diff size of the rpm ?

Thanks Dear Gopi Sekar for the support.

And Thanks Dear Stuart Browne for the Detailed, and continous reply/support.

Regards
Maaz