{"id":563,"date":"2026-11-26T15:19:26","date_gmt":"2026-11-26T15:19:26","guid":{"rendered":"https:\/\/www.aixperts.co.uk\/?p=563"},"modified":"2026-11-26T15:21:19","modified_gmt":"2026-11-26T15:21:19","slug":"hacking-fileset-prerequisites-in-aix-bff-files","status":"publish","type":"post","link":"https:\/\/www.aixperts.co.uk\/?p=563","title":{"rendered":"Hacking fileset prerequisites in AIX&#8217; BFF files"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">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&#8217;t ask&#8230;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I tried the usual .toc fix but installp over-wrote it every time. I then &#8216;unpacked&#8217; the fileset with<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code># bffcreate -cvXqd '.'<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ok, &#8216;unpacked&#8217;&#8230; It has come to light that bffcreate &#8216;unpacking&#8217; means inspecting the content, and if it&#8217;s an installation file, rename it .I, if it&#8217;s an update file, rename it .U. The file is not actually changed!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># restore -qxf &lt;Installation_file&gt;.I<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>*coreq bos.rte 5.3.0.0<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">We now need to package this file up again using &#8216;backup&#8217;. Importantly, the lpp_name file should be first. I don&#8217;t think it breaks not being first, but it hurts performance. Use &#8216;print&#8217; to output lpp_name as the first input to &#8216;backup&#8217;. (Not done below as &#8216;find&#8217; happens to show lpp_name first)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>find . | backup -iqUf &lt;Installation_file&gt;.bff<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">We name the file .bff as there is no need to do the intermediate step of .I or .U.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Make sure you don&#8217;t have files in the directory you don&#8217;t want packaged. And if lpp_name doesn&#8217;t end up being first, use a trick like (print .\/lpp_name; find .) | to get it at the top.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">TIP: I was suggested the following from &#8216;manis&#8217; on libera&#8217;s IRC channel ##aix. The best way to get a completely accurate repackaging file list for &#8216;backup&#8217; is to use the one already in the original installation image:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>restore -Tqf your.original.bff 2&gt;\/dev\/null | backup -iqvf &lt;Installaion_file&gt;.bff<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Easy! As long as you avoid the man page. By the way, the tool mkinstallp is part of the bos.adt.tools fileset.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;t ask&#8230; I tried the usual .toc fix but installp over-wrote it every time. I then &#8216;unpacked&#8217; &hellip; <a href=\"https:\/\/www.aixperts.co.uk\/?p=563\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[7,183,184,186,185,187],"class_list":["post-563","post","type-post","status-publish","format-standard","hentry","category-aix","tag-aix","tag-bff","tag-bffcreate","tag-fileset","tag-installation-images","tag-lpp_name"],"_links":{"self":[{"href":"https:\/\/www.aixperts.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aixperts.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aixperts.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aixperts.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aixperts.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=563"}],"version-history":[{"count":5,"href":"https:\/\/www.aixperts.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/563\/revisions"}],"predecessor-version":[{"id":568,"href":"https:\/\/www.aixperts.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/563\/revisions\/568"}],"wp:attachment":[{"href":"https:\/\/www.aixperts.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aixperts.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aixperts.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}