installp 명령어 (AIX 5.3·6.1)

핵심 정리

  • AIX 소프트웨어(파일셋)를 설치하고 갱신합니다. 가장 흔한 형태: 미리 보기 installp -pacgXd /dir all → 실제 설치 installp -acgXYd /dir all.
  • 동작은 -a(적용), -c(확정), -r(거부: 적용만 한 갱신을 되돌림), -u(제거), -C(중단된 설치 정리)입니다. -ac는 적용과 확정을 한 번에 합니다.
  • 적용(APPLIED)만 한 갱신은 이전 파일을 저장해 두므로 -r로 되돌릴 수 있습니다. 확정(COMMITTED)하면 저장 파일을 지워 되돌릴 수 없습니다. installp -s로 확정·거부할 수 있는 목록을 봅니다.
  • -g(선행 조건 자동 포함), -X(파일 시스템 자동 확장), -Y(라이선스 동의), -d(매체·디렉터리), -e(로그 파일)를 자주 씁니다.
  • 디렉터리에 이미지를 두었으면 먼저 inutoc로 .toc를 만듭니다. 전체 갱신은 smitty update_all이나 install_all_updates가 더 편합니다. ksh·csh의 noclobber는 꺼야 합니다.
항목 내용
버전 AIX 5.3, AIX 6.1 (6.1에서 -R(설치 위치)이 모든 구문에 더해지고 RBAC 안내가 더해짐)
원문 IBM Commands Reference — 5.3 Volume 3, 6.1 Volume 3
파일 /usr/sbin/installp, /usr/sys/inst.images, /var/adm/sw/installp.summary
관련 명령어 lslpp, inutoc, instfix, emgr, lppchk, bffcreate, install_all_updates

목적

호환되는 설치 패키지에 든 소프트웨어 제품을 설치합니다.

영어 원문

Installs available software products in a compatible installation package.

구문

text
installp [ -R path ] [ -a | -a -c [ -N ] ] [ -e LogFile ] [ -V Number ] [ -d Device ] [ -E ] [ -Y ] [ -b ] [ -S ] [ -B ] [ -D ] [ -I ] [ -p ] [ -Q ] [ -q ] [ -v ] [ -X ] [ -F | -g ] [ -O { [ r ] [ s ] [ u ] } ] [ -t SaveDirectory ] [ -w ] [ -z BlockSize ] { FilesetName [ Level ]... | -f ListFile | all }
installp [ -R path ] -c [ -e LogFile ] [ -V Number ] [ -b ] [ -g ] [ -p ] [ -v ] [ -X ] [ -O { [ r ] [ s ] [ u ] } ] [ -w ] { FilesetName [ Level ]... | -f ListFile | all }
installp [ -R path ] -r [ -e LogFile ] [ -V Number ] [ -b ] [ -g ] [ -p ] [ -v ] [ -X ] [ -O { [ r ] [ s ] [ u ] } ] [ -w ] { FilesetName [ Level ]... | -f ListFile }
installp [ -R path ] -u [ -e LogFile ] [ -V Number ] [ -b ] [ -g ] [ -p ] [ -v ] [ -X ] [ -O { [ r ] [ s ] [ u ] } ] [ -w ] { FilesetName [ Level ]... | -f ListFile }
installp [ -R path ] -C [ -b ] [ -e LogFile ]
installp { -l | -L } [ -e LogFile ] [ -d Device ] [ -B ] [ -I ] [ -q ] [ -E ] [ -z BlockSize ] [ -O { [ s ] [ u ] } ]
installp { -A | -i } [ -e LogFile ] [ -d Device ] [ -B ] [ -I ] [ -q ] [ -z BlockSize ] [ -O { [ s ] [ u ] } ] { FilesetName [ Level ]... | -f ListFile | all }
installp -s [ -e LogFile ] [ -O { [ r ] [ s ] [ u ] } ] [ -w ] { FilesetName [ Level ]... | -f ListFile | all }
installp { -l | -L } { -M Platform } [ -e LogFile ] [ -d Device ] [ -B ] [ -I ] [ -q ] [ -z BlockSize ] [ -O { [ s ] [ u ] } ]

차례로 적용(또는 적용과 확정), 적용한 갱신 확정, 적용한 갱신 거부, 설치한 소프트웨어 제거, 실패한 설치 정리, 매체의 설치 가능 소프트웨어 나열, 고친 문제(APAR) 나열·보충 정보 보기, 적용했지만 확정하지 않은 갱신 나열, 플랫폼별 설치 가능 소프트웨어 나열입니다. 5.3의 구문에는 -R path가 없습니다.

설명

참고:

  1. 설치하는 환경에서 Korn 셸이나 C 셸의 noclobber 옵션을 꺼야 합니다.
  2. 전체 갱신(update all)은 smitty나 install_all_updates로 할 수 있습니다.

installp 명령은 소프트웨어를 설치하고 갱신합니다.

파일셋(fileset)은 설치할 수 있는 가장 작은 기본 단위입니다. 예를 들어 bos.net.tcp.client 4.1.0.0은 파일셋입니다. 파일셋 갱신은 수정 수준이나 수정(fix) 수준이 다른 이미지로, bos.net.tcp.client 4.1.0.2와 4.1.1.0은 모두 bos.net.tcp.client 4.1.0.0의 갱신입니다.

기본 수준(파일셋)을 설치하면 자동으로 확정됩니다. 파일셋은 상태(확정, 깨짐, 확정되고 갱신이 적용됨, 확정되고 갱신도 확정됨)와 상관없이 제거할 수 있습니다.

파일셋 갱신을 적용하면 갱신이 설치되고, 그 소프트웨어의 현재 버전은 나중에 되돌아갈 수 있도록 디스크의 특별한 저장 디렉터리에 저장됩니다. 새 버전을 적용하면 그 버전이 현재 활성 버전이 됩니다.

적용한 갱신은 나중에 확정하거나 거부할 수 있습니다. installp -s로 확정하거나 거부할 수 있는 갱신 목록을 봅니다.

-c로 확정하면 그 버전을 쓰기로 정하는 것입니다. 이전 버전의 저장 파일을 모두 지우므로 이전 버전으로 돌아갈 수 없습니다. 설치할 때 -ac로 바로 확정할 수도 있습니다.

참고: 이미 적용한 갱신을 확정해도 현재 활성 버전은 바뀌지 않습니다. 이전 버전의 저장 파일만 지웁니다.

-u로 기본 수준을 제거하면 그 제품과 모든 갱신의 파일을 지웁니다. 제품에 관한 시스템 구성 정보도 대부분 정리하지만, 제품에 따라 다르며 완전하지 않을 수 있습니다.

-r로 갱신을 거부하면 현재 버전이 그 갱신 바로 전 버전으로 바뀝니다. 거부한 갱신과 그 뒤에 적용한 갱신의 저장 파일을 지웁니다.

제거할 제품은 어떤 상태여도 됩니다. 제품의 갱신은 적용이나 확정 상태일 수 있으며 함께 지웁니다.

