Today I will talk a little about an unknown subject, the inutoc and
the .toc file. I did a fast search and was difficult to find anything
useful to help me explaining WTF is the inutoc and .toc… The point is
not how unknown and difficult it is to be understood, but how much
simple and easy is to understand it…
I remember when my tech leader said : “The installation is not working because you have to recreate the .toc” … I didn’t understand what is inutoc, so i google it and found some explanation such as :
System administrator often has to install/update packages, but sometimes we don’t notice the necessity of the file because the installp create the file .toc before install. Obs. The automatically creation just happen for AIX 6.1 and 7.1.
If you have a server with a dir containing all the filesets and you export it to others servers you need to be carefull, because if you add a new fileset you have to recreate the .toc file by yourself, otherwise the fileset will not be installed.
To create a .toc file is very simple, you have just to use the command inutoc because it generate the TOC for a particular directory.
# cd /home/douglas/filesets/
# inutoc .
To create a .toc file for the /tmp/images directory, enter:
# inutoc /tmp/images
I remember when my tech leader said : “The installation is not working because you have to recreate the .toc” … I didn’t understand what is inutoc, so i google it and found some explanation such as :
” TOC : “Table Of Contents” is a fileset inventory file used by the AIX installers. A .toc file will contain package names, version information, fileset prerequisites, and other information required to perform an installation “
“Without .toc file (Table of Contents) AIX will not recognize installable filesets. This is not the case with AIX 6.1 and 7.1.”So .toc file is a table of contents..in practice when we are going to install a fileset, or a bunch of filesets, the AIX needs to use a .toc file in the same path of the filesets to use as reference to get information. The .toc file will contain all the information related to the fileset, such as the space required in the filesystem, package names, version information, fileset prerequisites, and other information required to perform an installation (you can cat .toc to see which information has inside the file).
System administrator often has to install/update packages, but sometimes we don’t notice the necessity of the file because the installp create the file .toc before install. Obs. The automatically creation just happen for AIX 6.1 and 7.1.
If you have a server with a dir containing all the filesets and you export it to others servers you need to be carefull, because if you add a new fileset you have to recreate the .toc file by yourself, otherwise the fileset will not be installed.
To create a .toc file is very simple, you have just to use the command inutoc because it generate the TOC for a particular directory.
Examples
To create the .toc file for the /home/douglas/filesets/ directory, enter:# cd /home/douglas/filesets/
# inutoc .
To create a .toc file for the /tmp/images directory, enter:
# inutoc /tmp/images
No comments:
Post a Comment