Operating System - HP-UX
1830251 Members
2667 Online
110000 Solutions
New Discussion

Change swinstall default Source Depot Path

 
Ed Hon
Regular Advisor

Change swinstall default Source Depot Path

I can't believe something so simple is turning out to be so difficult - for me anyway. I want to change the swinstall default Source Depot Path to /tmp/PATCHES.depot . I did a "swreg -l depot /tmp/PATCHES.depot", added an entry
"swinstall.distribution_source_directory = /tmp/PATCHES.depot" to /var/adm/sw/defaults, and executed an swagentd -r , but swinstall still starts up with a source depot of /cdrom/QPK1100, the last one I used. What am I missing??
13 REPLIES 13
Helen French
Honored Contributor

Re: Change swinstall default Source Depot Path

Hi Ed:

Try this:

1) Edit the file /var/adm/sw/defaults file.
2) Add entry - source_directory=/tmp/PATHCES.depot

HTH,
Shiju

Life is a promise, fulfill it!
John Carr_2
Honored Contributor

Re: Change swinstall default Source Depot Path

Hi

have you checked the content of the file /var/adm/sw/swreg.log to see if it registered correctly.


John
Helen French
Honored Contributor

Re: Change swinstall default Source Depot Path

Hi Ed (again):

If you want to change this for only one user, then edit the file - $HOME/.sw/defaults. The /var/adm/sw/defaults file will change the default parameter system wide.

HTH,
Shiju
Life is a promise, fulfill it!
Ed Hon
Regular Advisor

Re: Change swinstall default Source Depot Path

I edited the defaults file, using source_directory = /tmp/PATCHES.depot and performed a swagentd -r . It did not change the default directory. The swreg.log showed the depot was registered successfully. I am familiar with .sw/defaults for individual user accounts, but I want to make it a global default.
David Burgess
Esteemed Contributor

Re: Change swinstall default Source Depot Path

Change it in /var/adm/sw/defaults

Regards,

dave.
Helen French
Honored Contributor

Re: Change swinstall default Source Depot Path

Hi Ed:

For your confirmation: I just did this and it changed the default depot location. Try:

# vi /var/adm/sw/defaults

You don't need to put 'space' in between the parameter value. Add this:

source_directory=/tmp/PATHCES.depot

There is no space before or after "="

HTH,
Shiju

Life is a promise, fulfill it!
David Burgess
Esteemed Contributor

Re: Change swinstall default Source Depot Path

I just tried adding this entry to /var/adm/sw/defaults

source_directory=/software/patches/year2000/11.00/11.00_y2k-bundle

followed by /usr/sbin/swagentd -r

Ran swinstall. The source directory had changed.

Then changed it to source_directory=/software/patches/year2000/10.20/diags/depot

Again /usr/sbin/swagentd -r

Ran swinstall and the source directory had changed again.

Good luck!

Dave.

MANOJ SRIVASTAVA
Honored Contributor

Re: Change swinstall default Source Depot Path

Hi Ed

I have a primitive suggestion , try using sam and change the source to local directory ,

Manoj Srivastava
Ed Hon
Regular Advisor

Re: Change swinstall default Source Depot Path

I tried all of your suggestions, and it still doesn't work. I removed the spaces from source_directory=/tmp/PATCHES.depot in /var/adm/sw/defaults and ran /usr/sbin/swagentd -r . Also, in SAM I verified the Source Depot Type as Local Directory. Is it time to report it as a bug??
Helen French
Honored Contributor

Re: Change swinstall default Source Depot Path

Hi Ed:

Check the prmissions of the default file. Check the swagentd.log file for any errors. Apply the latest SD-UX patches to the system.

HTH,
Shiju
Life is a promise, fulfill it!
hpuxrox
Respected Contributor

Re: Change swinstall default Source Depot Path

I suggest installing the latest Software Distributor patch.

PHCO_25875

-Yates
David Burgess
Esteemed Contributor

Re: Change swinstall default Source Depot Path

Ed,

Just before you place a call try and register a new depot. Then change /var/adm/sw/defaults , run /usr/sbin/swagentd -r again and see what happens.

The permissions I have on /var/adm/sw/defaults are
-r--r--r-- 1 bin bin 1244 Apr 29 20:54 defaults

HTH

Dave.
Mike_305
Super Advisor

Re: Change swinstall default Source Depot Path

Hi,

I am not sure how you are creating your depot. If you use swcopy the it will copy and register the depot both at the same time. Then you can run "swlist -l depot" to see if the depot is their or not. Once you see depot run "swinstall -s /tmp/PATCHES.depot" to install patches.

I use this simple loop to create my depots. It will unsar and create depot.

*****************************************
cd /tmp
for X in PH*
do
sh $X
done
mkdir /tmp/PATCHES.depot
for X in /tmp/PH*.depot
do
swcopy -x enforce_dependencies=false -s ${X} \* @ /tmp/PATCHES.depot
done
**********************************************

Hope this helps.

THX - Mike
If there is problem then don't think as problem, think as opportunity.