Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: joshAU on October 20, 2009, 06:55:47 AM
-
Hello. Sorry for my ignorance, but I'm having difficulty installing squidpurge-1.17_2.tgz. onto my SME server.
I untarred it using:
tar zxf squidpurge-1.17_2.tgz
Which seemed to unpack 4 files
+COMMENTS
+CONTENTS
+DESC
+MTREE_DIRS
and one sbin dir
..
I assumed that I would then change into the sbin dir,
which I did, and it has one file called purge within it.
Its coloured green....if that makes a dif...
According to the readme, found here:
http://www.wa.apana.org.au/~dean/squidpurge/README (http://www.wa.apana.org.au/~dean/squidpurge/README)
In order to compile the purge tool, untar the source distribution and
change into the purge directory. With RCS and GNU make installed, just say
"make". GNU make will automagically retrieve all necessary files from the
repository and create the binary.
Systems not stated above will need to retrieve the makefile (use "co -l
Makefile" for this) and add their own platform specific definitions to
section [2] in the makefile.
I changed into the sbin dir and tried some commands.
"make" didnt work, when I typed make,
it returned no targets specified and no makefile found.
I changed it to "make purge", it replies nothing to be done for purge.
I then tried "co -l Makefile", it returns co: command not found.
I'm pretty sure its me :???:.
Any advice to help get this installed is appreciated.
PS. Oh, and I know how to delete the cache. I jsut want to use it to extract some files from the cache.
Thanks, and apologies for my ignorance.
joshAU
-
joshAU:
you can't compile anything on SME without dev tools
search for a rpm (for rh4/centos4)
regards
-
Ok, thanks.
I'll have a hunt.
Thanks again
joshAU
-
Hi,
What exactly are you trying to do?
-
I want to be able to selectively recover files from the cache.
tried to do it manually but the files are very confusing, and contain some binary.
squid purge has the ability to do this:
How do I rescue server w3.org from my cache contents?
Enable copy-out mode without killing anything:
purge -sC /tmp -e '\.w3\.org/'
This command will rescue all servers in the xyz.com domain. Don't get confused, if there are some doubleclick servers also in there, as they use sometimes URLs as part of their URL. After purge is done, your /tmp directory will contain at least most likely a subdirectory www.w3.org which in turn contains all files from the server Squid knows about in their respective subdirectories:
~ $ find /tmp/www.w3.org
/tmp/www.w3.org
/tmp/www.w3.org/Protocols
/tmp/www.w3.org/Protocols/HTTP
/tmp/www.w3.org/Protocols/HTTP/Performance
/tmp/www.w3.org/Protocols/HTTP/Performance/Pipeline.html
/tmp/www.w3.org/Protocols/HTTP/1.0
/tmp/www.w3.org/Protocols/HTTP/1.0/HTTPPerformance.html
/tmp/www.w3.org/Protocols/index.html
/tmp/www.w3.org/Protocols/History.html
/tmp/www.w3.org/index.html
Which would be nice to do.
Thanks again
joshAU