이전 설치가 중단되어 소프트웨어가 적용 중(applying)이나 확정 중(committing) 상태로 남았으면, 다른 설치를 하기 전에 -C로 정리해야 합니다. installp -C는 명령줄에 제품 이름을 받아도 오류를 내지 않지만 늘 모든 제품을 정리하려 합니다. 이전에 끝난 부분을 지워 불완전한 설치를 정리하고, 이전 버전이 있으면 그것을 현재 활성 버전으로 되돌리려 합니다. 그럴 수 없으면 제품을 깨짐(broken)으로 표시하며, 그대로 쓰면 결과를 예측할 수 없으므로 다시 설치하는 것이 좋습니다.

다른 저장 디렉터리(-t)

-t는 갱신이 바꾸는 파일을 저장할 다른 위치를 지정합니다. 주로 다음 두 경우에 씁니다.

  • 로컬 디스크 공간은 충분하지만 root와 /usr 파일 시스템을 영구히 늘리고 싶지 않을 때. 저장 디렉터리용 파일 시스템을 따로 만들고, 갱신에 만족해 모두 확정한 뒤 그 파일 시스템을 지워 공간을 되찾습니다.
  • 로컬 디스크 공간은 모자라지만 원격 시스템에 공간이 넉넉할 때. 원격 파일 시스템에서 마운트한 디렉터리를 지정합니다. 원격 파일 시스템을 쓰면 가능한 한 빨리 확정합니다. -ac로 적용과 확정을 함께 하거나, 원치 않는 갱신을 거부할 수 있도록 적용만 했다면 빨리 시험하고 확정하거나 거부합니다.

다른 저장 디렉터리를 쓸 때 고려할 점:

  • installp를 실행할 때마다 같은 저장 위치를 쓰는 것이 좋습니다.
  • 적용할 때 쓴 저장 디렉터리가 있는 파일 시스템은 계속 마운트되어 있어야 하며, 재부팅할 때 자동으로 마운트되게 하는 것이 좋습니다.
  • 확정할 때 저장 디렉터리가 없으면 확정은 되지만 저장 디렉터리를 지울 수 없다는 경고가 나옵니다. 더 쓰지 않는 저장 디렉터리는 직접 지워 공간을 되찾아야 합니다.
  • 거부할 때 저장 디렉터리가 없으면 저장 파일이 없어 거부할 수 없으며, 오류와 함께 거부 작업 전체가 취소됩니다. 일시적인 문제(예: 원격 디렉터리에 연결할 수 없음)가 아니라면 확정하거나 적용 상태로 계속 두는 수밖에 없습니다.
  • 시스템을 백업할 때 루트 볼륨 그룹 밖의 저장 디렉터리도 백업합니다.
  • 설치 과정은 두 시스템이 같은 원격 저장 디렉터리를 쓰지 않게 막지만, 시스템마다 쉽고 고유하게 알아볼 수 있는 경로(예: 호스트 이름 포함)를 씁니다.
  • 원격 저장 디렉터리를 쓰는 시스템의 mksysb 백업을 다른 시스템에 복원하지 않습니다. 같은 원격 저장 디렉터리를 여러 시스템이 소유하게 됩니다.

매체의 내용 보기

installp -A는 지정한 소프트웨어 패키지에서 고친 고객 보고 문제의 APAR 번호와 요약을 보여 주고, installp -i는 패키지에 든 보충 정보 파일을 보여 줍니다.

설치 매체의 모든 소프트웨어 제품과 갱신은 installp -l로 봅니다. 출력은 다음과 비슷합니다.

text
# Fileset Name                Level        I/U Q Content
# ===============================================================
  X11.adt.include             4.1.0.0       I  N usr
# AIX windows Application Development Toolkit Include F
  X11.adt.lib                 4.1.0.0       I  N usr
# AIX windows Application Development Toolkit Libraries
  X11.apps.msmit              4.1.0.0       I  N usr
# AIX windows msmit Application
필드 설명
Fileset Name 설치할 파일셋 이름
Level 설치할 파일셋 수준
I/U 파일셋이 속한 패키지 유형. I는 설치 패키지, S는 단일 갱신, SR은 필수 갱신(만나면 입력 목록에 자동으로 포함), SF는 installp 파일셋용 필수 갱신, M은 유지 보수·기술 수준 패키지(다른 갱신 목록만 담고 파일은 없음), ML은 새 유지 보수·기술 수준을 나타내는 갱신 패키지(이전 수준 이후 모든 갱신의 누적)
Q 정지(quiescent) 열. Y는 설치가 실행 중인 프로세스에 영향을 줄 수 있음(제품 문서 참고), N은 영향 없음, B는 bosboot와 정지 필요, b는 bosboot 필요·정지 불필요
Content usr,root는 /usr와 root 파일 시스템, usr는 /usr만, share는 /usr/share만(모두 AIX 3.2 이후)

installp -s(확정하거나 거부할 수 있는 적용된 갱신 목록)의 출력은 다음과 비슷합니다.

text
Installp Status
---------------
Name                  Part    Level      State
---------------------------------------------------
bos.net.tcp.client    USR     4.1.0.2    APPLIED
bos.net.tcp.client    ROOT    4.1.0.2    APPLIED
bos.rte.commands      USR     4.1.0.1    APPLIED
필드 설명
Name 설치된 파일셋 이름
Part 파일셋 부분. ROOT는 root 파일 시스템, SHARE는 /usr/share, USR은 /usr
Level 설치된 수준
State 설치된 상태

설치할 대상 지정

  • 키워드 all: 지정한 설치 매체의 소프트웨어를 모두 설치합니다.
  • 소프트웨어 이름 목록(각각 뒤에 수준을 붙일 수 있음).
  • -f와 파일 이름: 파일의 각 줄에 이름(과 선택적으로 수준)을 적으며, #로 시작하는 줄은 주석입니다.

참고: installp는 파일을 복원한 뒤 sysck로 검증합니다. sysck는 파일 이름의 다음 특수 문자를 알아보지 못하므로, 이런 문자가 든 파일 이름이 있으면 설치가 실패합니다.

text
~  '  '  \  "  $  ^  &  ( )  |  {}  []  <>  ?

FilesetName으로 제품 전체나 그 안의 개별 설치 파일셋을 지정합니다. 예를 들어 bos.net은 패키지 이름이고 그 안의 개별 파일셋은 bos.net.ncs.client, bos.net.nfs.client, bos.net.tcp.client입니다. bos.net을 주면 이 파일셋을 모두, bos.net.tcp.client를 주면 그것만 설치합니다.

Level은 설치할 수준이며 vv.rr.mmmm.ffff 형식입니다.

필드 뜻
vv 버전(1~2자리)
rr 릴리스(1~2자리)
mmmm 수정 수준(1~4자리). 유지 보수 수준이나 기술 수준이라고도 함
ffff 수정(fix) 수준(1~4자리)

설치 패키지만 든 매체에서 설치하면 수준을 주지 않아도 됩니다. 한 매체에 수준이 다른 설치 패키지가 함께 있는 일은 드물지만, 그럴 때 수준을 주지 않으면 가장 높은 수준을 설치합니다. 갱신 패키지만 있거나 설치·갱신 패키지가 함께 있는 매체에서 수준을 주지 않으면 그 FilesetName에 맞는 갱신 패키지도 모두 설치합니다. 설치·갱신 패키지가 함께 있으면 -I(설치 패키지만)나 -B(갱신 패키지만)로 고를 수 있습니다. 일부 갱신만 설치하려면 갱신마다 FilesetName과 Level을 줘야 합니다.

