inutoc 명령어 (AIX 5.3·6.1)
https://archive.horanglab.com/posts/aix-cmd-inutoc
핵심 정리
- 설치 이미지(BFF,
.bff·.I파일)가 있는 디렉터리에.toc파일을 만듭니다.installp와 SMIT는 이 목차로 설치할 수 있는 파일셋을 압니다. - TL·SP나 수정 파일을 내려받아 디렉터리에 풀었으면
inutoc .부터 실행합니다. 파일을 더하거나 지운 뒤에도 다시 실행합니다. - 디렉터리를 주지 않으면
/usr/sys/inst.images를 씁니다. installp와bffcreate는.toc가 없으면 자동으로 이 명령을 부릅니다.- root만 실행할 수 있습니다.
| 항목 | 내용 |
|---|---|
| 버전 | AIX 5.3, AIX 6.1 (내용이 같고, 6.1 문서에 RBAC 안내가 더해짐) |
| 원문 | IBM Commands Reference — 5.3 Volume 3, 6.1 Volume 3 |
| 파일 | /usr/sbin/inutoc, .toc |
| 관련 명령어 | installp, bffcreate, lslpp, smitty update_all |
목적
백업 형식 설치 이미지가 있는 디렉터리에 .toc 파일을 만듭니다. installp 명령과 설치 스크립트가 씁니다.
영어 원문
Creates a .toc file for directories that have backup format file install images. This command is used by the installp command and the install scripts.
구문
inutoc [ Directory ]
설명
inutoc 명령은 Directory에 .toc 파일을 만듭니다. .toc 파일이 이미 있으면 새 정보로 다시 만듭니다. 기본 설치 이미지 디렉터리는 /usr/sys/inst.images입니다. Directory에 있는 설치 이미지마다 .toc 파일에 목차 항목을 더합니다.
installp와 bffcreate는 .toc 파일이 없는 디렉터리에서 설치 이미지를 만들거나 쓸 때 이 명령을 자동으로 부릅니다.
영어 원문
The inutoc command creates the .toc file in Directory. If a .toc file already exists, it is recreated with new information. The default installation image Directory is /usr/sys/inst.images. The inutoc command adds table of contents entries in the .toc file for every installation image in Directory.
The installp command and the bffcreate command call this command automatically upon the creation or use of an installation image in a directory without a .toc file.
Error Codes
| 코드 | 뜻 |
|---|---|
INUBADIR |
사용법 오류이거나 Directory가 디렉터리가 아님 |
INUCHDIR |
Directory로 이동할 수 없음 |
INUCRTOC |
.toc 파일을 만들 수 없음 |
INUGOOD |
오류 없음 |
INUSYSFL |
시스템 호출이 실패함 |
영어 원문
- INUBADIR — Usage error or Directory did not specify a directory.
- INUCHDIR — Unable to change directories to Directory.
- INUCRTOC — Could not create the .toc file.
- INUGOOD — No errors occurred.
- INUSYSFL — A system call failed.
보안
특권 제어: root만 실행할 수 있습니다.
(6.1) RBAC와 Trusted AIX 사용자: 이 명령은 특권 작업을 할 수 있으며 특권 사용자만 할 수 있습니다. 권한과 특권은 lssecattr 명령이나 getcmdattr 하위 명령으로 봅니다.
영어 원문
Privilege Control: Only the root user can run this command.
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.
예제
| 명령 | 하는 일 |
|---|---|
inutoc |
/usr/sys/inst.images 디렉터리의 .toc 파일을 만듦 |
inutoc /tmp/images |
/tmp/images 디렉터리의 .toc 파일을 만듦 |
자주 쓰는 형태:
cd /export/tl09sp12
inutoc .
installp -pacgXd . all # 미리 보기(-p)
영어 원문
- To create the .toc file for the /usr/sys/inst.images directory, enter:
inutoc
- To create a .toc file for the /tmp/images directory, enter:
inutoc /tmp/images
파일
| 파일 | 설명 |
|---|---|
/usr/sys/inst.images |
.toc 파일을 만드는 기본 디렉터리 |
.toc |
지정한 디렉터리에 이 명령이 만드는 파일 |
영어 원문
- /usr/sys/inst.images — The default directory to create a .toc file.
- .toc — The file created by this command in the specified directory.
Related reference:
- installp Command
Related information:
- bffcreate 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)입니다. .toc에 가까운 것은 로컬 저장소 메타데이터를 만드는 createrepo(RPM)나 dpkg-scanpackages(DEB)입니다.