1834711 Members
2564 Online
110069 Solutions
New Discussion

Creating new Depot

 
SOLVED
Go to solution
Jeffrey F. Goldsmith
Super Advisor

Creating new Depot

We are trying to install vim and there are several dependencies so we want to create a depot for vim and all its dependencies. It doesnâ t seem to be working for me and I am not sure. Here are the steps that I have been taking.

Root: /software ï ¨ mkdir /software/vim/depot
Swpackage â s vim-7.1-hppa-11.23.depot â d /software/vim/depot


As for the vim file I downloaded it from this website: http://hpux.cs.utah.edu/hppd/hpux/ which was saved to my PC with the .gz extension. After ftping it to my UNIX server I unzipped the file. Is it possible that I messed up the file somewhere along the way?
4 REPLIES 4
Torsten.
Acclaimed Contributor

Re: Creating new Depot

What you need is swcopy instead of swpackage.

With swcopy you can combine several depots to one.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
James R. Ferguson
Acclaimed Contributor
Solution

Re: Creating new Depot

Hi Jeffrey:

Use 'swcopy' to collect everything you need or want in one depot file:

# swcopy -v -s /tmp/vim-7.1-hppa-11.23.depot -x enforce_dependencies=false \* @ /var/tmp/swdepot

...then to add "something" more:

# swcopy -v -s /tmp/something.depot -x enforce_dependencies=false \* @ /var/tmp/swdepot

Regards!

...JRF...

Matti_Kurkela
Honored Contributor

Re: Creating new Depot

You're trying to use the wrong command.

You already have one depot - that is, your vim-7.1-hppa-11.23.depot file. You want to copy it and any dependencies to a common location for installation. The command you need is "swcopy".

Background:
A depot can exist in two forms - a "directory depot" (a directory with a set of sub-directories and files in it) or a "tape depot" (usually a .depot file these days, but it could also be written on a tape, hence the name).

A directory depot is the form that is generally more flexible for sysadmin tasks: it can be accessed remotely between HP-UX hosts and it's easy to add other things to a directory depot. However, to move it around, you must copy the entire directory structure of the depot and then register the depot in its new location using swreg, which might be inconvenient.

A tape depot is more easy to move around: just a single big file. But you can install it only locally, and you cannot change its contents without first transforming it to a directory depot.

In this case, the command you need is:
swcopy -s /full/path/to/vim-7.1-hppa-11.23.depot vim @ /software/vim/depot

(i.e. swcopy -s @ )

Then execute a similar command with all the dependencies of vim, keeping the "@ /software/vim/depot" part the same.

The input of swcopy may be a tape depot or another directory depot, but the output will always be a directory depot.

The swpackage command can be used to convert a directory depot into a tape depot, or with an well-written PSF file it can package any old set of loose files into a swinstall-installable "product" and store it in a new depot.

MK
MK
Jeffrey F. Goldsmith
Super Advisor

Re: Creating new Depot

I was supplied with the information I needed to compleate my task.