예: /usr/sys/inst.images에 있는 TCP/IP와 그 갱신 하나를 설치합니다.

bash
installp -a -d/usr/sys/inst.images bos.net.tcp.client 4.1.0.0 bos.net.tcp.client 4.1.0.2

참고: 같은 수준의 파일셋이 중복되면 설치 목차(.toc)에서 처음 찾은 것을 씁니다. bffcreate로 여러 매체의 이미지를 한 디렉터리에 풀면 생길 수 있으므로, 같은 파일셋의 같은 수준 갱신 이미지와 기본 이미지를 같은 디렉터리에 풀지 않습니다.

installp 출력 끝에는 설치하려던 각 제품의 상태를 보여 주는 요약 보고서가 나옵니다. 위 명령의 요약 보고서 예:

text
Installp Summary
----------------
Name                  Level      Part    Event    Result
---------------------------------------------------------
bos.net.tcp.client    4.1.0.0    USR     APPLY    SUCCESS
bos.net.tcp.client    4.1.0.0    ROOT    APPLY    SUCCESS
bos.net.tcp.client    4.1.0.2    USR     APPLY    SUCCESS

참고:

  1. 이전에 설치한 파일셋 갱신이 깨짐 상태이면 다시 설치할 때 -acgN을 써야 합니다.
  2. 2GB보다 큰 mkinstallp 패키지나 BFF 이미지는 설치할 수 없습니다. 2GB보다 작은 여러 패키지로 나눕니다.
  3. 임시 수정 관리자(emgr)가 잠근 파일셋을 갱신하려 하면 잠긴 파일셋을 알려 줍니다. 잠긴 파일셋은 lslpp에서 EFIXLOCKED로 나옵니다.
  4. 설치된 빌드 날짜가 선택한 파일셋의 빌드 날짜보다 최근이면 메시지를 보여 줍니다.
영어 원문

Note:

  1. The noclobber option of the Korn or C shell must be unset in the environment from which an installation is performed.

  2. Update all can be accomplished with smitty or with install_all_updates.

The installp command installs and updates software.

A fileset is the lowest installable base unit. For example, bos.net.tcp.client 4.1.0.0 is a fileset. A fileset update is an image with a different modification level or a different fix level. For example, bos.net.tcp.client 4.1.0.2 and bos.net.tcp.client 4.1.1.0 are both fileset updates for bos.net.tcp.client 4.1.0.0.

When a base level (fileset) is installed on the system, it is automatically committed. You can remove a fileset regardless of the state (such as committed, broken, committed with applied updates, and committed with committed updates).

When a fileset update is applied to the system, the update is installed. The current version of that software, during installation, is saved in a special save directory on the disk so that later you can return

to that version if desired. After a new version of a software product has been applied to the system, that version becomes the currently active version of the software.

Updates that have been applied to the system can be either committed or rejected at a later time. The installp -s command can be used to get a list of applied updates that can be committed or rejected.

When updates are committed with the -c flag, the user is making a commitment to that version of the software product. The saved files from all previous versions of the software product are removed from the system, making it impossible to return to a previous version of the software product. Software can be committed at the time of installation by using the -ac flags.

Note: Committing the already applied updates does not change the currently active version of a software product. It merely removes saved files for previous versions of the software product.

When a base level is removed with the -u flag, the files that are part of the software product and all its updates are removed from the system. Most cleanup of system configuration information pertaining to the product is also done, but this is dependent on the product and may not always be complete.

When a software product update is rejected with the -r flag, the current version of the software product is changed to the immediate previous version of the update. Files saved for the rejected update and any updates that were applied after it are removed from the system.

A software product that is to be removed from the system can be in any state. Product updates can be in either the applied or committed state, and they will also be removed.

If a previously interrupted installation leaves any software in a state of either applying or committing, it is necessary to perform cleanup with the -C flag before any further installations are allowed. Although the installp -C command accepts software product names on the command line without returning an error, an attempt is always made to clean up all products when the -C flag is used. An attempt is made to clean up any incomplete installations by removing those parts that were previously completed. An attempt is also made to return to the previous version of the software product, if one exists, as the currently active version. If this cannot be done, the software product is marked as broken, and unpredictable results can occur if the user attempts to use it. Therefore, it is advisable for the user to reinstall any broken software products or updates.

The -t flag specifies an alternate location for a save directory that holds files being replaced by an update. This option is primarily useful in the following two circumstances.

  • You have enough local disk space for saving replaced files but you do not want to permanently expand the root and /usr file systems. In this case, you can choose to create a separate file system for the alternate save directory. When you are satisfied with the updated system and have committed all applied updates, disk space can be retrieved by deleting the save file system.

  • You do not have enough local disk space for saving replaced files but you have access to ample disk space on a remote system. In this case, you can specify a directory that is mounted from a remote file system. If a remote file system is used, commit the updates as soon as possible. You may want to initiate the installation action as an apply and commit operation with the -ac flags. If you want to apply only to be able to reject unwanted updates, then test the newly installed updates as soon as possible and then commit or reject them. Take into account the following considerations when using an alternate save directory:

  • It is recommended that you use the same alternate save location on each invocation of the installp command.

  • If an alternate save directory is used for an apply operation, make sure that the file system containing that directory remains mounted. It is highly recommended that any necessary mounts be done automatically on a reboot.

  • If an alternate save directory is missing on a commit operation, the commit takes place, a warning is given stating that the save directory could not be deleted. In this case, you must delete the save directories that are no longer used in order to retrieve that disk space.

  • If an alternate save directory is missing on reject, the reject operation cannot be done because the saved files are missing. An error is given, and the entire reject operation is canceled. If the missing save directory is not caused by a temporary situation (for example, the inability to contact a remote directory on the network) your only options are to commit the updates or leave them in an applied state permanently.

  • When doing a system backup, ensure that you back up any alternate save directories that do not reside in the root volume group.

  • The installation process safeguards users with a remote save directory from the possibility of two different systems using the same remote directory. However, use directory path names that easily and uniquely identify each user's system. For example, you can add the system's host name in the path name.

  • Do not create a mksysb backup of a system with a remote save directory and then try to restore the mksysb image onto a system other than the original. In this case, using a mksysb image to install several like systems causes multiple ownership of the same remote save directory.

The installp -A command can be used to obtain a list of the Authorized Program Analysis Report (APAR) numbers and summaries for all customer-reported problems that are fixed in the specified software package. The installp -i command can be used to display supplemental information contained in files that can be a part of the specified software package.

To list all the software products and updates on the specified installation media, use the installp -l command. The output of the installp command with the -l flag resembles the following: # Fileset Name Level I/U Q Content #================================================================

X11.adt.include 4.1.0.0 I N usr

# AIX windows Application Development Toolkit Include F

X11.adt.lib 4.1.0.0 I N usr

# AIX windows Application Development Toolkit Libraries #

X11.adt.motif 4.1.0.0 I N usr

# AIX windows Application Development Toolkit Motif

#

X11.adt.bitmaps 4.1.0.0 I N usr

