- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to copy/install a bunch of depot files
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
06-03-2003 07:08 AM
06-03-2003 07:08 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2003 07:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2003 07:15 AM
06-03-2003 07:15 AM
Re: How to copy/install a bunch of depot files
Yes, use 'swcopy'.
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
# mkdir ${PDIR}
# for X in PH*.depot
> do
> swcopy -s ${PWD}/${X} \* @ ${PDIR}
> done
# swlist -s ${PDIR}
There is no need to register the depot with 'swreg'. This is done automatically by 'swcopy'. The 'swlist' allows you to preview the depot's contents. You can also run 'swinstall' in preview mode to perform a depot software analysis too.
The 'swcopy' syntax shown above can be modified to specify '-x enforce_dependencies=false'. This forces 'swcopy' to ignore dependency verification until the actual 'swinstall' analysis phase. This is very useful when you do not want to download dependency patches because you know that you already have on your server.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2003 07:25 AM
06-03-2003 07:25 AM
Re: How to copy/install a bunch of depot files
Using ITRC is much faster/fruitfull than reading the Docu's...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2003 07:26 AM
06-03-2003 07:26 AM
Re: How to copy/install a bunch of depot files
#!/bin/ksh
# this script will make a single depot to install
# several patches as once
# copy your patches into the directory "/tmp/patches"
# ****************************
export DEP_DIR=/tmp/patches_depot
export DIR=/tmp/patch
cd $DIR
for patch in `ls /tmp/patch`
do
sh $DIR/$patch
done
if [[ -d $DEP_DIR ]];then
echo "$DEP_DIR exists, will remove previous depots"
echo "Do you want the directory removed"\c
read answer
if [[ $answer = Y || $answer = y ]];then
rm -rf $DEP_DIR
else
echo "please remove the directory and restart this script"
exit
fi
fi
echo "making $DEP_DIR"
mkdir -p $DEP_DIR
echo "running swcopy"
for X in `ls $DIR |grep .depot`
do
echo "running swcopy -s $DIR/$X \* @ $DEP_DIR"
swcopy -s $DIR/$X \* @ $DEP_DIR
done
echo "here is a display of all the patches in the depot $DEP_DIR"
swlist -s $DEP_DIR