1832973 Members
2685 Online
110048 Solutions
New Discussion

The purpose of the files

 
hy_5
Occasional Advisor

The purpose of the files

There are lots of files under /var/adm/sw/save, just like:
PHCO_12555 PHCO_16039 PHCO_17441 PHCO_24542 PHKL_18503 PHNE_18486
PHCO_13205 PHCO_16127 PHCO_17503 PHCO_25424 PHKL_18541 PHNE_18527
What is the purpose of these files?Can I delete them?Thank you.
6 REPLIES 6
Patrick Wallek
Honored Contributor

Re: The purpose of the files

NO!!! DO NOT USE THE 'rm' command in this directory!! These files are what will allow you to swremove a patch, if it is ever necessary.

You can use the 'cleanup' command to commit patches (HP-UX 11.0 and higher), which will remove the fiels in this directory. That is the ONLY way the files in this directory should be managed.

# man cleanup

for more details.
Sridhar Bhaskarla
Honored Contributor

Re: The purpose of the files

Hi,

These are saved old patches superseded by new ones. When you remove a new patch, then the corresponding old patch will be restored from this directory.

You must not delete these directories. If you want space, use 'cleanup' command to commit patches. 'cleanup -c 2' will ensure that atleast two levels of succession are preserved. I wouldn't suggest going less than 2. Start with 'cleanup -c 5' and gradually reduce the level until 2.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
hy_5
Occasional Advisor

Re: The purpose of the files

Thank you.Now I have another problem. Whether once I install a patch,some files associating with the patch are produced under the directory?
Sridhar Bhaskarla
Honored Contributor

Re: The purpose of the files

That's not a problem. That's how it is done. All the files that are replaced by the new patch will be saved under the directory corresponding to the old patch.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
hy_5
Occasional Advisor

Re: The purpose of the files

Thank you.Then how can I know what the patch level is?
Trond Haugen
Honored Contributor

Re: The purpose of the files

The command show_patches will show you current patches.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn