User Tools

Site Tools


aix:aix_package

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
aix:aix_package [2022/10/24 11:59]
manu
aix:aix_package [2025/01/16 12:37] (current)
manu [Standard commands to manage AIX packages]
Line 59: Line 59:
 6100-06-03-1048 6100-06-03-1048
 6100-06-02-1044 6100-06-02-1044
-6100-06-01-1043 
-6100-06-00-0000 
-6100-05-03-1036 
-6100-05-02-1034 
-6100-05-01-1016 
-6100-04-07-1036 
 6100-04-06-1034 6100-04-06-1034
 6100-04-05-1015 6100-04-05-1015
 6100-04-04-1014 6100-04-04-1014
-6100-04-03-1009 
-6100-04-02-1007 
-6100-04-01-0944 
 6100-03-07-1036 6100-03-07-1036
 . .
Line 134: Line 125:
 # lslpp -f <​package_name>​ : list all files from an installed package # lslpp -f <​package_name>​ : list all files from an installed package
 # lslpp -w <​command_full_path>​ : list the package from which the command belong to # lslpp -w <​command_full_path>​ : list the package from which the command belong to
 +# lslpp -qch : list hostory on packages
  
 # install_all_updates -d ./ -rc -Y   : update all packages from current directory (-Y: accept licenses) # install_all_updates -d ./ -rc -Y   : update all packages from current directory (-Y: accept licenses)
Line 143: Line 135:
 # installp -u -g <package name> : remove installed package and dependencies # installp -u -g <package name> : remove installed package and dependencies
 </​cli>​ </​cli>​
 +
 +Best practice for updating you OS:
 +  * first update the install tools
 +  * preview the remainder of the TL update
 +  * apply the TL update
 +
 +<​code>​
 +installp -d <​path>​ -i
 +installp -d <​path>​ -p
 +installp -d <​path>​
 +</​code>​
  
 **IMPORTANT** **IMPORTANT**
Line 148: Line 151:
 <cli prompt='#'>​ <cli prompt='#'>​
 # installp -Or -agX ios.cli.rte # installp -Or -agX ios.cli.rte
 +</​cli>​
 +
 +===== Date of package update =====
 +
 +Date for latest kernel upgrade
 +<cli prompt='>'>​
 +root@nimprod /root> lslpp -h | grep -p bos.mp
 +bos.mp64
 +                  7.2.5.203 COMMIT COMPLETE 07/24/23 15:05:28
 +                  7.2.5.205 COMMIT COMPLETE 11/15/23 10:27:26
 </​cli>​ </​cli>​
  
Line 157: Line 170:
 =====  check package consistency ===== =====  check package consistency =====
  
-Check AIX package consistency:​ normal, checksum, deep+Check AIX package consistency:​ normal, checksum, deep, file list, links
 <cli prompt='#'>​ <cli prompt='#'>​
 # lppchk -v # lppchk -v
 # lppchk -c # lppchk -c
 # lppchk -vm3 # lppchk -vm3
 +# lppchk -f
 +# lppchk -l
 </​cli>​ </​cli>​
  
Line 397: Line 412:
 ===== To convert a library file .a from static to a dynamic file .so ===== ===== To convert a library file .a from static to a dynamic file .so =====
  
-  * Use the command: ​+  * Use the command ​(here 64 bits) 
 +<cli prompt='#'>#​ /​opt/​freeware/​bin/​gcc -maix64 -shared -Wall /​opt/​freeware/​lib/​libgmp.a -o libgmp.so.10</​cli>​ 
 + 
 +Now check if library 32 or 64 bits (32b 'll failed) 
 +<cli prompt='>'>​ 
 +[root@aix06] /​opt/​freeware/​lib>​ dump -X32 -H /​opt/​freeware/​lib/​libgmp.so.10 
 + 
 +/​opt/​freeware/​lib/​libgmp.so.10:​ 
 +dump: /​opt/​freeware/​lib/​libgmp.so.10:​ 0654-108 file is not valid in the current object file mode. 
 +        Use the -X option to specify the desired object mode. 
 +         
 +[root@aix06] /​opt/​freeware/​lib>​ dump -X64 -H /​opt/​freeware/​lib/​libgmp.so.10 
 + 
 +/​opt/​freeware/​lib/​libgmp.so.10:​ 
 + 
 +                        ***Loader Section*** 
 +                      Loader Header Information 
 +VERSION# ​        #​SYMtableENT ​    #​RELOCent ​       LENidSTR 
 +0x00000001 ​      ​0x00000007 ​      ​0x0000001c ​      ​0x000000d3 
 + 
 +#​IMPfilID ​       OFFidSTR ​        ​LENstrTBL ​       OFFstrTBL 
 +0x00000002 ​      ​0x000002a0 ​      ​0x0000009b ​      ​0x00000373 
 + 
 + 
 +                        ***Import File Strings*** 
 +INDEX  PATH                          BASE                MEMBER 
 +0      /​opt/​freeware/​lib/​gcc/​powerpc-ibm-aix7.2.0.0/​10/​ppc64:/​opt/​freeware/​lib/​gcc/​powerpc-ibm-aix7.2.0.0/​10:/​opt/​freeware/​lib/​gcc/​powerpc-ibm-aix7.2.0.0/​10/​../​../​..:/​opt/​freeware/​lib:/​usr/​lib:/​lib 
 +1                                    libgcc_s.a ​         shr.o 
 +</​cli>​ 
 +Old command
 <cli prompt='#'>#​ gcc -shared -Wl,​--whole-archive library.a -o library.so</​cli>​ <cli prompt='#'>#​ gcc -shared -Wl,​--whole-archive library.a -o library.so</​cli>​
  
aix/aix_package.1666605564.txt.gz · Last modified: 2022/10/24 11:59 by manu