- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- where is software depot?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2002 08:12 AM
тАО01-30-2002 08:12 AM
/var/adm/sw
...which includes:
/var/adm/sw/save
/var/adm/sw/patch
/var/adm/sw/producst
This was the default setup. When I run a command such as 'cleanup' it can't seem to find the depot. I've tried:
# cleanup -d /var/adm/sw
# cleanup -d /var/adm/sw/save
# cleanup -d /var/adm/sw/patch
# cleanup -d /var/adm/sw/products
...but I always get something like:
Error: /var/adm/sw not a valid depot!
So what am I doing wrong, what is the depot exactly?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2002 08:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2002 08:22 AM
тАО01-30-2002 08:22 AM
Re: where is software depot?
If so, then you need to do a cleanup, without any options. If I remember correctly the -d option lets you specify a depot, which the /var/adm/sw directory structure is NOT.
A depot is a file that contains all necessary information to install a product, like ignite-ux, mirror/ux, etc.
The /var/adm/sw directory structure is also known as the Installed Product Database (IPD).
You can use the cleanup command to get rid of patch information for patches that have been superseded, or patch information that has been saved, and you aren't concerned about being able to back out a patch.
For those options, you want to use either 'cleanup' or 'cleanup -f' (I think).
The -d options lets you specify a depot you may have created yourself, like a patch depot, and it will remove any patches in there that have been superseded by another patch in the depot.
Does this make sense?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2002 08:25 AM
тАО01-30-2002 08:25 AM
Re: where is software depot?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2002 08:31 AM
тАО01-30-2002 08:31 AM
Re: where is software depot?
Patrick is correct. On 10.20, simply type:
# cleanup
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2002 08:32 AM
тАО01-30-2002 08:32 AM
Re: where is software depot?
Check this out:
http://us-support3.external.hp.com/cki/bin/doc.pl/sid=763940a6082a896b6f/screen=ckiDisplayDocument?docId=200000050018528
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2002 08:33 AM
тАО01-30-2002 08:33 AM
Re: where is software depot?
# swlist -l depot
WARNING: No depot was found for "corp:".
I haven't created any depots on my own, I'm just trying to recover some disk space by removing older and superceded patch data.
I just tried 'cleanup' without options and that does appear to run, it starts but I haven't run it yet.
I'm probably all set. I'm going to copy the whole of /var/sw to a tape, then run cleanup without arguments.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2002 08:46 AM
тАО01-30-2002 08:46 AM
Re: where is software depot?
You can do:
# swlist
...without further options to see you principal bundles on your server. Other useful forms for more detail are:
# swlist -l fileset
When you run 'cleanup' you will be asked if you want to trim the 'sw' logfiles (from previous 'swcopy', 'swinstall', etc. sessions). Answer affirmatively, as this is useful to reclaim disk space. You will also be prompted to make or have made a copy of /var/adm/sw before proceeding. You have already correctly assumed that this is "nice insurance".
It is useful to run 'cleanup' immediately *before* patch installations, particularly of large bundles like the GR [General Release] or QPK [Quality Pack] bundles. By running the 'cleanup' beforehand you gain necessary space while leaving patches available for rollback for the longest period necessary.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2002 10:19 AM
тАО01-30-2002 10:19 AM
Re: where is software depot?
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2002 11:18 AM
тАО01-30-2002 11:18 AM
Re: where is software depot?
One thing to remember is that the installed products on a system does not constitute a depot. Rather, a depot is a source for software installation. swlist, swremove, cleanup, etc are by default running against the Installed Products Database however they can be instructed to run against a depot by specifying a command line arg.
There is a concept of registering depots (man swreg). While this is not neccessary in order to use a depot, it can be quite useful. For example, you can have a server containing numerous depots. After registering those depots you can list them with swlist -l depot (which only lists registered depots). Since Software Distributor is a client / server environment, other hosts can request a list of registered depots from the depot server. When using interactive swinstall, it can be much easier to have a list of registered depots for you to choose from than for you to have to type in the full path name of a depot.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2002 05:13 PM
тАО01-30-2002 05:13 PM
Re: where is software depot?
I want to offer one more esoteric point about software depots and 'swreg'.
That is, if you create a depot with 'swcopy', then there is no need to register the depot with 'swreg', as it is done *automatically* by 'swcopy'.
For instance, to collect a series of patches into a depot the can be installed with a single reboot, simply download your patches into the /tmp directory; "un-shar" them and do:
# cd /tmp
# for X in PH*.htm
> do
> sh ${X}
> done
# PDIR=/tmp/patch_depot #...my choice for the depot name...
# mkdir ${PDIR}
# for X in PH*.depot
> do
> swcopy -s ${PWD}/${X} \* @ ${PDIR}
> done
# swlist -s ${PDIR}
Note that the 'swlist' allows you to preview the depot's contents. The registration of the depot is already done.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2002 07:13 AM
тАО01-31-2002 07:13 AM
Re: where is software depot?
So last night I just backed up /var/adm/sw to a tape, and ran 'cleanup' with no options. It recovered a lot of space (/var went from 92% to 49%, I know that's relative). I probably could have used 'cleanup -F' and removed it all, given my situation and the fact that I could restore it all from tape if need be.