AIX Install packages, upgrade, patching commands

root's picture

To see the details of installed file sets:
#lslpp -l

To list the installation history of all file set in bos.net packages:
#lslpp -ha bos.net.*

To list the files in the bos.rte package:
#lslpp -f bos.rte

To list the file set which contain /etc/hosts file:
#lslpp -w /etc/hosts

To list the pre requisites for bos.net.nfs.server file set:
#lslpp -p bos.net.nfs.server

To list the installable products on the device rmt0:
#installp -L -d /dev/rmt0.1

To install all filesets within bos.net and expands file system if it requires:
#installp -aX -d /dev/rmt0.1 bos.net

To remove bos.net:
#installp -u bos.net

To reject the applied software:
#installp -r

To commit the <package>:
#installp -c -f <package>

To cleanup an incomplete installation:
#installp -C

To check the <package>:
#lppchk -c <package>

Verifies that the / (root), /usr and /usr/share parts of the system are valid with each other:
#lppchk -v

To install the file set associated with fix IX9999 from rmt0:
#instfix -k IX9999 -d /dev/rmt0.1

To verify fix IY6969 installed:
#instfix -ik IY6969

How to display missing filesets from service pack:
#instfix -icqv | grep ':-:'

To verify if you have all packages installed for the current ML and why after upgrade you cannot see the newer version. Also, how to determine missing filesets to show correct oslevel in AIX

# instfix -i|grep ML
    All filesets for 5.3.0.0_AIX_ML were found.
    All filesets for 5300-04_AIX_ML were found.
    All filesets for 5300-05_AIX_ML were found.
    All filesets for 5300-06_AIX_ML were found.
    All filesets for 5300-02_AIX_ML were found.
    All filesets for 5300-01_AIX_ML were found.
    All filesets for 5300-03_AIX_ML were found.
    All filesets for 5300-07_AIX_ML were found.
    All filesets for 5300-08_AIX_ML were found.
    Not all filesets for 5300-09_AIX_ML were found.
    Not all filesets for 5300-10_AIX_ML were found.
    Not all filesets for 5300-11_AIX_ML were found.
    Not all filesets for 5300-12_AIX_ML were found.
# oslevel -s
5300-08-10-1015
# instfix -ciqk "5300-09_AIX_ML" | grep ":-:"
5300-09_AIX_ML:xlsmp.rte:1.8.0.0:1.7.0.0:-:AIX 5300-09 Update
# instfix -ciqk "5300-10_AIX_ML" | grep ":-:"
5300-10_AIX_ML:xlsmp.rte:1.8.0.0:1.7.0.0:-:AIX 5300-10 Update
# instfix -ciqk "5300-11_AIX_ML" | grep ":-:"
5300-11_AIX_ML:xlsmp.rte:1.8.0.1:1.7.0.0:-:AIX 5300-11 Update
# instfix -ciqk "5300-12_AIX_ML" | grep ":-:"
5300-12_AIX_ML:xlsmp.rte:1.8.0.1:1.7.0.0:-:AIX 5300-12 Update

In our example above, the update for xlsmp.rte is missing.

Thou shalt not steal!

If you want to use this information on your own website, please remember: by doing copy/paste entirely it is always stealing and you should be ashamed of yourself! Have at least the decency to create your own text and comments and run the commands on your own servers and provide your output, not what I did!

Or at least link back to this website.

Recent content

root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root