Clearing the Cache
Hi
I have been getting to grips with the sun update software over the last 2 days.
In about a years time I see that the cache of downloaded patches will have a great deal of obsolete downloads.
While my servers arent in production I wanted to check how I can clear the cache of updates downloaded to my update proxy (which is also a client, the only 1 I have at present).
It would be nice to be able to delete patches, and other obsolete data (eg READMEs) that are in various directories below: /var/sadm/spool, that are older thatn a certain number of days, but I will settle for a complete clean if thats the only way.
I tried a few things to clean the cache completely (this one was on the forum, but didnt work for me):
cd /var/sadm/
I moved the spool dir and created another with the same permissions and ownership
patchsvr stop
patchsvvr start
But when I do an analyze in the updatemanger gui, I get (right at the end of the analysis, according to the progress bar anyway) a dialog with:
--
Read System Analysis Data Error
There is an error in reading system analysis data. Click on "Check
for Updates" to restart a system analysis. If the problem persists,
report the issue to your sysadmin or Sun.
--
Selecting "Check for Updates" gives the same error.
If I move the spool dir back again all is fine.
I tried the same thing with the /var/sadm/spool/cache dir and got the same.
Files are created in that dir.
./cache/collection/https%3A%2F%2Fgetupdates1.sun.com%2Fsolaris%2F%2Fcollection% 2Fdefault
./cache/category/https%3A%2F%2Fgetupdates1.sun.com%2Fsolaris%2F%2Fcategory%2Fde fault
./cache/Database/https%3A%2F%2Fgetupdates1.sun.com%2Fsolaris%2F%2FDatabase%2Fcu rrent.zip
./cache/entitlement/https%3A%2F%2Fgetupdates1.sun.com%2Fsolaris%2F%2Fentitlemen t_client
./cache/https%3A%2F%2Fgetupdates1.sun.com%2Fsolaris%2F%2Fdetectors.jar
#
Any ideas.
Thanks
Trevor