# AIX windows Application Development Toolkit Bitmap Fi

#

X11.adt.ext 4.1.0.0 I N usr

# AIX windows Application Development Toolkit for X Ext #

X11.adt.imake 4.1.0.0 I N usr

# AIX windows Application Development Toolkit imake #

X11.apps.rte 4.1.0.0 I N usr

# AIX windows Runtime Configuration Applications #

X11.apps.msmit 4.1.0.0 I N usr

# AIX windows msmit Application

The field descriptions are as follows:

  • Fileset Name — Name of the fileset to be installed.
  • Level — Level of the fileset to be installed.
  • I/U — The type of package to which the fileset belongs. The fileset can belong to an installation package or to one of several types of update packages. The package types are as follows: I Indicates an installation package. S Indicates a single update. SR Indicates a required update. Whenever the installp command encounters a required update, the update is automatically included in the input list. SF Indicates a required update. Whenever the installp command encounters a required update, the update is automatically included in the input list. Reserved for updates to the installp fileset. M Indicates a maintenance or technology package. This is a packaging update that contains only a list of other updates to be applied. This package delivers no files. ML Indicates an update package that identifies a new maintenance or technology level for the product. This is a cumulative set of all updates since the previous product level.
  • Q — Quiescent (quiet) column. A Y indicates that running processes can be affected by the installation of this fileset. Refer to the documentation supplied with the software product. An N indicates that running processes are not affected by the installation of this fileset. A B indicates bosboot and quiescent. A b indicates bosboot and not quiescent.
  • Content — Content column: usr,root /usr and root file systems (AIX 3.2 and later) usr /usr file system only (AIX 3.2 and later) share /usr/share file system only (AIX 3.2 and later)

Output from the installp -s command, which is used to get a list of applied software fileset updates and updates that are available to be either committed or rejected, resembles the following: Installp Status --------------- Name Part Level State -------------------------------------------------------------------- bos.net.tcp.client USR 4.1.0.2 APPLIED bos.net.tcp.client ROOT 4.1.0.2 APPLIED bos.rte.commands USR 4.1.0.1 APPLIED bos.rte.misc_cmds USR 4.1.0.1 APPLIED bos.rte.tty USR 4.1.0.1 APPLIED

The field descriptions are as follows:

  • Name — Name of the installed software product fileset.
  • Part — The part of the fileset where:
  • ROOT — root file system
  • SHARE — /usr/share file system
  • USR — /usr file system.
  • Level — The level of the installed software product option.
  • State — The state of the installed software product option.

The software products and updates to be installed can be identified in one of following ways:

  • by the keyword all, which indicates that all software contained on the specified installation media is to be installed

  • by a list of software product names (each of which can optionally be followed by a level) that indicates the software to be installed

  • by the -f flag followed by a file name, where each line in the file is an entry containing a software product name, optionally followed by a level, or is a comment line that begins with a # and is ignored

Note: The installp program uses the sysck command to verify files after restoring them. The sysck command does not recognize the following special characters in file names: ~, ', ', \, ", $, ^, &, ( ), |, , [], <>, and ?. If a file name contains any of these characters, installation fails.

The FilesetName parameter can be used to specify an entire software product or any separately installable filesets within the software package. For example, bos.net is the name of a software package, and the separately installable filesets within that software package are bos.net.ncs.client, bos.net.nfs.client, and bos.net.tcp.client. If the user specifies bos.net for the FilesetName parameter, then all of the separately installable filesets listed are installed. If the user specifies bos.net.tcp.client for the FilesetName parameter, then only that fileset is installed.

The Level parameter indicates the level of the software product or update that is to be installed. The Level parameter is of the form vv.rr.mmmm.ffff where:

  • vv — is a numeric field of 1 to 2 digits that represents the version number.
  • rr — is a numeric field of 1 to 2 digits that represents the release number.
  • mmmm — is a numeric field of 1 to 4 digits that represents the modification level. Modification level is also called maintenance level or technology level.
  • ffff — is a numeric field of 1 to 4 digits that represents the fix level.

If a user is installing an installation package from installation media that contains only installation packages it is not necessary to specify the level. More than one software product installation package with different levels does not often exist on the same installation medium. However, when this does occur installp installs the specified software product at the latest software product level when Level is not specified with FilesetName. For installation media that contain either update packages only or contain both installation and update packages, all applicable update packages that are present on the installation media for the specified FilesetName are also installed when Level is not specified. For installation media that contain both installation and update packages the user can request the installation of only installation packages or only update packages by specifying the -I or -B flags, respectively. If the user wants to install only some of the updates on the installation medium for a specific software product both FilesetName and Level for each of the updates to be installed for that software product must be specified.

You can use the following example to install TCP/IP and one of its updates that are both contained in the /usr/sys/inst.images directory. installp -a -d/usr/sys/inst.images bos.net.tcp.client 4.1.0.0 bos.net.tcp.client 4.1.0.2

Note: If there are duplicate filesets at the same level, installp uses the first one that it finds in the install table of contents ( .toc). This situation can occur when bffcreate is used to extract images from different media to the same installation directory. For this reason, make sure that update images are not extracted to the same directory as base level images for the same fileset at the same level.

A summary report is given at the end of the installp output that lists the status of each of the software products that were to be installed. An example summary report for the previous installp command is as follows: Installp Summary ---------------- Name Level Part Event Result -------------------------------------------------------------------- bos.net.tcp.client 4.1.0.0 USR APPLY SUCCESS bos.net.tcp.client 4.1.0.0 ROOT APPLY SUCCESS bos.net.tcp.client 4.1.0.2 USR APPLY SUCCESS

Note:

  1. If a previously installed level of a fileset update is in the broken state, the -acgN flags must be used when that fileset update is installed again.

  2. The installp command cannot install a mkinstallp package or bff image that is larger than 2 GB in size. An alternative is to break the bff image into multiple packages that are less than 2 GB in size.

  3. If an attempt is made to update a fileset that is locked by the interim fix manager (the emgr command), a notice is displayed indicating the filesets that are locked. The lslpp command shows that any locked filesets are in the EFIXLOCKED state.

  4. If an attempt is made to update a fileset that has an installed build date more recent than the build date of the selected fileset, a message is displayed to indicate this.

Summary Report Values

요약 보고서는 제품 옵션 이름과 부분, 요청한 동작(event)과 그 결과를 보여 줍니다.

Event 값

값 뜻
APPLY 파일셋을 적용하려 함
COMMIT 파일셋 갱신을 확정하려 함
REJECT 파일셋 갱신을 거부하려 함
CLEANUP 파일셋을 정리하려 함
DEINSTALL 파일셋을 제거하려 함

Result 값

값 뜻
SUCCESS 성공
FAILED 실패
CANCELLED 사전 검사는 통과했지만 시작하기 전에 취소해야 했음. Ctrl+C로 설치를 중단하면 취소될 수 있지만, 대개 Ctrl+C는 예측할 수 없는 결과를 낳음
영어 원문

The summary report identifies the name of the product option and the part of the product. Other information given includes the requested action (event) and the result of that action.

Event Values

The Event column of the summary report identifies the action that has been requested of the installp command. The following values are displayed in this column:

