Leelavathy.S@lntinfotech.com wrote: > I have redhat 7.2 installed in my pc and i need to do some changes in dhcp > code in linux for a testing purpose, > so i need the source code. > > i got pump SRPM from > ftp://ftp.mirror.ac.uk/sites/ftp.redhat.com/pub/redhat/redhat-7.2-en/os/i386/SRPMS/pump-0.8.11-7.src.rpm > > but when i do rpm -Uvh pump-0.8.11-7.src.rpm > and rpm -rebuilddb > > i dont find any directory with the source code. > am i doing something wrong in the way of extracting? "rpm --rebuilddb" rebuilds the database of installed RPMs; it has nothing to do with compiling source RPMs. When applied to a source RPM, "rpm -U" will normally install the source .tar.gz and any patches in /usr/src/redhat/SOURCES, and the spec file in /usr/src/redhat/SPECS. The rest of the build process is controlled by "rpm -b<option>", e.g. something like "rpm -bp /usr/src/redhat/SPECS/pump.spec" to unpack the .tar.gz into /usr/src/redhat/BUILD and apply patches. See the section entitled "BUILD OPTIONS" in the rpm(8) manpage for more details on building source RPMs. -- Glynn Clements <glynn.clements@virgin.net> - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html