Re: [mpls-linux-general] zebra-ldp.diff
Status: Beta
Brought to you by:
jleu
|
From: Ramon C. <cas...@in...> - 2003-07-13 11:11:14
|
On Sun, 13 Jul 2003, Zahra Farahmand wrote: > Hi, I have a simple question about RPMs,I downloaded > zebra-0.94-1+ldp0.310.i386.rpm file at /root directory and entered > "rpm -ivh zebra-0.94-1+ldp0.310.i386.rpm" command but I don't know There are two "kinds" of RPM. Binary RPMs ans source RPMs (SRPM). Most users do not want to compile packages, so they just download the compiled package for their architecture (in your case .i386.rpm) and istall it using rpm -ivh name.i386.rpm. In other works, what you did is just download the precompiled binary package of zebra (already patched with ldp 0.310) and installed it. You may check the "contents of an already installed package" by typing rpm -qils package-name or without previusly installing it: rpm -qpils package-name.i386.rpm You may want to take a look at some docs about rpm. There is a (very) extensive book "Maximum RPM" I think, which may help. > what is doing? and where is the result of this command, in other word, > where are zebra and ldp sources? How can I apply zebra-ldp.diff to Since it is a "binary only" package there are no sources. If you want to build your own binary, you may want to download the equivalent source package (usually nmed package.src.rpm) and compile it yourself : rpm -ivh name.src.rpm cd /usr/src/redhat/.../SPECS rpm -bb name.spec (check the aforementioned docs for the details) this command will in fact create binary files for your architecture. Please note, that according to the nme of the file, the zebra package has *already* been patched. > zebra source distribution? Thanks for your time and excuse me for my Assuming that you want to patch zebra yourself, there are several possibilities. Manipulating SRPMs and patching files is a bit offtopic, but it has already done for you (look for the equivalent src.rpm) You may also want to consider just downloading zebra.....tar.gz, the ldp...patch.diff and use the "patch" command. Hope this helps, regards, Ramon Casellas |