본문 바로가기
▒ 과거 기억 저장소 ▒/Solaris10 UNIX

(5) solaris10 UNIX 패키지 설치, 패키지 삭제, 패키지 확인 pkgadd / pkgrm / pkginfo

by infosec 2016. 11. 9.
반응형

- <실습> 패키지 삭제.설치



① 패키지 삭제

(s10) <root> [/etc]:# pkgrm SUNWzsh    // 삭제


현재 설치되어 있는 패키지는 다음과 같습니다:

SUNWzsh  Z shell (zsh)

    (i386) 11.10.0,REV=2005.01.08.01.09


이 패키지를 제거하겠습니까? [y,n,?,q] ?

To respond in the affirmative, enter y, yes, Y, or YES. To respond in

the negative, enter n, no, N, or NO.


이 패키지를 제거하겠습니까? [y,n,?,q] y


## 설치된 패키지 예 <SUNWzsh> 제거

## 전역 영역의 패키지 <SUNWzsh> 종속성 확인

## 패키지 정보 처리 중

## 클래스<none>의 경로 이름 제거 중

...

<SUNWzsh>(이)가 성공적으로 제거되었습니다.



// 패키지 삭제 후 확인

(s10) <root> [/etc]:# zsh

ksh: zsh:  찾을 수 없음

(s10) <root> [/etc]:# pkgrm SUNWzsh

pkgrm: ERROR: no package associated with <SUNWzsh>




② 패키지 설치

(s10) <root> [/cdrom/cdrom0/Solaris_10/Product]:# pwd

/cdrom/cdrom0/Solaris_10/Product


(s10) <root> [/cdrom/cdrom0/Solaris_10/Product]:# pkgadd -d . SUNWzsh // 설치


패키지 예 <SUNWzsh>(을)를 </cdrom/sol_10_113_x86/Solaris_10/Product>에서 처리 중


Z shell (zsh)(i386) 11.10.0,REV=2005.01.08.01.09


Copyright (c) 1992-1996 Paul Falstad

All rights reserved.


Permission is hereby granted, without written agreement and without

license or royalty fees, to use, copy, modify, and distribute this

software and to distribute modified versions of this software for any

purpose, provided that the above copyright notice and the following

two paragraphs appear in all copies of this software.


In no event shall Paul Falstad or the Zsh Development Group be liable

to any party for direct, indirect, special, incidental, or consequential

damages arising out of the use of this software and its documentation,

even if Paul Falstad and the Zsh Development Group have been advised of

the possibility of such damage.


Paul Falstad and the Zsh Development Group specifically disclaim any

warranties, including, but not limited to, the implied warranties of

merchantability and fitness for a particular purpose.  The software

provided hereunder is on an "as is" basis, and Paul Falstad and the

Zsh Development Group have no obligation to provide maintenance,

support, updates, enhancements, or modifications.


디렉토리 </>(을)를 패키지의 기본 디렉토리로 사용

## 패키지 정보 처리 중

## 시스템 정보 처리 중

6개 패키지 경로 이름이 이미 제대로 설치되어 있습니다.

## 패키지 종속성 검증

## 디스크 공간 요구 검증 중

## 이미 설치되어 있는 패키지와의 충돌 여부를 확인하고 있습니다.

## setuid/setgid 프로그램 점검


이 패키지에는 설치 과정 중 수퍼유저 권한으로 실행될 스크립트가

있습니다.


<SUNWzsh>(을)를 계속 설치하겠습니까 [y,n,?] y


Z shell (zsh)(을)를 <SUNWzsh>(으)로 설치


## 1째 (전체: 1) 부분 설치

4985 블록


<SUNWzsh>(이)가 성공적으로 설치되었습니다.



③ 패키지 설치 후 확인

(s10) <root> [/cdrom/cdrom0/Solaris_10/Product]:# pkginfo SUNWzsh

system      SUNWzsh Z shell (zsh)

(s10) <root> [/cdrom/cdrom0/Solaris_10/Product]:# pkginfo -l SUNWzsh

   PKGINST:  SUNWzsh

      NAME:  Z shell (zsh)

  CATEGORY:  system

      ARCH:  i386

   VERSION:  11.10.0,REV=2005.01.08.01.09

   BASEDIR:  /

    VENDOR:  Sun Microsystems, Inc.

      DESC:  Z shell (zsh)

    PSTAMP:  sfw10-x20050108014711

  INSTDATE:  Oct 25 2016 11:05

   HOTLINE:  Please contact your local service provider

    STATUS:  설치 완료

     FILES:      594 설치된 경로 이름

  6 공유 경로 이름

  1 연결된 파일

 32 디렉토리

 30 실행 가능

5089 블록이 사용됨 (추정치)



// 패키지 설치된 경로 확인

(s10) <root> [/cdrom/cdrom0/Solaris_10/Product]:# pkgchk -v SUNWzsh





- cf) 패키지 설치된 경로 확인 ( SUNWtnetc 패키지를 예로 들었다. )

(s10) <root> [/cdrom/cdrom0/Solaris_10/Product]:# pkgchk -l SUNWtnetc | grep name

Pathname: /usr

Pathname: /usr/bin

Pathname: /usr/bin/telnet


(s10) <root> [/cdrom/cdrom0/Solaris_10/Product]:# pkgchk -v SUNWtnetc

/usr

/usr/bin

/usr/bin/telnet

반응형

댓글