I had to install a software package with a prerequisite for bos.rte 6.1.0.7 on an AIX 5.3 system for testing and development purposes. Don’t ask…
I tried the usual .toc fix but installp over-wrote it every time. I then ‘unpacked’ the fileset with
# bffcreate -cvXqd '.'
Ok, ‘unpacked’… It has come to light that bffcreate ‘unpacking’ means inspecting the content, and if it’s an installation file, rename it .I, if it’s an update file, rename it .U. The file is not actually changed!
So, this yields the installation (.I) file and generates a .toc. The .toc file is actually generated by the lpp_name file inside the installation file, which is in backup/restore format. To unpack this file, run:
# restore -qxf <Installation_file>.I
This unpacks all files from it including the lpp_name file in the base directory. Open this file and edit the prerequisite version as needed.
*coreq bos.rte 5.3.0.0
We now need to package this file up again using ‘backup’. Importantly, the lpp_name file should be first. I don’t think it breaks not being first, but it hurts performance. Use ‘print’ to output lpp_name as the first input to ‘backup’. (Not done below as ‘find’ happens to show lpp_name first)
find . | backup -iqUf <Installation_file>.bff
We name the file .bff as there is no need to do the intermediate step of .I or .U.
Make sure you don’t have files in the directory you don’t want packaged. And if lpp_name doesn’t end up being first, use a trick like (print ./lpp_name; find .) | to get it at the top.
TIP: I was suggested the following from ‘manis’ on libera’s IRC channel ##aix. The best way to get a completely accurate repackaging file list for ‘backup’ is to use the one already in the original installation image:
restore -Tqf your.original.bff 2>/dev/null | backup -iqvf <Installaion_file>.bff
Easy! As long as you avoid the man page. By the way, the tool mkinstallp is part of the bos.adt.tools fileset.
