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

[2053 byte] By [Trevor_Holden] at [2007-11-26 10:45:54]
# 1

I had a look further at this and, if you remove the *.jar files there is no issue. They are just downloaded again if required.

This is even easier to do if you specify another location for the patches to be downloaded too.

The problem is way less than I initially thought and its just the caching of READMEs viewed through updatemanger GUI and analysis ot available updates.

Still they eventually could do with a cleanout.

Cheers

Trevor

Trevor_Holden at 2007-7-7 2:58:01 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 2
You have hit bug id 6469364 where update manager should be able to create its cache directory if it does not exist.Please keep an eye out for newer releases of update manager.
ForumModerator at 2007-7-7 2:58:01 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 3
HiThanks for that information, much appreciated.CheersTrevor
Trevor_Holden at 2007-7-7 2:58:01 > top of Java-index,Administration Tools,Sun Update Connection-System...