- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Creating a patch bundle?
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
05-22-2000 11:46 PM
05-22-2000 11:46 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2000 12:14 AM
05-23-2000 12:14 AM
SolutionSo you could do :-
swcopy -s
Then just repeat that for each .depot file you have.
You don't have to use /var/spool/sw obviously, but it will already exist (although there may be some stuff in there already, so you may want to choose another directory).
If you choose another directory and you require another machine to be able to access it, you'll have to register it with :-
swreg -l depot /var/spool/sw (or whatever your depot is called).
Then you can installed the patches with in one go.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2000 01:07 AM
05-23-2000 01:07 AM
Re: Creating a patch bundle?
swcopy -s /PHNE_21433.depot * @ /var/spool/sw
Note the "" before "*". After the swinstall'ation, can I simply delete the directories under /var/spool/sw ? For example:
rm /var/spool/sw/PH*
Or is there another command?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2000 01:15 AM
05-23-2000 01:15 AM
Re: Creating a patch bundle?
I think this thing removed a character!
The command should be :-
swcopy -s /PHNE_21433.depot * @ /var/spool/sw
or
swcopy -s /PHNE_21433.depot
or
swcopy -s /PHNE_21433.depot PHNE_21433 @ /var/spool/sw
whichever you find better to use.
As for removing stuff, you can use :-
swlist -l product -s /var/spool/sw
to see what's there, and then
swremove -d
You might be better just creating a directory somewhere and using that however.
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2000 08:29 PM
06-06-2000 08:29 PM
Re: Creating a patch bundle?
I find that putting patches into a bundle helps me separate and better manage patches. Creating bundles also allows me add specific configurations to an Ignite-UX installation, (i.e.),I can selectively add the patch bundle to specific machines. To create a bundle do the following:
1) Creat a Patche Depot: Download your specific patches to a /tmp/todaysPatch directory.
2) Unshar the pathces by issuing the following command;
# for i in /tmp/todaysPatch/*
do
sh $i
done
3) Combine all the PH??.depot(s) into one depot:
# mkdir /var/opt/ignite/Patches
# for i in /tmp/todaysPatch/*
do
swcopy -s ${PWD}/$i * @ /var/opt/ignite/Patches
done
4) Verify the contents of the depot by issuing the following command:
# swlist -d @ /var/opt/ignite/Patches
5) Convert the individual patches into a single bundle using the Ignite-UX "make_bundles" command:
# make_bundles -B -n TodaysPatches -t "The latest and greates HP-UX 10.20 Patches" /var/opt/ignite/Patches
Where -n is the name you want to assign to your bundle and -t is the description that will be displayed when you run "swlist -l bundle"
6) Verify the bundle was created by issuing the following command;
# swlist -d @ /var/opt/ignite/Patches
I hope this helps,
Bernie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2000 11:56 AM
06-09-2000 11:56 AM
Re: Creating a patch bundle?
#!/usr/bin/csh
#
# multipatch - Prepares multiple patches in a depot.
#
if(`whoami` != "root") then
echo "You must be root to run this script"
exit 1
endif
@ count = 0
foreach patch ($*)
if(! -f $patch) then
echo "ERROR: $patch not found. Aborting"
#!/usr/bin/csh
#
# multipatch - Prepares multiple patches in a depot.
#
if(`whoami` != "root") then
echo "You must be root to run this script"
exit 1
endif
@ count = 0
foreach patch ($*)
if(! -f $patch) then
echo "ERROR: $patch not found. Aborting"
exit 1
endif
end
if(-d /tmp/patch_depot) then
echo -n "/tmp/patch_depot exists. OK to remove? [yN] - "
set choice = $<
if($choice != "y") exit
endif
/bin/rm -rf /tmp/patch_depot
if($status != 0) then
echo "Can't delete /tmp/patch_depot. Aborting."
exit 1
endif
mkdir /tmp/patch_depot
foreach patch ($*)
sh $patch
if($status != 0) then
echo "Error unarchiving patch ${patch}. Aborting."
exit 1
endif
swcopy -v -s ${cwd}/${patch}.depot $patch @ /tmp/patch_depot
if($status != 0) then
echo "Error running swcopy for patch ${patch}. Aborting."
exit 1
endif
@ count++
end
if($count == 0) then
echo "No files processed. Aborting."
exit 1
endif
swreg -l depot /tmp/patch_depot
echo ""
echo "`basename $0` completed successfully."
echo ""
exit 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2000 11:59 AM
06-09-2000 11:59 AM
Re: Creating a patch bundle?
#!/usr/bin/csh
#
# multipatch - Prepares multiple patches in a depot.
#
if(`whoami` != "root") then
echo "You must be root to run this script"
exit 1
endif
@ count = 0
foreach patch ($*)
if(! -f $patch) then
echo "ERROR: $patch not found. Aborting"
exit 1
endif
end
if(-d /tmp/patch_depot) then
echo -n "/tmp/patch_depot exists. OK to remove? [yN] - "
set choice = $<
if($choice != "y") exit
endif
/bin/rm -rf /tmp/patch_depot
if($status != 0) then
echo "Can't delete /tmp/patch_depot. Aborting."
exit 1
endif
mkdir /tmp/patch_depot
foreach patch ($*)
sh $patch
if($status != 0) then
echo "Error unarchiving patch ${patch}. Aborting."
exit 1
endif
swcopy -v -s ${cwd}/${patch}.depot $patch @ /tmp/patch_depot
if($status != 0) then
echo "Error running swcopy for patch ${patch}. Aborting."
exit 1
endif
@ count++
end
if($count == 0) then
echo "No files processed. Aborting."
exit 1
endif
swreg -l depot /tmp/patch_depot
echo ""
echo "`basename $0` completed successfully."
echo ""
exit 0