Event Definition APPLY An attempt was made to apply the specified fileset. COMMIT An attempt was made to commit the specified fileset update. REJECT An attempt was made to reject the specified fileset update. CLEANUP An attempt was made to perform cleanup for the specified fileset. DEINSTALL An attempt was made to remove the specified fileset.

Result Values

The Result column of the summary report gives the result of installp performing the requested action. It can have the following values:

Result Definition SUCCESS The specified action succeeded. FAILED The specified action failed. CANCELLED Although preinstallation checking passed for the specified option, it was necessary to cancel the specified action before it was begun. Interrupting the installation process with Ctrl+c can sometimes cause a canceled action, although, in general, a Ctrl+c interrupt causes unpredictable results.

플래그

플래그 설명
-A 지정한 패키지에서 고친 고객 보고 문제의 APAR 번호와 요약을 보여 줍니다. 설치는 하지 않습니다.
-a 소프트웨어 제품이나 갱신을 적용합니다. 기본 동작입니다. -c와 함께 쓰면 적용과 확정을 함께 합니다.
-b 필요하더라도 bosboot를 하지 않습니다.
-B 갱신만 대상으로 합니다.
-C 중단된 설치를 정리하고 이전 설치의 불완전한 부분을 지우려 합니다. 소프트웨어가 적용 중이나 확정 중 상태면 반드시 해야 하며, 필요할 때 직접 실행할 수도 있습니다. 다른 플래그와 매개변수도 받지만 무시합니다.
-c 적용했지만 확정하지 않은 갱신을 확정합니다. 의존하는 제품(선행·동시 조건)도 확정되어 있어야 하며, 아니면 실패합니다. -g로 선행 조건 갱신을 자동으로 확정할 수 있습니다.
-D 설치에 성공한 뒤 설치 이미지 파일을 지웁니다. -g로 자동 포함한 제품의 이미지도 지웁니다. -a나 -ac와 함께만 쓰며 -Or와는 쓸 수 없습니다. 장치가 디렉터리이고 설치하는 시스템의 이미지 파일일 때만 유효합니다.
-d Device 설치 매체 위치. 테이프나 디스켓 같은 장치, 설치 이미지가 있는 디렉터리, 설치 이미지 파일 자체일 수 있습니다. 제품 테이프나 수정 서비스 테이프는 닫을 때 되감지 않고 열 때 다시 감지 않는 장치(예: 고밀도 /dev/rmt0.1, 저밀도 /dev/rmt0.5)로 지정합니다. 기본 장치는 /dev/rfd0입니다.
-e LogFile 이벤트 기록. 출력의 일부를 LogFile에 덧붙입니다. 기본 출력은 stdout과 stderr이며, SMIT나 VSM을 쓰면 smit.log로 갑니다. LogFile은 이미 있고 쓸 수 있어야 하며 충분한 공간이 필요합니다. 로그는 순환하지 않고, 모든 출력을 덧붙이지는 않습니다. 저작권 정보는 화면에 나오고, 오류 메시지와 결과 요약은 화면과 LogFile에 모두 나옵니다. 주로 NIM과 BOS 설치가 화면 출력을 줄이고 정보를 남기려고 씁니다.
-E 소프트웨어 라이선스 계약을 보여 줍니다. -a나 -l과 함께만 씁니다. -a와 함께면 선택한 파일셋의 대기 중인 라이선스 계약을, -l과 함께면 매체의 모든 파일셋의 라이선스 계약을 보여 줍니다.
-F 같거나 더 새로운 버전이 이미 설치되어 있어도 강제로 설치합니다. 갱신 패키지나 -g와 함께 쓸 수 없으며, -I를 포함합니다.
-f ListFile 제품 이름을 ListFile에서 읽습니다. -(빼기)면 표준 입력에서 읽습니다. 한 줄에 이름(과 선택적으로 수준) 하나이며, 둘째 공백 뒤의 내용은 무시합니다. installp -l의 출력을 그대로 입력으로 쓸 수 있습니다.
-g 설치나 확정할 때 선행 조건 제품·갱신도 자동으로 설치·확정하고, 제거나 거부할 때 의존하는 제품도 자동으로 제거·거부합니다. -F와 함께 쓸 수 없습니다. 지정한 갱신이 매체에 없으면 그것을 대체하는 갱신을 가져오며, 대체 갱신이 여럿이면 가장 새 것을 설치합니다.
-I (대문자 i) 기본 수준 파일셋만 대상으로 합니다.
-i 설치 매체에 있는 제품의 lpp.instr, lpp.doc, lpp.README, README 파일을 표준 출력으로 보여 줍니다. 파일셋이 많으면 오래 걸릴 수 있습니다.
-J SMIT 메뉴에서 실행할 때 씁니다.
-l (소문자 L) 설치 매체의 모든 소프트웨어 제품과 개별 설치 옵션을 나열합니다. 설치는 하지 않으며 -Or와 함께 쓸 수 없습니다.
-L 매체의 목차(TOC)를 콜론으로 구분해 보여 줍니다. smit과 vsm이 씁니다. 형식은 아래와 같습니다.
-M Platform 나열할 플랫폼. R은 POWER 프로세서 기반 플랫폼 전용 패키지, N은 POWER 전용이 아닌 중립 패키지, A는 모든 패키지.
-N 바뀌는 기존 파일을 저장하지 않습니다. -ac와 함께만 쓰며, 설치 중 시스템에 장애가 나면 바뀐 파일을 되살릴 수 없습니다.
-O { [r] [s] [u] } 제품의 지정한 부분을 설치합니다. r은 /(root), s는 /usr/share, u는 /usr 부분입니다. 일반 시스템은 기본으로 모든 부분을 설치하므로 필요 없고, NIM이 디스크 없는·데이터 없는 워크스테이션을 설치할 때 씁니다. -Or는 -d, -l과 함께 쓸 수 없습니다.
-p 지정한 동작의 사전 검사를 모두 실행해 미리 봅니다. -a, -c, -r, -u와 함께만 씁니다.
-Q instrequisite 때문에 설치되지 않는 제품의 오류와 경고를 보여 주지 않습니다.
-q 조용한 모드. 매체 볼륨 바꾸기 말고는 장치를 묻지 않습니다.
-r 적용했지만 확정하지 않은 갱신을 거부합니다. 그 갱신을 선행 조건으로 가진 제품도 거부해야 하며, -g로 자동으로 거부할 수 있습니다. all은 쓸 수 없습니다.
-R path (6.1) 사용자가 지정한 설치 위치.
-s 적용했지만 확정하지 않은 모든 제품과 갱신, 곧 확정하거나 거부할 수 있는 소프트웨어를 나열합니다.
-S 설치 장치가 CD-ROM일 때 다중 볼륨 처리를 하지 않습니다. CD-ROM 설치는 늘 단일 볼륨으로 처리하며, 환경 변수 INU_SINGLE_CD를 정해도 같습니다.
-t SaveDirectory 갱신이 바꾸는 파일을 저장할 다른 위치. 갱신의 적용이나 적용·확정에만 쓰며 -N과 함께 쓸 수 없습니다. 기본 파일 시스템(/, /usr)에 공간이 모자라거나 영구히 늘리고 싶지 않을 때 씁니다. 원격 파일 시스템도 되지만 installp가 늘릴 수 없으므로 공간이 넉넉해야 합니다.
-u 지정한 제품과 설치된 갱신을 모두 제거합니다. 제품은 확정이나 깨짐 상태일 수 있습니다. 의존하는 제품도 입력 목록에 넣어야 하며, -g를 주면 자동으로 포함합니다. bos.rte 파일셋은 제거할 수 없습니다.
-v 설치 뒤 파일셋의 모든 파일 체크섬이 맞는지 검증합니다. 파일 크기는 늘 검증합니다. 네트워크나 원격 장치로 설치한 뒤 쓰며, 오류가 나면 다시 설치해야 할 수 있습니다. 설치 뒤 선행 조건 일관성 검사도 합니다.
-V Number 사전 설치 출력의 자세한 정도(2, 3, 4). 기본은 FAILURES, WARNINGS, SUCCESSES를 알파벳순으로 보여 주고 실패 원인을 강조합니다. 2는 실패·경고에 선행 조건 관계 설명을 더하고 성공을 처리 순서대로, 3은 2에 성공의 선행 조건 정보를 더하고, 4는 실패의 선행 조건 관계를 자세히 보여 줍니다. 2 이상이면 복원한 파일도 나오므로, smit으로 실행할 때 /smit.log가 커져 /가 차지 않게 주의합니다.
-w FilesetName에 와일드카드를 붙이지 않습니다. smit에서 고른 파일셋만 설치하게 할 때 씁니다. 예를 들어 foo.rte를 고르면 기본으로 함께 들어오는 foo.rte.bar가 들어오지 않습니다.
-X 공간이 모자라면 파일 시스템을 늘리려 합니다. 패키지가 주는 크기 추정치로 늘리며, 같은 파일 시스템에서 다른 파일이 늘어나면 그래도 모자랄 수 있습니다. 원격 파일 시스템은 늘릴 수 없습니다.
-Y 설치할 소프트웨어의 필수 라이선스 계약에 동의합니다. -a와 함께만 씁니다.
-z BlockSize 설치 매체의 블록 크기(바이트). 기본 512.
FilesetName 설치할 제품 이름. 제품 전체나 개별 설치 파일셋, 파일셋 갱신을 지정합니다.
Level 설치할 수준(vv.rr.mmmm.ffff). 파일셋 갱신에 수정 ID(PTF ID)가 따로 있으면 vv.rr.mmmm.ffff.ppppppp처럼 함께 줍니다.

