How does one install kernel*.src.rpm ?

Tony Nelson tonynelson at georgeanelson.com
Mon Oct 24 04:40:05 UTC 2005


At 4:52 PM -0500 10/23/05, akonstam at trinity.edu wrote:
>On Sun, Oct 23, 2005 at 07:49:03AM -0700, Kenneth Porter wrote:
>> --On Sunday, October 23, 2005 8:38 AM -0500 akonstam at trinity.edu wrote:
>>
>> >You place the
>> >src.rpm in the directory /usr/src/redhat/SRPMS (this is not essential
>> >but makes things more organized). Then you process the file by
>> >running: rpm -ivh ...src.rpm
>>
>> Not exactly. /usr/src/redhat/SRPMS is an *output* directory where an SRPM
>> is generated from a set of source tarballs, patches, and a spec file. You
>> can toss the original SRPM (.src.rpm) wherever is convenient. I like to put
>> mine in /usr/src/redhat/Downloads/<source>, eg.
>> /usr/src/redhat/Downloads/Fedora/4/updates, and then rebuild from there. If
>> you then run "rpmbuild -ba foo.src.rpm", the new repackaged foo.src.rpm
>> will be written to /usr/src/redhat/SRPMS.
>>
>I agree that a src.rpm file can be put anywhere. However, if a
>foo.src.rpm is not a source rpm what is it? Why exactly do you want to
>repackage a src.rpm file that is already packaged.-

When you "rpmbuild -ba" new binary and source rpms are made.  If your
original srpm is where the new srpm will be put, the original can be
overwritten (if the package has the exact same name).
____________________________________________________________________
TonyN.:'                       <mailto:tonynelson at georgeanelson.com>
      '                              <http://www.georgeanelson.com/>




More information about the users mailing list