- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Create 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
Forums
Discussions
Discussions
Discussions
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
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
11-02-2001 05:44 AM
11-02-2001 05:44 AM
Create depot
MDF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2001 05:48 AM
11-02-2001 05:48 AM
Re: Create depot
http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0xb9ec660142b2d5118ff10090279cd0f9,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2001 05:51 AM
11-02-2001 05:51 AM
Re: Create depot
mkdir /depot/patches
Then, copy each p[atch into the depot:
swcopy -s /PHxx_yyy1.depot PHxxx_yyy1 @ /depot/patches
swcopy -s /PHxx_yyy2.depot PHxxx_yyy2 @ /depot/patches
....
you can then register the depot using:
swreg -l depot /depot/patches
but it is registered automatically by swcopy by default, so you don't usually need to.
HTH,
Vince
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2001 05:54 AM
11-02-2001 05:54 AM
Re: Create depot
Refer to the link below for more info. The HP Manual in the thread below would be a big help to you.
http://docs.hp.com/hpux/onlinedocs/B2355-90127/B2355-90127.html
http://docs.hp.com/hpux/onlinedocs/B2355-90740/B2355-90740.html
Hoep this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2001 06:29 AM
11-02-2001 06:29 AM
Re: Create depot
To copy different patches downloaded at dir /tmp/patches can be copied in to a depot at /PATCHES using following command.
for i in `ls /tmp/patches/*.depot`
{
swcopy -x enforce_dependencies=false -s $(i) \* @/PATCHES
}
swreg -l depot /PATCHES
Thanks.
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2001 06:31 AM
11-02-2001 06:31 AM
Re: Create depot
MDF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2001 06:44 AM
11-02-2001 06:44 AM
Re: Create depot
The steps that we gave you creates a depot file of patches requested in the swcopy.
swcopy is the command to compile the depot.
Vince
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2001 06:45 AM
11-02-2001 06:45 AM
Re: Create depot
If you have your required patches in a depot, create a depot file using:
swpackage -s depot_name -x target_type=tape @ target_filename
For example,
depot_name directory = /source/builds/Jun01_LVM_patches
target_filename = /source/builds/Jun01_LVM_patches.depot
Rgds, Robin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2001 06:55 AM
11-02-2001 06:55 AM
Re: Create depot
NOTE: Adding unrecognized keyword "H@?? at line 2841.
NOTE: Adding unrecognized keyword "
B@:H" at line 2843.
NOTE: Adding unrecognized keyword "" at line 2844.
NOTE: Adding unrecognized keyword "
" at line 2846.
WARNING: No value defined for the keyword "H@p4\", at line 2847.
WARNING: Exiting due to keyboard interrupt.
Any ideas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2001 07:18 AM
11-02-2001 07:18 AM
Re: Create depot
Man swpackage states that the filename after the -s switch is used to:
"describe the product, subproduct, fileset, and file definitions used to build a software product from a set of source files. The source can also be an existing directory depot (which already contains products).
The file should be a product specification file. I guess you gave it a file which is not a PSF and therefore is giving out all sorts of errors.
HTH,
Vince
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2001 10:22 AM
11-04-2001 10:22 AM
Re: Create depot
to create a depot, you need to create a package specification file (.psf) to define what goes into the depot. This includes prerequisites (software that needs to be installed before your depot is installed), where software to put into the depot is found, where to put that software on the destination install machine, file ownerships and permission settings, etc.
I'm sure theres some good docs somewhere you could get your hands on, or man pages that will give you the full lowdown on this, but here's a sample of what you can put into it:
#
# Vendor Definition
#
vendor
tag companytag
title Mycompany Ltd.
description The company that does stuff
end
#
# Product Definition
#
product
tag namethatappearsinswinstall
title Mycompany's cool software
revision 2.3
description <./description
copyright <./copyright
architecture S700/S800_HPUX_11.0
machine_type 9000/[78]*
os_name HP-UX
os_release ?.11.*
os_version [A-Z]
directory /
#
# Fileset Definitions
#
fileset
#dependencies
tag fileset1
title MCS Product Fileset
revision 2.3
prerequisites othersw,r=1.0
corequisites othersw,r=1.0
directory ./ = /home/mcsuser
configure mcsconfigure.ksh
preremove mcspreremove.ksh
directory ./ = /opt/mcs/bin
file -m 0755 -o mcsuser -g bin mcsbin1
file -m 0755 -o mcsuser -g bin mcsbin2
end
# End of PSF
To be honest I haven't gone to the trouble of working out whether all of this stuff is completely necessary, but it works so...
One or two notes, the configure part is a script that is run to do the configuring part of the swinstall process, after the files are put in place. The preremove is the script that is run by swremove before the files are deleted on the system, to do various cleaning up things, like delete databases that your product created, or whatever else needs to be done to clean up a system. I don't think these are mandatory, but can be useful. You can also have preinstall, postinstall, and a couple like that I think, but again check out the docs to get those.
You can repeat the directory/file part as often as you like for whatever files/directories your software needs files in. The ./ = /opt/mcs/bin means that it'll get the software from the current directory (pwd of shell that swinstall is run from), and when installing it, it'll put it into /opt/mcs/bin. Swinstall will create these directories so theres no need to have a preinstall script to create these. Change these to whatever suits.
Hope that helps?
regards,
Kevin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2001 04:43 AM
11-05-2001 04:43 AM
Re: Create depot
# cd /var/tmp/patches# for i in PH*
do
sh $i
done
# for i in PH*.depot do
swcopy -s ${PWD}/$i \* @ /var/opt/ignite/PATCHES
done
This will make a single installable bundle
You'll need http://www.hp.com/products/IUX/
# make_bundles -B -n Nov2001 -t "HP-UX 11.00 Nov 2001 Patches" \ /var/opt/ignite/PATCHES