emgr 명령어 (AIX 5.3·6.1)
https://archive.horanglab.com/posts/aix-cmd-emgr
핵심 정리
- IBM 지원이 주는 임시 수정(파일 이름이
.epkg.Z)을 관리합니다. 미리 보기emgr -p -e IJ12345s1a.epkg.Z, 설치emgr -X -e IJ12345s1a.epkg.Z. - 목록은
emgr -l, 자세히는emgr -lv3 -L 레이블, 제거는emgr -r -L 레이블, 검사는emgr -c입니다. - 임시 수정이 바꾼 파일셋은 잠기므로(
lslpp에EFIXLOCKED), TL·SP를 올리기 전에 제거해야 하는 경우가 많습니다. 잠긴 파일셋은emgr -P로 봅니다. APAR 참조가 든 수정은installp가 그 APAR을 포함한 갱신을 적용할 때 자동으로 제거합니다. - 갱신한 라이브러리나 프로그램은 그것을 쓰는 프로세스를 다시 시작해야 반영됩니다. 재부팅이 필요한 수정은 설치 뒤 재부팅합니다.
- 작업 기록은
/var/adm/ras/emgr.log에 남습니다.
| 항목 | 내용 |
|---|---|
| 버전 | AIX 5.3, AIX 6.1 (6.1에서 동시 갱신용 -i, -C, NIM thin server 지원, -R의 -F 요구가 더해짐) |
| 원문 | IBM Commands Reference — 5.3 Volume 2, 6.1 Volume 2 |
| 파일 | /usr/sbin/emgr, /usr/emgrdata/DBS, /var/adm/ras/emgr.log |
| 관련 명령어 | epkg, lslpp, instfix, installp, bosboot |
목적
임시 수정 관리자를 시작해 시스템 임시 수정을 설치, 제거, 나열, 검사합니다.
영어 원문
Starts the interim fix manager, which installs, removes, lists, and checks system interim fixes.
구문
emgr -l [ -L Label | -n InterimfixNumber | -u VUID ] [ -v { 1 | 2 | 3 } ] [ -X ] [ -a path ]
emgr -e InterimfixPackage | -f ListFile [ -w Directory ] [ -b | -k | -I ] [ -p ] [ -q ] [ -m ] [ -o ] [ -X ] [ -a path ]
emgr -i InterimfixPackage | -f ListFile [ -w Directory ] [ -C ] [ -p ] [ -q ] [ -X ] [ -a path ]
emgr -C -i InterimfixPackage | -f ListFile [ -w Directory ] [ -p ] [ -q ] [ -X ] [ -a path ]
emgr -C -L Label [ -p ] [ -q ] [ -X ]
emgr -r -L Label | -n InterimfixNumber | -u VUID | -f ListFile [ -w Directory ] [ -a path ] [ -b | -k | -I ] [ -p ] [ -q ] [ -X ]
emgr -c [ -L Label | -n InterimfixNumber | -u VUID | -f ListFile ] [ -w Directory ] [ -a path ] [ -v { 1 | 2 | 3 } ] [ -X ]
emgr -M | -U [ -L Label | -n InterimfixNumber | -u VUID | -f ListFile ] [ -w Directory ] [ -a path ] [ -X ]
emgr -R InterimfixLabel [ -w Directory ] [ -a path ] [ -X ]
emgr -P [ Package ] [ -a path ] [ -X ]
emgr -d -e InterimfixPackage | -f ListFile [ -w Directory ] [ -v { 1 | 2 | 3 } ]
차례로 목록, 설치, (6.1) 동시 갱신 적용, (6.1) 동시 갱신 확정(두 형식), 제거, 검사, 마운트·마운트 해제, 강제 제거, 잠긴 패키지 보기, 패키지 내용 보기입니다.
설명
emgr(임시 수정 관리자) 명령은 시스템 임시 수정을 설치하고 관리합니다. epkg 명령으로 만든 패키지를 설치하고 임시 수정 정보를 담은 데이터베이스를 유지합니다. 다음 작업을 합니다.
- 임시 수정 패키지 설치
- 임시 수정 제거
- 임시 수정 나열
- 임시 수정 검사
- 임시 수정 마운트와 마운트 해제
- 패키지 잠금 보기
- 설치된 임시 수정의 강제 제거
참고:
- 임시 수정 관리자가 잠근 파일셋을
installp,install_all_updates,smit update_all로 갱신하려 하면 어느 파일셋이 잠겼는지 알려 줍니다. 경우에 따라 설치가 막힌 이유를 알리지 않기도 합니다. 잠긴 파일셋은lslpp에서 잠금 상태(6.1 문서는 IFIXLOCKED, 5.3 문서는 EFIXLOCKED)로 나옵니다. - 임시 수정이나 서비스 갱신이 바꾼 라이브러리나 실행 프로그램을 활성 프로세스가 쓰고 있으면, 그 프로세스를 다시 시작하기 전에는 반영되지 않습니다. 예를 들어 ksh를 바꾸는 갱신은 이미 실행 중인 ksh 프로세스에 반영되지 않고,
libc.a갱신도 실행 중인 프로세스에는 반영되지 않습니다. 또 라이브러리를 쓰다가 갱신 뒤 같은 라이브러리를dlopen하는 프로세스는 다시 시작하지 않으면 일관성이 깨질 수 있습니다.
임시 수정을 가리키는 방법
- 레이블로: 시스템에 설치된 임시 수정마다 고유 레이블이 있으며, 여러 데이터베이스 객체를 묶는 고유 키입니다.
-L에 레이블을 줍니다. 예:emgr -cL ABC123(레이블 ABC123 검사). - ID로: 임시 수정 ID는 데이터베이스에 나열된 순서 번호입니다. 목록을 보고 작업할 때 편하며,
emgr가 레이블로 바꿔 작업합니다.-n에 ID를 줍니다. ID는 임시 수정을 지우고 더할 때 바뀌므로 늘-l로 확인합니다. 예:emgr -cn1(ID 1 검사). - VUID로: 임시 수정 패키지는 공식으로 추적되지 않아 같은 레이블이 여러 패키지에 쓰일 수 있습니다. 다만 같은 레이블의 임시 수정을 동시에 둘 설치할 수는 없습니다. VUID(Virtually Unique ID)로 같은 레이블의 패키지를 구별합니다. 예:
emgr -l -u 000775364C00020316020703. VUID는 설치·제거 미리 보기 단계와-v3목록에 나옵니다.
기록
설치, 제거, 검사, 마운트, 마운트 해제, 강제 제거를 /var/adm/ras/emgr.log에 기록합니다.
installp의 자동 제거
epkg로 패키지를 만들 때 APAR 참조 번호가 든 APAR 참조 파일을 넣을 수 있습니다. 그러면 installp가 그 수정이 들어간 모든 기술 수준의 APAR과 임시 수정을 연결할 수 있습니다. 적용하는 TL, SP, PTF에 그 수정이 들어 있으면 installp가 갱신을 적용하기 전에 임시 수정을 자동으로 지웁니다. 자동 제거가 켜진 임시 수정은 설치할 때 ATTENTION: Interim fix is enabled for automatic removal by installp. 메시지가 나옵니다.
동시 갱신(concurrent update)
동시 갱신은 AIX 커널이나 커널 확장을 바꾸는 임시 수정으로, 시스템 메모리에 바로 적용하며 재부팅이 필요 없습니다. 디스크의 커널 파일을 바꾸지 않고 커널 수정을 안전하게 평가하고 시험할 수 있습니다. 메모리에 적용한 동시 갱신은 -C로 디스크에 확정하지 않으면 재부팅 뒤 남지 않습니다. 같은 모듈의 다른 패치 위에 바로 적용할 수 있으며 이전 패치를 지울 필요는 없지만, 읽어 들인 모듈 버전은 하나여야 합니다. REBOOT_REQUIRED 상태인 임시 수정이 있으면 재부팅 전까지 동시 갱신 작업(메모리·디스크)을 할 수 없습니다.
(6.1) NIM thin server(디스크 없는·데이터 없는 클라이언트)에도 메모리 동시 갱신을 적용할 수 있습니다. thin server는 다른 클라이언트와 운영 체제 파일을 공유하므로(/usr가 읽기 전용) -C(디스크 확정)는 쓸 수 없습니다. thin server의 공유 운영 체제 파일을 디스크에서 고쳐야 하면, 그 thin server를 서비스하는 NIM 마스터의 SPOT 자원에 임시 수정을 적용합니다(설치 안내서의 "Installing an Interim Fix into a SPOT resource"나 NIM 마스터의 /usr/lpp/bos.sysmgt/nim/README 참고). thin server의 emgr 데이터베이스는 /var/emgrdata에 있습니다. bosboot나 파일 시스템 확장은 thin server에서 지원하지 않으므로 -C, -e, -I, -k, -X를 쓸 수 없고, 재부팅이 필요한 수정에는 -b를 늘 적용합니다.
영어 원문
The emgr (interim fix manager) command can be used to install and manage system interim fixes. The interim fix manager installs packages created with the epkg command and maintains a database containing interim fix information. The emgr command performs the following operations:
interim fix package installation
interim fix removal
interim fix listing
interim fix checking
interim fix mounting
interim fix unmounting
package locks displaying
installed interim fix forced removal
Note:
If an attempt is made to update a fileset (using the installp,
install_all_updates, or smitupdate_allcommand) that has been locked by the interim fix manager, a notice will be displayed indicating which filesets are locked. In some cases, there is no notice to indicate why a fileset was prevented from being installed. The lslpp command shows that any locked filesets are in the IFIXLOCKED state.Any library or executable program updated by an interim fix or service update which is in use by an active process will not be reflected in that process unless it is restarted. For example, an update that changes the ksh will not have the changes reflected in any ksh processes that are already running. Likewise, an update to the libc.a library will not be reflected in any process that is already running. In addition, any process that is using a library and does a dlopen operation of the same library after the library has been updated could experience inconsistencies if it is not restarted.
Referencing an Ifix
The ways to reference an interim fix are as follows:
Reference by Label Each interim fix that is installed on a given system will have a unique interim fix label. This is the unique key that binds all of the different database objects. To reference an interim fix by label, pass the label as a parameter to the -L flag. For example, to run a check operation on an interim fix with label ABC123, enter:
emgr -cL ABC123
Reference by Ifix ID Each interim fix that is installed on a given system has an interim fix ID. The interim fix ID is simply the order number in which the interim fix is listed in the interim fix database. Using this option may be convenient if you are performing operations on interim fixes based on interim fix listings. The emgr command will convert the interim fix ID into an interim fix label before performing the given operation. To reference an interim fix by ID, pass the ID as an parameter to the -n flag.
Note: Ifix IDs can change as interim fixes are removed and added. Always verify the current interim fix ID number by using the -l flag to list the specific interim fix or all interim fixes. For example, to run a check operation on the first interim fix with ID equal to 1, enter:
emgr -cn1
Reference by VUID Because interim fix packages are not formally tracked by any entity, it is possible that the same interim fix label could be used for more than one interim fix package. However, the emgr command does not accept the installation of more than one interim fix with the same interim fix label at the same time. The VUID (Virtually Unique ID) can be used to differentiate packages with the same interim fix label. The emgr command converts the VUID into an interim fix label before performing the given operation. For example, to list an installed interim fix with VUID equal to 000775364C00020316020703, enter:
emgr -l -u 000775364C00020316020703
Note: The VUID is displayed in the preview phase of interim fix installation and removal. The VUID is also displayed when listing with verbosity level set to 3 with the -v flag.
Ifix Logging
The following operations are logged to the emgr command log file, /var/adm/ras/emgr.log:
Installation
Removal
Checking
Mounting
Unmounting
Forced Removal
Enabling Automatic Interim Fix Removal by installp
An interim fix can be packaged by the epkg command to contain an APAR reference file containing APAR reference numbers. An APAR reference number will allow installp to map an interim fix back to the APARs for all the Technology Levels where the fix was shipped. If installp determines that the interim fix is contained in the Technology Level, Service Pack, or PTF being applied, installp will automatically remove the interim fix prior to applying the updates.
If an interim fix is enabled for automatic removal, the emgr command will display the following message during the installation of the interim fix: ATTENTION: Interim fix is enabled for automatic removal by installp.
Concurrent Updates
The emgr command supports the installation of a new kind of interim fix called a concurrent update. This form of interim fix contains a modification to the AIX kernel, or one of its kernel extensions, that can be applied directly to the system memory and does not require the system to be rebooted. This direct patching to the system memory allows you to safely evaluate and test a kernel modification without
modifying the file containing the system's current kernel on the disk. Any concurrent update applied to the system memory will not persist after a system reboot unless you choose to commit the changes introduced by the concurrent update to the disk using the -C flag. You can apply a concurrent update directly over another patch for the same module. You do not need to remove the previous patch. However, there must be only one version of the module loaded. Also, you cannot run any concurrent update operations (in-memory or on disk) for interim fixes in the REBOOT_REQUIRED state until the system is rebooted.
The emgr command supports the apply of in-memory concurrent updates on NIM thin servers (diskless or dataless clients). Since thin servers share operating system files with other clients (/usr directory is read-only), the emgr option to commit a concurrent update to disk (-C flag) is not valid on a thin servers.
Note: If the shared operating system files of a thin server need to be patched to disk, an interim fix may be applied to the SPOT resource on the NIM master that serves the thin server. Please refer to the Installing an Interim Fix into a SPOT resource section of Installation Guide or the /usr/lpp/bos.sysmgt/ nim/README file (NIM IFIX/EMGR section) on your NIM master for details on installing an interim fix into a SPOT.
The emgr database will be located in the /var/emgrdata directory on thin servers, since the /usr file system is read-only on thin servers.
Certain emgr operations can not be supported in a thin server environment, such as bosboot and file system expansion. As a result, the following emgr flags are not supported in a thin server environment: -C, -e, -I, -k, and –X. Also, the –b flag, which skips the bosboot process for interim fixes that require rebooting, will always be utilized when applicable since the bosboot operation cannot be supported for thin servers.
플래그
| 플래그 | 설명 |
|---|---|
-a path |
다른 설치 디렉터리 경로. (6.1) 제거할 때는 설치할 때 -e와 -a를 썼어야 동작합니다. 그렇지 않으면 다른 경로에서 완전히 지우지 못하므로 chroot /alt_inst /usr/sbin/emgr -r -L efix_label로 지웁니다. |
-b |
재부팅이 필요한 임시 수정에서 일반 AIX bosboot 과정을 건너뜁니다. |
-c |
검사 작업. 지정한 임시 수정을 검사합니다. |
-C |
(6.1) 동시 갱신이 든 임시 수정을 디스크에 확정해 재부팅 뒤에도 남게 합니다. -i와 함께 쓰거나 -i로 적용한 뒤 씁니다. 확정한 뒤 제거하면 다른 패치가 있든 없든 모듈이 패치 전 원래 상태로 돌아가며, 확정할 때 그 모듈의 이전 패치는 모두 지웁니다. |
-d |
패키지의 내용과 구성을 보여 줍니다. -v와 함께 쓰면 자세히 보여 줍니다. |
-e InterimfixPackage |
임시 수정 패키지 파일 경로를 주어 설치합니다. epkg로 만들었고 16비트 압축 확장자 .Z로 끝나야 합니다. |
-f ListFile |
설치할 패키지 위치 목록, 또는 제거·마운트·마운트 해제·검사할 레이블 목록(한 줄에 하나)이 든 파일. 빈 줄과 첫 공백 아닌 문자가 #인 줄은 무시합니다. |
-i InterimfixPackage |
(6.1) 동시 갱신이 든 패키지를 시스템 메모리에 적용합니다. -C를 쓰지 않으면 재부팅 뒤 남지 않습니다. 같은 모듈의 다른 동시 갱신 위에 적용할 수도 있으며, 이를 "follow-on"이라 합니다. |
-I |
bosboot의 -I 플래그로 AIX bosboot 때 저수준 디버거를 실행합니다. |
-k |
bosboot의 -D 플래그로 AIX bosboot 때 저수준 디버거를 읽어 들입니다. |
-l |
목록 작업. 지정한 임시 수정을 나열합니다. |
-L Label |
레이블로 임시 수정을 고릅니다. |
-m |
마운트 설치를 합니다. 임시 수정 파일을 대상 파일 위에 마운트합니다. |
-M |
-m으로 마운트 설치한 임시 수정을 마운트합니다. -U나 재부팅 등으로 마운트가 풀린 것을 다시 마운트할 때 씁니다. |
-n InterimfixID |
ID로 임시 수정을 고릅니다. |
-o |
설치가 기존 패키지를 덮어쓸 수 있게 합니다. |
-p |
설치나 제거를 미리 봅니다. 모든 검사를 하지만 아무것도 바꾸지 않습니다. |
-P [ Package ] |
임시 수정 관리자가 잠근 패키지와 설치 프로그램, 잠근 레이블을 보여 줍니다. |
-q |
오류와 강한 경고 말고는 출력하지 않습니다. |
-r |
제거 작업. (6.1) 활성 패치를 지우면 그 모듈의 이전 패치가 있으면 되살리고, 없으면 패치 전 원래 상태로 돌립니다. |
-R Label |
강제 제거. 임시 수정 파일을 실제로 지우거나 제거 스크립트·부트 처리를 하지 않고, 그 레이블의 데이터와 패키지 잠금만 지웁니다. 한 번에 하나만 할 수 있습니다. 주의: 시스템에 불일치가 생길 수 있는 비상 절차이므로 다른 방법이 모두 실패했을 때만 씁니다. 설치한 임시 수정은 표준 제거(-r)로 지워야 합니다. (6.1) -R에는 -F가 필요합니다(예: emgr -FR ifix_label). |
-u VUID |
VUID로 임시 수정을 고릅니다. |
-U |
-m으로 마운트 설치한 임시 수정의 마운트를 풉니다. |
-v { 1, 2, 3 } |
목록의 자세한 정도나 검사의 검증 수준(1, 2, 3). |
-w Directory |
기본 /tmp 대신 쓸 작업 디렉터리. |
-X |
공간이 모자라면 파일 시스템을 늘리려 합니다. 패키지와 emgr가 주는 공간 추정치로 늘립니다. 같은 파일 시스템에서 다른 파일이 만들어지면 -X를 써도 공간이 모자랄 수 있고, 원격 파일 시스템은 늘릴 수 없습니다. |
영어 원문
-apath — Specifies an alternative directory path for installation. Note: The-aflag works during the removal of an interim fix only if the-eand-aflags of the emgr command were used during the installation of the interim fix. If the interim fix was not installed by using the-eand-aflags, the emgr command does not completely remove an interim fix from the alternative directory path. As a workaround, use the following command to remove an interim fix that was installed in the alternative directory:chroot /alt_inst /usr/sbin/emgr -r -L efix_label-b— Causes the emgr command to skip the usual AIX bosboot process for interim fixes that require rebooting.-c— Specifies the check operation. Instructs the emgr command to run a check operation on the specified interim fix or interim fixes.-C— Commits an interim fix containing concurrent updates to the disk. This option must be used along with the-ioption, or can be used after an interim fix has been applied with the-ioption. This causes the concurrent updates to persist across system reboots. After a concurrent update has been committed, removal will result in the module being restored to its original un-patched state, regardless of whether other patches for the module exist or not. All prior patches for the module are removed at the time the commit is performed.-d— Displays the contents and topology. This option is useful with the-vflag in displaying verbosity output.-einterimfixPackage — Specifies the path of the interim fix package file, and installs the interim fix package. The interim fix package file must be created with the epkg command and must end with the 16-bit compression extension, .Z.-fListFile — Specifies a file that contains one of the following: • A list of package locations for the installation operation (one per line) • A list of interim fix labels for the remove, mount, unmount, and check operations (one per line) The emgr command ignores any blank lines or lines where the first non-white-space character is the # character.-iinterimfixPackage — Specifies the path of an interim fix package file containing a concurrent update, and applies the concurrent update to the system memory. The update does not persist across system reboots unless the-Cflag is used. You can also use the-iflag to apply one concurrent update over another for the same module. Such a concurrent update is termed a "follow-on".-I— Runs the low-level debugger for AIX bosboot by using the bosboot command's-Iflag.-k— Loads the low-level debugger during AIX bosboot using the bosboot command's-Dflag.-l— Instructs the emgr command to run the list operation on the specified interim fix or interim fixes.-LLabel — Selects the interim fix for this operation by interim fix label.-m— Instructs the emgr command to perform a mount installation. When and interim fix is mount-installed, the interim fix files are mounted over the target files.-M— Instructs the emgr command to mount an interim fix or interim fixes that have been mount-installed by using the-mflag. The-Mflag can be used to mount an interim fix that was installed using the-mflag and has been unmounted by the-Uflag or by some other means, such as rebooting the system.-ninterimfixID — Selects the interim fix for this operation by specifying the interim fix ID.-o— Specifies that the interim fix installation can overwrite an existing package.-p— Instructs the emgr command to perform a preview for either installation or removal. The preview runs all of the check operations, but does not make any changes.-P[ Package ] — Specifies the package-view operation, which displays all packages that are locked by the interim fix manager, their installer, and the locking label or labels.-q— Suppresses all output other than errors and strong warnings.-r— Instructs the emgr command to run a remove operation on the specified interim fix or interim fixes. Removal of an active patch reinstates any prior patch for the module, provided one exists. If no prior patch exists, the module is restored to its original un-patched state.-RLabel — Instructs the emgr command to run a force-remove operation. This option removes interim fix data and package locks associated with the interim fix label without actually removing interim fix files, running any remove scripts, or boot processing. This option can be used for only one interim fix at a time. The interim fix label is required to identify the target interim fix. Attention: • This method of interim fix removal should be considered an emergency procedure. Because this method can create inconsistencies on the target system, the force remove method should be used only if all other methods of removing the interim fix are unsuccessful. • You must use the standard removal process (-rflag) to remove an installed interim fix. In emergency procedures, you can use the-Rflag to force-remove a label. The-Rflag requires the-Fflag to remove a label. When you specify the-Fflag with the-Rflag, for example,emgr -FR ifix_label, the force-remove option does not delete any of the interim fix files, saved data, or execute remove scripts. This option must be used only if the standard remove process cannot be accomplished.-uVUID — Selects the interim fix for this operation by specifying the VUID.-U— Instructs the emgr command to unmount an interim fix or interim fixes that have been mount-installed by using the-mflag.-v``{1|2|3}— Specifies the verbosity level for the listing operation or the verification level for the check operation. Valid levels are 1, 2, and 3.-wDirectory — Instructs the emgr command to use the specified working directory instead of the default /tmp directory.-X— Attempts to expand any file systems where there is insufficient space to perform the requested emgr operation. This option expands file systems based on available space and size estimates that are provided by the interim fix package and the emgr command. Note: 1. It is possible to exhaust available disk space during an installation even if the-Xflag is used. This is more likely if other files are being created or expanded in the same file systems during an installation. 2. Remote file systems cannot be expanded by the emgr command.
종료 상태
| 값 | 뜻 |
|---|---|
| 0 | 모든 작업이 성공함 |
| 0보다 큼 | 오류 |
영어 원문
0 All of the emgr command operations completed successfully.
0 An error occurred.
보안
다중 수준 보안(MLS) 시스템에서는 시스템 관리자나 aix.system.install 권한이 있는 사용자가 실행할 수 있습니다. 임시 수정 데이터, 저장 파일, 임시 파일은 root만 접근할 수 있습니다.
시스템에서 지원하는 MD5 생성 명령을 찾으면 MD5 체크섬을 보여 주므로, 안전한 출처의 값과 맞춰 볼 수 있습니다. 찾지 못하면 따로 하는 일은 없습니다. MD5 명령 경로는 셸 변수 EMGR_MD5_CMD에 절대 경로로 정해 줄 수 있습니다.
참고: 이 기능은 처음 릴리스된 임시 수정 관리에는 없으므로 bos.rte.install을 최신 수준으로 올리는 것이 좋습니다.
영어 원문
System administrators or users with the aix.system.install authorization can run the emgr command on a multi-level secure (MLS) system. Ifix data, saved files, and temporary files are accessible only by the root user.
The emgr command looks for a supported MD5 generating command on the system. If one is located, the emgr command displays the MD5 checksum to the user. The user can then cross check this MD5 sum with a secured source. If an MD5 generating command is not located, the emgr command takes no further action.
The user can force set the path to an MD5 command by exporting the EMGR_MD5_CMD shell variable. This variable should contain the absolute path to the MD5 generating command.
Note: This feature is not supported in the original release of interim fix management. It is recommended that the user updates to the latest level of interim fix management by updating bos.rte.install to the latest level.
예제
| 명령 | 하는 일 |
|---|---|
emgr -p -e games.020303.epkg.Z |
패키지 설치를 미리 봄 |
emgr -X -e games.020303.epkg.Z |
패키지를 설치하고 필요하면 파일 시스템을 자동으로 늘림 |
emgr -l |
시스템의 모든 임시 수정 나열 |
emgr -lv3 -L games |
레이블 games를 수준 3으로 나열 |
emgr -r -L games |
레이블 games 제거 |
emgr -rp -f /tmp/myfixes |
/tmp/myfixes에 적힌 레이블의 제거를 미리 봄 |
emgr -cv2 |
모든 임시 수정을 검증 수준 2로 검사 |
emgr -c -n3 |
ID 3을 검증 수준 1(기본)로 검사 |
emgr -u 000775364C00020316020703 -c -v3 |
그 VUID의 임시 수정을 검증 수준 3으로 검사 |
emgr -P |
잠긴 패키지와 그 레이블 모두 나열 |
emgr -P bos.rte.lvm |
bos.rte.lvm을 잠근 레이블 나열 |
emgr -e games.020303.epkg.Z -mb |
마운트 설치하고 bosboot를 건너뜀 |
emgr -M |
마운트 설치한 모든 임시 수정 파일을 마운트 |
emgr -U -L games |
레이블 games의 파일 마운트를 풂 |
emgr -i kernelmod.031007.epkg.Z |
(6.1) 동시 갱신을 시스템 메모리에 적용 |
emgr -C -L kernelmod |
(6.1) 레이블 kernelmod의 동시 갱신을 디스크에 확정 |
emgr -i kernelmod2.031007.epkg.Z -C |
(6.1) 동시 갱신을 메모리에 적용하고 디스크에도 확정 |
emgr -v3 -d test.102403.epkg.Z |
test.102403.epkg.Z의 내용을 수준 3으로 보여 줌 |
자주 쓰는 형태(TL·SP 올리기 전):
emgr -l # 설치된 임시 수정
emgr -P # 잠긴 파일셋
emgr -r -L IJ12345s1a # 제거
smitty update_all
영어 원문
- To preview the installation of an interim fix package called games.020303.epkg.Z, enter:
emgr -p -e games.020303.epkg.Z
- To install the interim fix package called games.020303.epkg.Z and automatically expand file systems if additional space is needed, enter:
emgr -X -e games.020303.epkg.Z
- To list all interim fixes on the system, enter:
emgr -l
- To do a level 3 listing of interim fix label games, enter:
emgr -lv3 -L games
- To remove the interim fix with label games, enter:
emgr -r -L games
- To preview the removal of the interim fix labels in file /tmp/myfixes, enter:
emgr -rp -f /tmp/myfixes
- To check all interim fixes with verification level 2, enter:
emgr -cv2
- To check interim fix ID number 3 with verification level 1 (the default verification level), enter:
emgr -c -n3
- To check interim fix with VUID of 000775364C00020316020703 and verification level 3, enter:
emgr -u 000775364C00020316020703 -c -v3
- To list all locked packages and their interim fix labels, enter:
emgr -P
- To list all interim fix labels that have locked the installp package bos.rte.lvm, enter:
emgr -P bos.rte.lvm
- To mount-install the interim fix package called games.020303.epkg.Z and suppress AIX bosboot, enter:
emgr -e games.020303.epkg.Z -mb
- To mount all interim fix files that have been mount-installed on the system by using the
-moption, enter:
emgr -M
- To unmount all interim fix files associated with interim fix label games, enter:
emgr -U -L games
- To apply an interim fix package called kernelmod.031007.epkg.Z with concurrent updates to the system memory, enter:
emgr -i kernelmod.031007.epkg.Z
- To commit the concurrent updates associated with the interim fix label kernelmod to the disk, enter:
emgr -C -L kernelmod
- To apply an interim fix package called kernelmod2.031007.epkg.Z with concurrent updates to the system memory, and also to commit the concurrent updates to the disk, enter:
emgr -i kernelmod2.031007.epkg.Z -C
- To display level 3 verbosity output on interim fix package test.102403.epkg.Z, enter:
emgr -v3 -d test.102403.epkg.Z
파일
| 파일 | 설명 |
|---|---|
/usr/sbin/emgr |
emgr 명령 |
/usr/emgrdata/DBS/ifix.db |
임시 수정 헤더 데이터베이스 |
/usr/emgrdata/DBS/files.db |
임시 수정 파일 데이터베이스 |
/usr/emgrdata/DBS/pkglck.db |
패키지 잠금 데이터베이스 |
/usr/emgrdata/DBS/prereq.db |
선행 조건 데이터베이스 |
/usr/emgrdata/DBS/e2eprereq.db |
임시 수정 사이 선행 조건 데이터베이스 |
/usr/emgrdata/DBS/aparref.db |
APAR 참조 파일 데이터베이스 |
영어 원문
- /usr/sbin/emgr — Contains the emgr command
- /usr/emgrdata/DBS/ifix.db — Contains the interim fix header database
- /usr/emgrdata/DBS/files.db — Contains the interim fix files database
- /usr/emgrdata/DBS/pkglck.db — Contains the package locks database
- /usr/emgrdata/DBS/prereq.db — Contains the prerequisite database
- /usr/emgrdata/DBS/e2eprereq.db — Contains the interim fix prerequisite database
- /usr/emgrdata/DBS/aparref.db — Contains the APAR reference file database
Related reference:
- epkg Command
Related information:
- bosboot command
- Installing optional software products and service updates
리눅스(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)입니다.