-L 출력 형식:

text
package:fileset:v.r.m.f:PTF:type:state:supersede:sup_ptf:sup_state:latest_sup:quiesce:Descr:netls_vendor_id:netls_prod_id:netls_prod_ver:relocatable:build date
영어 원문
  • -A — Displays the APAR number and summary of all customer-reported problems that are fixed in the specified software package. No installation is attempted.
  • -a — Applies one or more software products or updates. This is the default action. This flag can be used with the -c flag to apply and commit a software product update when installed.
  • -b — Prevents the system from performing a bosboot in the event that one is needed.
  • -B — Indicates that the requested action should be limited to software updates.
  • -C — Cleans up after an interrupted installation and attempts to remove all incomplete pieces of the previous installation. Cleanup must be performed whenever any software product or update is in a state of either applying or committing and can be run manually as needed. For backward compatibility, other flags and parameters can be accepted with installp -C, but are ignored because all necessary cleanup is attempted.
  • -c — Commits all specified updates that are currently applied but not committed. When an update is committed all other software products it is dependent on must also be committed (unless they are already in the committed state). The specified software product is dependent on any software product that is a prerequisite or corequisite of the specified product. If the requisite software products are not in the committed state, the commit fails and error messages are displayed. The -g flag can be used to automatically commit requisite software product updates.
  • -D — Deletes the installation image file after the software product or update has been successfully installed. When the -g flag is specified, the installation image files for any products that are automatically included are also deleted. This flag is valid only with the -a or -ac flags and is not valid with the -Or flag. This flag is also only valid when the device is a directory and an installation image file on the system where the installation is taking place.
  • -d Device — Specifies where the installation media can be found. This can be a hardware device such as tape or diskette, it can be a directory that contains installation images, or it can be the installation image file itself. When the installation media is a product tape or Corrective Service tape, specified the tape device as no-rewind-on-close and no-retension-on-open. Examples of this would be /dev/rmt0.1 for a high density tape, or /dev/rmt0.5 for a low density tape. Use the options specified by the tape supplier. The default device is /dev/rfd0.
  • -e LogFile — Enables event logging. The -e flag enables the user to append certain parts of the installp command output to the file specified by the LogFile variable. By default the output of the installp command goes to stdout and stderr, unless SMIT or VSM is used, in which case the output goes to the smit.log. The LogFile variable must specify an existing, writable file, and the file system in which the file resides must have enough space to store the log. The log file does not wrap. Not all output is appended. Copyright information is still displayed to the user. Error messages are displayed on the screen and are sent to the file specified by the LogFile variable. A results summary of the installp command invocation is also displayed on the screen and sent to the LogFile. This flag is primarily used by NIM and BOS install to limit the output shown to the user, but keep useful information for later retrieval.
  • -E — Displays software license agreements. This flag is only valid with the -a or -l flags. If the -E flag is specified with the -a flag, a new section is displayed showing the pending license agreements associated with the selected filesets. If the -E flag is specified with the -l flag, output is displayed showing the license agreements associated with all filesets on the media.
  • -F — This option can be used to force the installation of a software product even if there exists a previously installed version of the software product that is the same as or newer than the version currently being installed. The -F flag is not valid with update packages or the -g flag. When you use the -F flag, the -I flag is implicit.
  • -f ListFile — Reads the names of the software products from ListFile. If ListFile is a - (dash), it reads the list of names from the standard input. Software fileset names, optionally followed by a level, should be one per line of text, and any text following the second set of white spaces or tabs on a line is ignored. Output from the installp -l command is suitable for input to this flag.
  • -g — When used to install or commit, this flag automatically installs or commits, respectively, any software products or updates that are requisites of the specified software product. When used to remove or reject software, this flag automatically removes or rejects dependents of the specified software. The -g flag is not valid when used with the -F flag. Note: This flag also automatically pulls in a superseding update present on the media if the specified update is not present. This flag causes the newest update to be installed for a given fileset, when there are multiple superseding updates for the same fileset on the installation media.
  • -I — (uppercase i) Indicates that the requested action must be limited to base level filesets.
  • -i — Displays on standard output the lpp.instr, lpp.doc, lpp.README, and README files on the installation media for the software product, if they exist. This flag can take a significant amount of time for a large number of filesets.
  • -J — This flag is used when the installp command is executed from the System Management Interface Tool (SMIT) menus.
  • -l — (lowercase L) Lists all the software products and their separately installable options contained on the installation media to standard output. No installation occurs. The -l flag is not valid with the -Or flag.
  • -L — Displays the contents of the media by looking at the table of contents (TOC) and displaying the information in colon-separated output. This flag is used by smit and vsm to list content of the media. The format provided: package:fileset:v.r.m.f:PTF:type:state:supersede:\ sup_ptf:sup_state:latest_sup:quiesce:Descr:\ netls_vendor_id:netls_prod_id:netls_prod_ver:relocatable:build date
  • -MPlatform — Specifies the Platform value. Any of the following values can be used to list the installable software packages: R Specifies POWER® processor-based platform packages only. N Specifies neutral packages, that is, packages that are not restricted to the POWER processor-based platform. A Specifies all packages.
  • -N — Overrides saving of existing files that are replaced when installing or updating. This flag is valid only with the -ac flags. If there is a failure in the system during the installation, there is no recovery of replaced files when this flag is used.
  • -O{[r][s][u]} — Installs the specified part of the software product. The r indicates the / (root) part is to be installed, the s indicates the /usr/share part is to be installed, and the u indicates the /usr part is to be installed. The -O flag is not needed with standard systems because without this flag all parts are installed by default. This flag is needed for use with the installation of diskless or dataless workstations and is designed for use by the nim command. The -Or option is not valid with the -d or -l flags.
  • -p — Performs a preview of an action by running all preinstallation checks for the specified action. This flag is only valid with apply, commit, reject, and remove (-a, -c, -r, and -u) flags.
  • -Q — Suppresses errors and warnings concerning products failing to install due to instrequisites.
  • -q — Specifies quiet mode, which suppresses the prompt for the device, except for media volume change.
  • -r — Rejects all specified software updates that are currently applied but not committed. When a software update is rejected any other software product that is dependent on it (that is, those software products that have the specified software product as a requisite) must also be rejected. The -g flag can be used to reject automatically dependent software updates. The keyword all is not valid with the reject flag (-r).
  • -R path — Indicates a user-specified installation location.
  • -s — Lists information about all software products and updates that have been applied but not committed. This list comprises the software that is available to be either committed or rejected.
  • -S — Suppresses multiple volume processing when the installation device is a CD-ROM. Installation from a CD_ROM is always treated as a single volume, even if the CD-ROM contains information for a multiple volume CD set. This same suppression of multiple volume processing is performed if the INU_SINGLE_CD environment is set.
  • -t SaveDirectory — Specifies an alternate save directory location for files being replaced by an update. The -t flag is only valid with an apply or an apply/commit operation for updates. This flag is not valid with the -N flag. The -t flag is useful when there is insufficient space in the default file systems (/ and /usr) or when it is undesirable to permanently expand these file systems. It may be desirable for the specified directory to be a remote file system. A remote file system must have ample space, because the installp command cannot expand remote file systems.
  • -u — Removes the specified software product and any of its installed updates from the system. The product can be in either the committed or broken state. Any software products that are dependent on the specified product must also be explicitly included in the input list unless the -g flag is also specified. Removal of any bos.rte fileset is never permitted.
  • -v — Verifies that all installed files in the fileset have the correct checksum value after the installation. Installed files are always verified for correct file size after installation. Use this flag after network or remote device installations. If any errors are reported, it might be necessary to install the software product again. Post-installation requisite consistency checks are also started by this flag.
  • -V Number — Specifies the verbose option that provides four levels of detail for preinstallation output. The valid values for the Number parameter are 2, 3, or 4. The default level of verbosity, without the use of the -V flag, prints an alphabetically ordered list of FAILURES, WARNINGS, and SUCCESSES from preinstallation processing. Requisite failures are reported with emphasis on the real cause of the failure. Extraneous requisites for failed filesets are not displayed. The preinstallation output is modified by levels 2 through 4 as described below: 2 Prints alphabetically ordered list of FAILURES and WARNINGS. Requisite failures are displayed with additional information describing requisite relationships between selected filesets and the requisites causing them to fail. Failing requisites suppressed under Level 1 are displayed. Preinstallation SUCCESSES are displayed in the order in which they are processed. 3 Level 3 is the same as Level 2, with the exception that additional requisite information is displayed for SUCCESSES. 4 Level 4 is the same as Level 3 for SUCCESSES and WARNINGS. Requisite failures are displayed in a format depicting detailed requisite relationships. Note: If verbosity level 2 or higher is used, the files that are restored on to the system is shown in the output. Because this will make installp's output much more verbose, make sure that your / (root) file system does not become full when the /smit.log becomes large (if using smit to run installp).
  • -w — Does not wildcard FilesetName. Use this flag from smit so it only installs the fileset chosen and not the filesets that match. For example, if you choose foo.rte, foo.rte.bar is not automatically pulled in, as it would be by default, without the -w flag.
  • -X — Attempts to expand any file systems where there is insufficient space to do the installation. This option expands file systems based on current available space and size estimates that are provided by the software product package. Note that it is possible to exhaust available disk space during an installation even if the -X flag is specified, especially if other files are being created or expanded in the same file systems during an installation. Also note that any remote file systems cannot be expanded.
  • -Y — Agrees to required software license agreements for software to be installed. This flag is only valid with the -a flag.
  • -z BlockSize — Indicates in bytes the block size of the installation media. The default value of Size is 512.
  • FilesetName — This is the name of the software product to be installed and can specify either an entire software product or any separately installable filesets within the software product. This can be used to specify the name of a fileset or fileset update.
  • Level — This indicates the level of the software product or update that is to be installed and is of the form vv.rr.mmmm.ffff. If a fileset update has an additional fix ID (also know as ptf id), that ID must also be specified in the Level as in vv.rr.mmmm.ffff.ppppppp.

