Oracle® Solaris 11.2의 소프트웨어 추가 및 업데이트

인쇄 보기 종료

업데이트 날짜: 2014년 7월
 
 

종속 패키지 표시

아래의 예에서는 지정한 패키지에 종속된 패키지를 보여줍니다.

다음 예제는 system/kernel/power 패키지에 대해 require 종속성을 갖는 패키지를 보여줍니다.

$ pkg search -Hlo pkg.name require:system/kernel/power
system/kernel/dynamic-reconfiguration/i86pc
system/hal

다음 pkg contents 명령은 검색 결과를 확인합니다. 요청된 출력 action.raw는 패키지 매니페스트에 나타난 대로 정확히 작업을 표시하는 의사 속성입니다.

$ pkg contents -rt depend -a fmri='*power*' -o pkg.name,action.raw i86pc system/hal
PKG.NAME                                    ACTION.RAW
system/hal                                  depend fmri=pkg:/system/kernel/power
@0.5.11-0.175.2.0.0.34.0 type=require variant.opensolaris.zone=global
system/kernel/dynamic-reconfiguration/i86pc depend fmri=pkg:/system/kernel/power
 type=require

다음 예제는 많은 패키지에 pkg:/x11/server/xorg@1.14.99에 대한 exclude 종속성이 있음을 보여줍니다.

$ pkg search -lo pkg.name,fmri 'depend:exclude:*xorg*'
PKG.NAME                                     FMRI
x11/server/xorg/driver/xorg-video-ati        pkg:/x11/server/xorg@1.14.99
x11/server/xvnc                              pkg:/x11/server/xorg@1.14.99
x11/server/xserver-common                    pkg:/x11/server/xorg@1.14.99
x11/server/xorg/driver/xorg-input-vmmouse    pkg:/x11/server/xorg@1.14.99
x11/server/xephyr                            pkg:/x11/server/xorg@1.14.99 
...