Operating System - HP-UX
1844821 Members
2046 Online
110233 Solutions
New Discussion

Safe to delete these files

 
Mike Keys
Regular Advisor

Safe to delete these files

Are the files located in /var/adm/sw/apps or /var/spool/adm/sw/apps safe to delete? These are just tarballs and *.depot files.

Just trying to do a little house cleaning.

I don't suppose that there is a utility that can check for files that are safe to delete is there?
7 REPLIES 7
Pete Randall
Outstanding Contributor

Re: Safe to delete these files

Mike,

I have neither a /var/adm/sw/apps nor a /var/spool/adm/sw/apps directory on 11.0 or on 11i. I think someone must have created those for some special purpose. Without knowing what that purpose was, it's hard to say whether it's safe to remove them, but I can say they're not standard.


Pete

Pete
Jim Mallett
Honored Contributor

Re: Safe to delete these files

Same as Pete, I don't have those particular directories. If you want to save some space in /var you can start with the cleanup utility.

To see if it's installed try: man cleanup

Also take a look at /var/tmp to see if garbage has built up in there. I have one system runs an app that just doesn't like to clean up after itself.

Jim
Hindsight is 20/20
Sridhar Bhaskarla
Honored Contributor

Re: Safe to delete these files

Hi,

Looks like someone used them as depots before.

Look at the filenames and see if you are going to use in future. If these directories have files other than tar balls and *.depots, then run 'swlist -l depot' to see if they have any depots registered.

These are not system directories. So, if you are sure you don't use them, then back them up and then move/delete them.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Bharat Katkar
Honored Contributor

Re: Safe to delete these files

hi,
you check first whether they were used as depot and still in use.
# swlist -l depot

If they were simply used as backup dir or a location to copy them and now if you don't need them then procedd with deleting them.

Hope that helps.
Regards,
You need to know a lot to actually know how little you know
Victor Fridyev
Honored Contributor

Re: Safe to delete these files

Hi,

After successful backup you may surely delete almost all files 8))
Seriously, the directories don't seems to be critical, but you can ensure this by the following command:
swlist -l file|egrep "/var/adm/sw/apps|/var/spool/adm/sw/apps"
This will show you what applications were installed in these directories.

HTH
Entities are not to be multiplied beyond necessity - RTFM
Mike Keys
Regular Advisor

Re: Safe to delete these files

Victor,

I issued the 'swlist -l file|egrep' command. It returned nothing.
Victor Fridyev
Honored Contributor

Re: Safe to delete these files

Mike,

In this case I'd recommend you to backup the directories and remove them.
If you have enough disk space, in addition to a tape backup you can store the directories as disk files somewhere for fast restore if needed
tar cf - /var/adm/sw/apps |gzip > /somewhere/admapps.tar.gz
tar cf - /var/spool/adm/sw/apps |gzip > /somewhere/spoolapps.tar.gz

HTH
Entities are not to be multiplied beyond necessity - RTFM