종료 상태

값 뜻
0 시도한 설치가 모두 성공했거나, 요청한 파일셋에 할 일이 없었음(예: 이미 설치됨)
0이 아님 설치의 일부가 성공하지 못함

출력 끝의 요약 보고서에 설치하려던 각 제품의 상태가 나옵니다. 설치하지 못했거나 실패한 제품은 설치 중에 계속 나오는 자세한 정보에서 원인을 찾습니다.

영어 원문
  • 0 (zero) — Indicates that all attempted installations were successful, or that no processing was required for the requested action on the requested filesets (for example, if a requested fileset was already installed).
  • nonzero — Indicates that some part of the installation was not successful.

A summary report is given at the end of the installp output that lists the status of each of the software products that were to be installed. For those software products that could not be installed or whose installation failed, the user can search for the cause in the more detailed information that is continually displayed from the installp command during the installation process.

보안

특권 제어: root만 실행할 수 있습니다.

감사 이벤트: INSTALLP_Inst(적용, 확정, 거부, 정리 작업의 성공·실패)

(6.1) RBAC와 Trusted AIX 사용자: 이 명령은 특권 작업을 할 수 있으며 특권 사용자만 할 수 있습니다. 권한과 특권은 lssecattr 명령이나 getcmdattr 하위 명령으로 봅니다.

영어 원문

Privilege Control: Only the root user can run this command.

Auditing Events:

Event Information INSTALLP_Inst Success or failure of the apply, commit, reject, and cleanup operations.

Attention RBAC users and Trusted AIX users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.

예제

