Operating System - HP-UX
1833083 Members
4171 Online
110050 Solutions
New Discussion

I have software on a tape, how can I copy this to a directory so as to create a depot?

 
SOLVED
Go to solution
SM_3
Super Advisor

I have software on a tape, how can I copy this to a directory so as to create a depot?

I have software on a tape, how can I copy this to a directory so as to create a depot?
8 REPLIES 8
Sridhar Bhaskarla
Honored Contributor
Solution

Re: I have software on a tape, how can I copy this to a directory so as to create a depot?

Hi,

You can do it in these ways.

1. Invoke "swcopy" interactive. Select source as the tape and target as your directory.

2. Untar the tape into the directory and then run swreg -l depot. Say your directory is /swdepot/software

#mkdir /swdepot/software
#cd /swdepot/software
#tar xvf /dev/rmt/0m
#touch /swdepot/software/catalog/swlock
#swreg -l depot /swdepot/software

I suggest method 1.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
SM_3
Super Advisor

Re: I have software on a tape, how can I copy this to a directory so as to create a depot?

BRAVO!

I used method 2.
How come I have to create the catalog/swlock file?
SM_3
Super Advisor

Re: I have software on a tape, how can I copy this to a directory so as to create a depot?

Oh yes

I was trying to do the above with one execution of swpackage!

Is it possible to do this with swpackage?
Sridhar Bhaskarla
Honored Contributor

Re: I have software on a tape, how can I copy this to a directory so as to create a depot?

Swinstall and swcopy use that swlock file as a semaphore to make sure that depot does not get modified by a two simultaneous sessions. When you create/copy the depot using swcopy, it will create the lock file. What you did was a workaround. So, you will have to create the file yourself.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Sridhar Bhaskarla
Honored Contributor

Re: I have software on a tape, how can I copy this to a directory so as to create a depot?

When you said software on a tape, I took it granted that it was in SD format. You could use method 2 to do it.

However, if your software is not in SD format, then you will need to create a "psf" file and then run swpackage against it.

Creating psf file is tricky if you are doing it for the first time. Look at 'man swpackage' and 'man 4 swpackage' commands.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
SM_3
Super Advisor

Re: I have software on a tape, how can I copy this to a directory so as to create a depot?

Cheers MAte!

By the way where abouts are you in USA?
Sridhar Bhaskarla
Honored Contributor

Re: I have software on a tape, how can I copy this to a directory so as to create a depot?

Glad I could be of help to you.

Kansas city with Company information confidential.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
SM_3
Super Advisor

Re: I have software on a tape, how can I copy this to a directory so as to create a depot?

a long way

i'm in London

is that the time over there?