On 5/16/06, Johnny Hughes mailing-lists@hughesjr.com wrote:
On Tue, 2006-05-16 at 14:06 -0400, Nick Smith wrote:
how can i get the source rpms for the packages installed on my centos 3.6 server? is there a certain repositories i have to add to my yum.conf? Im trying to setup a filtering program "smartfilter" and they want me to point to the source for squid, which i cant seem to find.
There is no squid-devel file that contains the header (.h) files, etc. Not sure if their should be or not ... the spec file does not contain the rules to make one.
can anyone shed some light on this for me? someone i was talking to said that centos strips out the source to keep the bulk down, but i was hoping that wasnt the case.
CentOS (and the upstream provider ... and everyone else) strips their binaries of debuginfo ... that has nothing to do with building things or devel files.
thanks for any help.
Nick
If you want the patched source that the RPM is built from, do this (for centos-3 version of squid).
download the latest SRPM from here: http://mirror.centos.org/centos/3/os/SRPMS/squid-2.5.STABLE3-6.3E.16.src.rpm
install it (on a machine with rpm-build installed):
rpm -Uvh squid-2.5.STABLE3-6.3E.16.src.rpm
go to the SPEC directory ... the default is:
/usr/src/redhat/SPECS
issue the command:
rpmbuild -bp squid.spec
now go to the BUILD directory ... default is:
/usr/src/redhat/BUILD
your patched squid source will be in the directory named:
squid-2.5.STABLE3
If you need to know how it was configured ... edit the file squid.spec and look at the configure section.
Thanks, Johnny Hughes
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQBEalGSTKkMgmrBY7MRAqBfAKCV6E4AN13VtwH4gY3WKH4snN79zwCdFBdL 5bHreJ/sDn5Ou2ToAPDs3lg= =R/Qu -----END PGP SIGNATURE-----
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
thank you!