명령 하는 일
installp -L -d /dev/rmt0.1 설치 테이프의 모든 제품과 설치 옵션 나열
installp -A -d /dev/rmt0.1 all 설치 테이프의 모든 제품이 고친 고객 보고 문제 나열
installp -aX -d/usr/sys/inst.images bos.net /usr/sys/inst.images의 bos.net 패키지 파일셋을 모두 설치(자동 확정)하고 필요하면 파일 시스템을 늘림
installp -acF -d/dev/rmt0.1 bos.net.nfs.client 4.1.0.0 같은 수준으로 이미 설치된 NFS 옵션을 테이프에서 다시 설치하고 확정
installp -a bos.net.tcp.client 4.1.0.2 bos.net.tcp.server 4.1.0.1 디스켓의 TCP/IP 갱신 일부를 적용만 함
installp -u bos.net.tcp.server 파일셋 bos.net.tcp.server 제거
installp -pacgXd /dev/cd0 bos.net.tcp.client CD에서 bos.net.tcp.client 설치를 미리 봄
installp -l -MR -d /usr/sys/inst.images /usr/sys/inst.images에서 POWER 시스템에 설치할 수 있는 제품 나열

원격 파일 시스템의 다른 저장 디렉터리를 -t /temp_space로 지정합니다. 저장 디렉터리는 /temp_space/My_Hostname/usr/lpp/bos.net/bos.net.nfs.client/4.1.1.0.save가 됩니다.

bash
mount Server_Name:/Save_Area /temp_space
installp -a -t /temp_space/My_Hostname bos.net.nfs.client 4.1.1.0

installp의 모든 출력을 기록하려면 script 명령(현재 디렉터리의 typescript 파일에 기록, Ctrl-D로 끝냄)이나 tee를 씁니다. 뒤의 것은 화면에도 보여 주고 사본을 남깁니다.

bash
installp ... 2>&1 | tee /tmp/inst.out

/usr/sys/inst.images의 TCP/IP와 그 갱신을 설치하면 출력 끝에 요약 보고서가 나옵니다(설명 절의 예와 같음). 이 요약은 다음 installp 실행 전까지 /var/adm/sw/installp.summary에도 저장되며, 레코드 필드는 /usr/include/inuerr.h에 설명되어 있습니다.

시스템에 설치된 모든 파일셋을 CD에서 갱신합니다. -e는 출력을 /tmp/install.log에 기록합니다.

bash
lslpp -lc | awk -F ":" '{print $2}' | tail -n +2 > /tmp/lslpp
installp -agXd /dev/cd0 -e /tmp/install.log -f /tmp/lslpp

자주 쓰는 형태:

bash
cd /export/tl09sp12; inutoc .
installp -pacgXYd . all            # 미리 보기
installp -acgXYd . all             # 적용·확정
installp -s                        # 확정 안 된 갱신
installp -C                        # 중단된 설치 정리
영어 원문
  1. To list all software products and installable options contained on an installation cartridge tape, type:
installp -L -d /dev/rmt0.1
  1. To list all customer-reported problems fixed by all software products on an installation tape, type:
installp -A -d /dev/rmt0.1 all
  1. To install (automatically committed) all filesets within the bos.net software package (located in the /usr/sys/inst.images directory) and expand file systems if necessary, type:
installp -aX -d/usr/sys/inst.images bos.net
  1. To reinstall and commit the NFS software product option that is already installed on the system at the same level (from tape), type:
installp -acF -d/dev/rmt0.1 bos.net.nfs.client 4.1.0.0
  1. To install (apply only) certain updates that are contained on diskette for the TCP/IP software product, type:
installp -a bos.net.tcp.client 4.1.0.2 bos.net.tcp.server 4.1.0.1
  1. To remove a fileset named bos.net.tcp.server, type:
installp -u bos.net.tcp.server
  1. To specify an alternate storage directory on a remote file system for a BOSNET TCP/IP update with -t/temp_space, see the following example: the save directory becomes /temp_space/My_Hostname/usr/ lpp/bos.net/bos.net.nfs.client/4.1.1.0.save.
mount Server_Name:/Save_Area /temp_space
installp -a -t /temp_space/My_Hostname \
bosnet.nfs.client 4.1.1.0
  1. To capture a log file of all output from the installp command, use the script command as in the following example. Output is written to the typescript file in the current directory.
script
installp ...
<Ctrl>d

or

installp ... 2>&1 | tee /tmp/inst.out

In the second example, output is written to the screen and a copy is saved.

  1. To preview the installation of the bos.net.tcp.client fileset from the CD using the installp command, type:
installp -pacgXd /dev/cd0 bos.net.tcp.client
  1. To install TCP/IP and one of its updates that are both contained in the /usr/sys/inst.images, use the installp command as in the following example. A summary report is given at the end of the installp command output that lists the status of each of the software products that were to be installed. An example summary report for the previous installp command is as follows:
Installp Summary
----------------
Name Level Part Event Result
-----------------------------------------------------------------
bos.net.tcp.client 4.1.0.0 USR APPLY SUCCESS
bos.net.tcp.client 4.1.0.0 ROOT APPLY SUCCESS
bos.net.tcp.client 4.1.0.2 USR APPLY SUCCESS

Note: This summary is also saved in /var/adm/sw/installp.summary until the next installp invocation. The header file inuerr.h in the /usr/include directory describes the fields making up the records in the installp.summary file.

  1. To list software products (located in the /usr/sys/inst.images directory) that are installable on POWER processor-based machines, type:
installp -l -MR -d /usr/sys/inst.images
  1. To update all filesets from a CD that are currently installed on the system, type:
lslpp -lc | awk -F ":" ’{print $2}’ | tail -n +2 > /tmp/lslpp
installp -agXd /dev/cd0 -e /tmp/install.log -f /tmp/lslpp

where the -e logs the output to the /tmp/install.log file.

파일

파일 설명
/dev/rfd0 기본 복원 장치
/dev/rmtn raw 스트리밍 테이프 인터페이스
/usr/sys/inst.images 소프트웨어 제품 전체나 일부를 설치·갱신할 때 쓰는 백업 형식 파일이 있는 디렉터리
영어 원문
  • /dev/rfd0 — Specifies the default restore device.
  • /dev/rmtn — Specifies the raw streaming tape interface.
  • /usr/sys/inst.images directory — Contains files in backup format for use in installing or updating a complete set or subset of software products.

Related reference:

  • inudocm Command
  • lppchk Command
  • lslpp Command

Related information:

  • bffcreate command
  • Checking fileset build dates

리눅스(GNU)와 다른 점

리눅스에서는 배포판의 패키지 관리자가 이 일을 합니다. AIX의 파일셋(fileset)은 RPM·DEB 패키지에, installp는 rpm -i/dnf install·dpkg -i/apt install에, lslpp -l은 rpm -qa·dpkg -l에, lslpp -f·-w는 rpm -ql·rpm -qf(또는 dpkg -L·dpkg -S)에 해당합니다. AIX의 TL·SP(기술 수준·서비스 팩) 개념은 없고 배포판 버전(/etc/os-release)과 커널 버전(uname -r)으로 봅니다. 긴급 수정(emgr)에 가까운 것은 커널 라이브 패치(kpatch, livepatch)입니다. 리눅스 패키지 관리자에는 AIX의 APPLIED·COMMITTED 구분이 없으며, 되돌리기는 dnf history undo나 이전 버전으로 dnf downgrade를 씁니다.