1826231 Members
2494 Online
109692 Solutions
New Discussion

/var/spool/sw cleanup

 
SOLVED
Go to solution
thom_14
Regular Advisor

/var/spool/sw cleanup

I'm running low on disk space in /var, and in /var/spool/sw I found directories with a numerical extension for packages that apparently had been re-copied, ie

# ls -1d subversion*
subversion.4
subversion.5
subversion.6

Which of these can I get rid of?
4 REPLIES 4
Steven E. Protter
Exalted Contributor
Solution

Re: /var/spool/sw cleanup

Shalom,

cleanup -c 1

That will commit all patches superseded once or more. It will get you back a lot of space on a system.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
James R. Ferguson
Acclaimed Contributor

Re: /var/spool/sw cleanup

Hi:

The directory '/var/spool/sw' is designed to hold software depots as used by 'swinstall' and its cousins. You can remove ('rm' or 'swremove') anything you want from this repository.

Do *not* manually muddle with '/var/adm/sw'. This directory is the seat of your IPD (Installed Product Database). The most appropriate, safe way to manage its contents is with the 'cleanup' command which is a front-end to 'swmodify' when used to commit patches and therefore remove copies of prior software versions.

Regards!

...JRF...
thom_14
Regular Advisor

Re: /var/spool/sw cleanup

Thanks!

Upon further investigation, I think the .[0-9] are representations for different os/arch combos - I think a better approach would be to better organize the depots on this machine.
Tim Nelson
Honored Contributor

Re: /var/spool/sw cleanup

If you are truly keeping your sw depots in /var/spool/sw then you can simply move them to a different filesystem and re-register with swreg command. ( or use swcopy to copy them, then swremove to remove the old if you are uncomfortable using the external method)

swlist -l depot will give you the current list of all registered depots.