lslpp 명령어 (AIX 5.3·6.1)
https://archive.horanglab.com/posts/aix-cmd-lslpp
핵심 정리
- 설치된 소프트웨어(파일셋)를 보여 줍니다.
lslpp -l(이름, 수준, 상태, 설명),lslpp -L(유형 포함, RPM도 보임),lslpp -l "bos.rte.*"(패턴). lslpp -w /usr/sbin/installp는 그 파일이 어느 파일셋에 속하는지,lslpp -f bos.rte.lvm은 그 파일셋이 설치한 파일 목록을 보여 줍니다.lslpp -h는 설치·갱신 이력,lslpp -p는 선행 조건,lslpp -d는 이 파일셋에 의존하는 파일셋입니다.- 상태가
APPLIED면installp -r로 되돌릴 수 있고,COMMITTED면 되돌릴 수 없습니다.BROKEN이면 다시 설치해야 하고,EFIXLOCKED면emgr수정에 잠겨 있습니다. - 임시 수정은 root로
lslpp -e나emgr -l로 봅니다.
| 항목 | 내용 |
|---|---|
| 버전 | AIX 5.3, AIX 6.1 (6.1에서 -R(설치 위치)과 -Lc의 Type 필드 설명이 더해짐) |
| 원문 | IBM Commands Reference — 5.3 Volume 3, 6.1 Volume 3 |
| 파일 | /usr/bin/lslpp, /etc/objrepos, /usr/lib/objrepos, /usr/share/lib/objrepos |
| 관련 명령어 | installp, oslevel, instfix, emgr, lppchk |
목적
설치된 소프트웨어 제품을 나열합니다.
영어 원문
Lists installed software products.
구문
lslpp [ -R { path | ALL } ] { -d | -E | -f | -h | -i | -l | -L | -p } [ -a ] [ -c ] [ -J ] [ -q ] [ -I ] [ -O { [ r ] [ s ] [ u ] } ] [ FilesetName ... | -b File | all ]
lslpp [ -R { path | ALL } ] -w [ -c ] [ -q ] [ -O { [ r ] [ s ] [ u ] } ] [ FileName ... | all ]
lslpp [ -R { path | ALL } ] -L -c [ -v ]
lslpp [ -R { path | ALL } ] -S [ A | O ]
lslpp [ -R { path | ALL } ] -e
5.3의 구문에는 -R이 없습니다.
설명
lslpp 명령은 설치된 파일셋이나 파일셋 갱신의 정보를 보여 줍니다. FilesetName 매개변수는 소프트웨어 제품 이름이고, File 매개변수는 파일셋 목록으로 쓸 번들 파일입니다.
-l(소문자 L)만 주면 지정한 파일셋의 가장 최근 설치 수준을 보여 줍니다. -a를 함께 주면 그 FilesetName의 설치된 파일셋을 모두 보여 줍니다. -I(대문자 i)를 -l과 함께 주면 기본 수준 파일셋으로 출력을 제한합니다.
lslpp와 compare_report 명령은 둘 다 시스템에 설치된 임시 수정(interim fix) 정보를 보여 줍니다. lslpp -L, lslpp -Lc, lslpp -e는 root가 실행해야 하며, 반환된 임시 수정 정보는 compare_report가 씁니다. 정보에는 임시 수정 레이블과 수준이 들어갑니다. 레이블은 파일셋 이름에 해당하고, 수준은 패키지된 시각(YY.MM.DD.HHMMSS: 연, 월, 일, 시, 분, 초)입니다. root가 아닌 사용자가 실행하면 소프트웨어 제품과 수준만 나오고 임시 수정 정보는 나오지 않습니다.
-d, -f, -h, -i, -l, -L, -p는 서로 다른 종류의 보고서를 요청합니다.
-a, -c, -J, -q는 보고서에 보여 줄 정보의 양과 형식을 정합니다.
-O는 파일셋의 특정 부분, 곧 root 부분(-Or), share 부분(-Os), usr 부분(-Ou)에서 데이터를 가져오게 합니다.
FilesetName의 기본값은 all로, 설치된 모든 소프트웨어 제품을 보여 줍니다. *(별표)와 ?(물음표) 같은 패턴 문자를 쓸 수 있습니다. 작은따옴표로 감싸지 않아도 되지만, 감싸면 현재 디렉터리의 파일 이름으로 확장되는 것을 막을 수 있습니다.
영어 원문
The lslpp command displays information about installed filesets or fileset updates. The FilesetName parameter is the name of a software product. The File parameter specifies a bundle file to use as a fileset list.
When only the -l (lowercase L) flag is entered, the lslpp command displays the latest installed level of the fileset specified for formatted filesets. The base level fileset is displayed for formatted filesets. When the -a flag is entered along with the -l flag, the lslpp command displays information about all installed filesets for the FilesetName specified. The -I (uppercase i) flag combined with the -l (lowercase L) flag specifies that the output from the lslpp command should be limited to base level filesets.
The lslpp command and the compare_report command both show information about interim fixes installed on the system. The lslpp -L or lslpp -Lc command and the lslpp -e command must be run by root. Any interim fix information returned is used by the compare_report command. The information includes an interim fix label and a level value. The interim fix label is the equivalent of a fileset name, and its level is based on the time (YY.MM.DD.HHMMSS, where YY is the year, MM is the month, DD is the day, HH is the hour, MM is the minute, and SS is the second) in which the interim fix was packaged. If a non-root user runs these commands, only software products and levels are returned, and interim fix information is not included. If a root user runs the lslpp -e command and the lslpp -L command, interim fix information can be shown.
The -d, -f, -h, -i, -l (lowercase L), -L, and -p flags request different types of output reports.
The -a, -c, -J, and -q flags specify the amount and format of the information that is displayed in the report.
The -O flag specifies that data is to come from a specified part of the fileset. The part may be the root part, -Or, the share part, -Os, or the usr part, -Ou.
The default value for the FilesetName parameter is all, which displays information about all installed software products. Pattern matching characters, such as * (asterisk) and ? (question mark), are valid in the FilesetName parameter. You don't have to enclose these characters in '' (single quotation marks). However, using single quotation marks prevents you from searching the contents of your present directory.
Output Values
출력의 대부분은 설명 없이도 알 수 있지만, 몇몇 필드는 뜻을 정해 둘 필요가 있습니다.
상태(State) 값: 파일셋이 시스템에서 어떤 상태인지 보여 줍니다.
| 상태 | 뜻 |
|---|---|
APPLIED |
설치되어 있으며, installp로 거부(reject)하고 이전 수준으로 되돌릴 수 있음. Version 4 파일셋 갱신과 3.2에서 이전한 파일셋에만 해당 |
APPLYING |
적용하려 했지만 끝나지 않았고 정리도 되지 않음 |
BROKEN |
파일셋이나 갱신이 깨져 있어 쓰기 전에 다시 설치해야 함 |
COMMITTED |
설치되어 있으며 이 수준으로 확정(commit)됨. 확정된 갱신은 거부할 수 없지만, 확정된 기본 수준과 그 갱신(상태와 상관없이)은 installp로 제거할 수 있음 |
EFIXLOCKED |
설치되어 있으며 임시 수정 관리자(emgr)가 잠금 |
OBSOLETE |
이전 운영 체제 버전으로 설치되었지만 이름이 바뀐 새 파일셋으로 대체됨. 일부 파일은 새 파일셋의 것으로 바뀜 |
COMMITTING |
확정하려 했지만 끝나지 않았고 정리도 되지 않음 |
REJECTING |
거부하려 했지만 끝나지 않았고 정리도 되지 않음 |
동작(Action) 값: 파일셋에 한 설치 동작입니다.
| 동작 | 뜻 |
|---|---|
APPLY |
적용하려 함 |
CLEANUP |
정리하려 함 |
COMMIT |
확정하려 함 |
REJECT |
거부하려 함 |
결과(Status) 값: 설치 이력에서 동작의 결과입니다.
| 결과 | 뜻 |
|---|---|
BROKEN |
그 동작 뒤 파일셋이 깨진 상태로 남음 |
CANCELED |
끝나기 전에 취소됨 |
COMPLETE |
확정이 성공적으로 끝남 |
영어 원문
Much of the output from the lslpp command is understandable without an explanation. Other fields contain data that needs to be defined. The following sections define terms used in several of the output fields.
State Values
The state field in the lslpp output gives the state of the fileset on your system. It can have the following values:
State Definition APPLIED The specified fileset is installed on the system. The APPLIED state means that the fileset can be rejected with the installp command and the previous level of the fileset restored. This state is only valid for Version 4 fileset updates and 3.2 migrated filesets. APPLYING An attempt was made to apply the specified fileset, but it did not complete successfully, and cleanup was not performed. BROKEN The specified fileset or fileset update is broken and should be reinstalled before being used. COMMITTED The specified fileset is installed on the system. The COMMITTED state means that a commitment has been made to this level of the software. A committed fileset update cannot be rejected, but a committed fileset base level and its updates (regardless of state) can be removed or deinstalled by the installp command. EFIXLOCKED The specified fileset is installed on the system and is locked by the interim fix manager (the emgr command). OBSOLETE The specified fileset was installed with an earlier version of the operating system but has been replaced by a repackaged (renamed) newer version. Some of the files that belonged to this fileset have been replaced by versions from the repackaged fileset. COMMITTING An attempt was made to commit the specified fileset, but it did not complete successfully, and cleanup was not performed. REJECTING An attempt was made to reject the specified fileset, but it did not complete successfully, and cleanup was not performed.
Action Values
The action field in the lslpp output identifies the installation action that was taken for the fileset. The following values may be found in this field:
Action Definition APPLY An attempt was made to apply the specified fileset. CLEANUP An attempt was made to perform cleanup for the specified fileset. COMMIT An attempt was made to commit the specified fileset. REJECT An attempt was made to reject the specified fileset.
Status Values
The status field in the lslpp output identifies the resultant status in the history of installation actions. The following values may be found in this field:
Status Definition BROKEN The fileset was left in a broken state after the specified action. CANCELED The specified action was canceled before it completed. COMPLETE The commitment of the fileset has completed successfully.
플래그
| 플래그 | 설명 |
|---|---|
-a |
다른 플래그와 함께 지정한 파일셋의 모든 정보를 보여 줍니다. -l과 함께면 모든 갱신을, -h와 함께면 모든 이력을 보여 줍니다. -f와 함께 쓸 수 없습니다. |
-b File |
파일셋 이름을 찾을 번들 파일. 번들의 파일셋을 FilesetName으로 준 것처럼 나열합니다. installp처럼 이미지 이름에 와일드카드가 자동으로 붙어, I:bos.abc는 bos.abc*처럼 동작합니다(그래서 bos.abcdef도 나올 수 있음). 알려진 번들 위치에 없으면 확장자를 포함한 전체 경로를 줘야 합니다. |
-c |
콜론으로 구분한 목록으로 보여 줍니다. -J와 함께 쓸 수 없습니다. |
-d |
지정한 소프트웨어에 의존하는 파일셋을 보여 줍니다. 그 소프트웨어를 prerequisite, corequisite, ifrequisite, installed requisite로 가진 파일셋입니다. |
-e |
시스템에 설치된 임시 수정을 모두 보여 줍니다. |
-E |
라이선스 계약을 나열합니다. |
-f |
파일셋을 설치할 때 시스템에 더한 파일 이름을 보여 줍니다. -a와 함께 쓸 수 없습니다. |
-h |
설치·갱신 이력을 보여 줍니다. -J와 함께 쓸 수 없습니다. |
-I |
(대문자 i) 입력을 소프트웨어 제품으로 제한합니다. |
-i |
제품 정보를 보여 줍니다. |
-J |
SMIT가 목록으로 쓰기 알맞은 형식으로 출력합니다. -l, -L과 함께만 씁니다. |
-l |
(소문자 L) 이름, 가장 최근 수준, 상태, 설명을 보여 줍니다. |
-L |
이름, 가장 최근 수준, 상태, 유형, 설명을 보여 줍니다. usr, root, share 부분 정보를 한 목록으로 합칩니다. 형식화된 파일셋은 가장 최근 유지 보수·기술 수준과 그 위에 설치한 하위 시스템 선택 수정도 보여 줍니다. RPM과 ISMP 이미지도 나옵니다. -c와 함께 쓰면, (6.1) installp 이미지의 Type 필드가 빈칸이면 갱신 없음, F면 갱신 있음을 뜻하고, 빌드 날짜(yyww, 예: 0852)가 있으면 함께 나옵니다. -Lc 출력에는 머리글에 적힌 추가 필드도 나옵니다. |
-O |
파일셋의 지정한 부분 정보를 나열합니다. 없으면 모든 부분입니다. NIM이 디스크 없는(diskless)·데이터 없는(dataless) 워크스테이션의 정보를 보려고 쓰도록 만든 옵션입니다. r은 root 부분, s는 /usr/share 부분, u는 /usr 부분. |
-p |
선행 조건(requisite) 정보를 보여 줍니다. |
-q |
열 머리글을 보여 주지 않습니다. |
-R { path, ALL } |
(6.1) 사용자가 지정한 설치 위치. |
-S [ A, O ] |
자동으로 설치한 파일셋과 선택해서 설치한 파일셋 목록. A면 자동 설치만, O면 선택 설치만 나열합니다. |
-v |
ISMP 제품 정보를 담은 공급자(vendor) 데이터베이스의 정보만 보여 줍니다. -L, -c와 함께만 씁니다. |
-w |
파일을 소유한 파일셋을 나열합니다. |
-d, -e, -E, -f, -h, -i, -l, -L, -p, -S, -w 가운데 하나를 반드시 줘야 합니다(서로 함께 쓸 수 없음).
영어 원문
-a— Displays all the information about filesets specified when combined with other flags. This flag shows all updates when combined with the-lflag and all history when combined with the-hflag. This flag cannot be specified with the-fflag.-bFile — Specifies a bundle file to search for fileset names. The filesets listed in the bundle are then listed as if they had been specified explicitly as FilesetName parameters. To mimic installp behavior, the installp image names are automatically wildcarded. For example, a bundle file entry ofI:bos.abcwill behave as ifbos.abc*was specified as a FilesetName parameter. Note: This might also return results forbos.abcdef.If the file does not reside in one of the known bundle locations, the full path and file name, including extension, must be specified.-c— Displays information as a list separated by colons. This flag cannot be specified with the-Jflag.-d— Displays filesets that are dependents of the specified software. A dependent fileset is one that has the specified software as a prerequisite, corequisite, ifrequisite, or installed requisite.-e— Displays every interim fix installed on the system.-E— Lists license agreements.-f— Displays the names of the files added to the system during installation of the specified fileset. This flag cannot be specified with the-aflag.-h— Displays the installation and update history information for the specified fileset. You cannot use this flag with the-Jflag.-I— (uppercase i) Limits the inputs to software products.-i— Displays the product information for the specified fileset.-J— Generates output in a form suitable for the System Management Interface Tool (SMIT) command to list output. This flag can only be specified with the-l(lowercase L) and-Lflags.-l— (lowercase L) Displays the name, most recent level, state, and description of the specified fileset.-L— Displays the name, most recent level, state, type, and a description of the specified fileset. Part information (usr, root, and share) is consolidated into the same listing. For formatted filesets, it displays the most recent maintenance or technology level for the specified filesets. In addition, this flag lists any subsystem selective fixes that were installed on top of the maintenance or technology level. RPM and ISMP images are also listed. When combined with the-cflag, there is a difference in the Type field when used with an installp image. A blank value indicates an installp image without any updates. A value of F indicates an installp image with updates. When combined with the-cflag, the build date, which is specified by the year and the week in the form of yyww (for example, 0852), is displayed for the fileset, if there is one. Additional fields are displayed with the-Lcoutput, as indicated in the header of the output.-O— Lists information for the specified part of the fileset. When the-Oflag is not specified information is listed for all parts. This option is designed for use by the nim command to list software product information for diskless or dataless workstations. You can use the following flags with this flag:-rIndicates to list information for the root part.-sIndicates to list information for the /usr/share part.-uIndicates to list information for the /usr part.-p— Displays requisite information for the specified fileset.-q— Suppresses the display of column headings.-R{ path|ALL } — Indicates a user-specified installation location.-S[A|O] — Displays a list of automatically installed filesets and a list of optionally installed filesets. If the-Sflag is followed by A, then only the automatically installed filesets are listed. If the-Sflag is followed by O, then only the optionally installed filesets are listed.-v— Displays only information from the vendor database, which contains ISMP product information. This flag is only valid when used with both the-Land the-cflags.-w— Lists fileset that owns this file.
You must specify one of the mutually exclusive flags: -d, -e, -E, -f, -h, -i, -l, -L, -p, -S, and -w.
예제
| 명령 | 하는 일 |
|---|---|
lslpp -l "bos.rte.*" |
모든 bos.rte 파일셋의 가장 최근 수준 설치 상태 |
lslpp -La bos.rte.filesystem |
bos.rte.filesystem의 기본 수준과 갱신의 설치 상태 |
lslpp -ha 'bos.net.*' |
bos.net 패키지 모든 파일셋의 설치 이력 |
lslpp -f bos.rte.lvm |
bos.rte.lvm 파일셋의 모든 파일 이름 |
lslpp -w /usr/sbin/installp |
installp를 소유한 파일셋(bos.rte.install) |
lslpp -w "*installp*" |
이름에 installp가 든 모든 파일의 소유 파일셋 |
lslpp -w |
인벤토리 데이터베이스의 모든 파일 |
lslpp -L cdrecord |
RPM cdrecord 이미지의 설치 상태 |
lslpp -L -b Server |
/usr/sys/inst.data/sys_bundles/Server.bnd 번들에 든 모든 파일셋의 설치 상태(전체 경로로 줘도 됨) |
예 5의 출력:
File Fileset Type
----------------------------------------------------------------------------
/usr/sbin/installp bos.rte.install File
예 6의 출력:
File Fileset Type
----------------------------------------------------------------------------
/usr/sbin/installp bos.rte.install File
/usr/clvm/sbin/linstallpv prpq.clvm File
/usr/lpp/bos.sysmgt/nim/methods/c_installp bos.sysmgt.nim.client File
자주 쓰는 형태:
lslpp -L | grep -i openssh
lslpp -l | grep -v COMMITTED # 확정되지 않은 파일셋
lppchk -v # 파일셋 일관성 확인
영어 원문
- To list the installation state for the most recent level of installed filesets for all of the bos.rte filesets, type:
lslpp -l "bos.rte.*"
- To list the installation state for the base level and updates for the fileset bos.rte.filesystem, type:
lslpp -La bos.rte.filesystem
- To list the installation history information of all the filesets in the bos.net software package, type:
lslpp -ha ’bos.net.*’
- To list the names of all the files of the bos.rte.lvm fileset, type:
lslpp -f bos.rte.lvm
- To list the fileset that owns installp, type:
lslpp -w /usr/sbin/installp
Output similar to the following displays:
File Fileset
Type
----------------------------------------------------------------- /usr/sbin/installp bos.rte.install File
- To list the fileset that owns all file names that contain
installp, type:lslpp -w "*installp*"
Output similar to the following displays: File Fileset
Type
----------------------------------------------------------------- /usr/sbin/installp bos.rte.install File /usr/clvm/sbin/linstallpv prpq.clvm File /usr/lpp/bos.sysmgt/nim/methods/c_installp
bos.sysmgt.nim.client File
To display all files in the inventory database, type:
lslpp -wTo display the installation state for the RPM
cdrecordimage, type:lslpp -L cdrecordTo display the installation state for all the filesets contained in the Server bundle located at
/usr/sys/inst.data/sys_bundles/Server.bnd, type:lslpp -L -b Server
or: lslpp -L -b /usr/sys/inst.data/sys_bundles/Server.bnd
파일
| 파일 | 설명 |
|---|---|
/etc/objrepos/history |
root 부분 모든 소프트웨어 제품의 설치·갱신 이력 |
/usr/lib/objrepos/history |
/usr 파일 시스템 모든 소프트웨어 제품의 설치·갱신 이력 |
/usr/share/lib/objrepos/history |
/usr/share 파일 시스템 모든 소프트웨어 제품의 설치·갱신 이력 |
/etc/objrepos/lpp |
root 부분 모든 소프트웨어 제품의 설치 정보 |
/usr/lib/objrepos/lpp |
/usr 파일 시스템 모든 소프트웨어 제품의 설치 정보 |
/usr/share/lib/objrepos/lpp |
/usr/share 파일 시스템 모든 소프트웨어 제품의 설치 정보 |
/etc/objrepos/product |
root 부분 모든 소프트웨어 제품의 설치·갱신 정보 |
/usr/lib/objrepos/product |
/usr 파일 시스템 모든 소프트웨어 제품의 설치·갱신 정보 |
/usr/share/lib/objrepos/product |
/usr/share 파일 시스템 모든 소프트웨어 제품의 설치·갱신 정보 |
/etc/objrepos/inventory |
root 부분 소프트웨어 제품의 파일 이름과 위치 |
/usr/lib/objrepos/inventory |
/usr 파일 시스템 소프트웨어 제품의 파일 이름과 위치 |
/usr/share/lib/objrepos/inventory |
/usr/share 파일 시스템 소프트웨어 제품의 파일 이름과 위치 |
/usr/sys/inst.data/sys_bundles/, /usr/sys/inst.data/user_bundles/ |
알려진 번들 파일 위치. 번들 파일은 확장자가 .bnd여야 함 |
영어 원문
- /etc/objrepos/history — Specifies installation and update history information of all software products on the root.
- /usr/lib/objrepos/history — Specifies installation and update history information of all software products on the /usr file system.
- /usr/share/lib/objrepos/history — Specifies installation and update history information of all software products on the /usr/share file system.
- /etc/objrepos/lpp — Specifies installation information of all software products on the root.
- /usr/lib/objrepos/lpp — Specifies installation information of all software products on the /usr file system.
- /usr/share/lib/objrepos/lpp — Specifies installation information of all software products on the /usr/share file system.
- /etc/objrepos/product — Specifies installation and update information of all software products on the root.
- /usr/lib/objrepos/product — Specifies installation and update information of all software products on the /usr file system.
- /usr/share/lib/objrepos/product — Specifies installation and update information of all the software products on the /usr/share file system.
- /etc/objrepos/inventory — Specifies names and locations of files in a software product on the root.
- /usr/lib/objrepos/inventory — Specifies names and locations of files in a software product on the /usr file system.
- /usr/share/lib/objrepos/inventory — Specifies names and locations of files in a software product on the /usr/share file system.
/usr/sys/inst.data/sys_bundles/and/usr/sys/inst.data/user_bundles/— Known locations for bundle files. Bundle files should have a .bnd extension.
Related reference:
- installp Command
- inulag Command
Related information:
- emgr command
- nim command
리눅스(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)입니다.