HP-UX
1753971 회원
7625 온라인
108811 솔루션
새 메시지

depot파일 패키지묶는방법좀 알려주세요

 
lee_1
비정기 조언자

depot파일 패키지묶는방법좀 알려주세요

depot파일 패키지묶는방법좀 알려주세요



여기 포럼게시판 검색해서 해보니깐 안되더라구요...



번거롭겠지만 여러 depot파일 하나로 묶는 방법 되는것좀 올려주세요



ㅠㅠ



ps : 슈퍼돔한글자료 부탁드립니다 ㅠㅠ docs기술자료 말고요..



aschool@nate.com
2 응답 2
김병수
본과생

depot파일 패키지묶는방법좀 알려주세요

HPRC에 아래의 내용이 있습니다



swcopy, swpackage 명령을 이용하여, 작업을 하시면 됩니다.

아래의 예제는 a.depot, b.depot, c.depot 파일을 all.depot 파일로 만드는 방법을

설명하고 있습니다.



(a.depot, b.depot, c.depot 파일이 /tmp 아래에 존재한다고 가정하였습니다.)



1. depot 파일을 풀어놓을 임시(temporary) 디렉터리를 만듭니다.

# mkdir /tmp/all_depot



2. swcopy 명령을 사용하여, 각 depot 파일을 1. 에서 만든 디렉터리로 copy 합니다.

# swcopy -v -s /tmp/a.depot @ /tmp/all_depot

# swcopy -v -s /tmp/b.depot @ /tmp/all_depot

# swcopy -v -s /tmp/c.depot @ /tmp/all_depot



3. depot 디렉터리를 등록합니다. (옵션사항)

# swreg -l depot /tmp/all_depot



4. swpackage 명령을 사용하여, copy 한 파일을 하나로 묶습니다.

(/tmp/all.depot 파일로 생성)

# swpackage -s /tmp/all_depot -x target_type=tape @ /tmp/all.depot



5. 확인방법

# swlist -l /tmp/all.depot



위의 명령을 수행하면, all.depot 파일내에, a, b, c 의 depot 파일이

포함되어 있음을 알 수 있습니다.





그럼~~~
lee_1
비정기 조언자

depot파일 패키지묶는방법좀 알려주세요

test:/test]swcopy -v -s /test/PHCO_35732.depot @ /test/all_depot/

test:/test]swcopy -v -s /test/PHCO_35732.depot @ /test/all_depot/

수행하면 swinstall화면으로 넘어가듯이 갑니다..

NOTE: The interactive UI was invoked, since no software was

specified.



Starting the terminal version of swcopy...



To move around in swcopy:



- use the "Tab" key to move between screen elements

- use the arrow keys to move within screen elements

- use "Ctrl-F" for context-sensitive help anywhere in swcopy



On screens with a menubar at the top like this:



------------------------------------------------------

|File View Options Actions Help|

| ---- ---- ------- ------------------------------- ---|



- use "Tab" to move from the list to the menubar

- use the arrow keys to move around

- use "Return" to pull down a menu or select a menu item

- use "Tab" to move from the menubar to the list without selecting a menu item

- use the spacebar to select an item in the list



On any screen, press "CTRL-K" for more information on how to use the keyboard.



Press "Return" to continue...





test:/test]swreg -l depot /test/all_depot



======= 10/16/07 10:34:14 KST BEGIN swreg SESSION (non-interactive)



* Session started for user "root@test".



* Beginning Selection

* Targets: test

* Objects: /test/all_depot

ERROR: There is currently no depot software on host "test" at

location "/test/all_depot". Make sure that an absolute

pathname is specified for location (beginning with "/").

ERROR: More information may be found in the daemon logfile on this

target (default location is test:/var/adm/sw/swagentd.log).

* Selection had errors.







======= 10/16/07 10:34:14 KST END swreg SESSION (non-interactive)



test:/test]swpackage -s /test/all_depot/ -x target_type=tape @ /test/all.depot



======= 10/16/07 10:34:46 KST BEGIN swpackage SESSION



* Session started for user "root@test".



* Source: test:/test/all_depot/

* Target: test:/test/all.depot

* Software selections:

*





* Beginning Selection Phase.

* Reading the source depot "/test/all_depot/".

ERROR: The expected depot or root does not exist at

"/test/all_depot/".

ERROR: Cannot read the source depot "/test/all_depot/".



======= 10/16/07 10:34:46 KST END swpackage SESSION



all_depot디렉토리에 catalog,swagent.log

두개파일만 생기네요...