On Wed, Nov 27, 2002 at 05:40:47PM +0530, Sharninder wrote: > > I've installed squid rpm for RH 7.2 i368. It's running for past one > > week and have cached data of 2 GB. Now I want to compile > > squid2.4.STABLE7 tarball in the same machine and use that. How can I > > go for that by keeping the old 2 GB cache in place ? Please advice. > > uninstall the previous squid keeping the configuration files ( rpm has an > option for that ... i forgot !! ) and then install and configure the new > version of squid to use the old cache directory
1. rpm(8) will not delete a file marked as a configuration file, if it has been changed since installation. It merely a) renames the file with .rpmsave extension if the package is removed b) installs a new version with .rpmnew extension if the package is upgraded 2. rpm(8) will not delete a directory belonging to package foo on removal, if there are files/directories within which don't belong to foo.rpm. 3. Putting these together, you can just rpm -e squid; make install in your squid compilation directory; cp -f /etc/squid/squid.conf.rpmsave to wherever your new squid expects its configuration file; and start squid. You will not lose your cache. 4. Of course, you should ideally be picking up the latest squid RPMs from your nearest redhat updates mirror. Binand -- If you found this helpful, please take some time off to rate it: http://svcs.affero.net/rm.php?r=binand ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
