Hello Remy
Some time ago people on this forum help me create this article:
- https://www.os2world.com/wiki/index.php?title=RPM:_Switching_from_i686_to_Pentium4
It has a different scope, and maybe it is outdated for switching to i686 to Pentium 4 (Maybe there are easy procedures today), but there is a REXX script that may help you proving the information of what was installed on your system using the same "yum list" command.
Check it out to see if it works for you.
Regards
It looks like you are missing some installed packages (e.g. ASPIROUT AN base installed)
Because you do a grep install (fist line which may contain INSTALL is taken too like: in french Paquets installés)
I think that first comment line may always have less than 3 words.
May I suggest something close to your rexx but not using a temporary output file during the process:
/* REXX to get just package names from RPM installed output */
rc = SysLoadFuncs()
Parse Arg fileout
rc = SysFileDelete(fileout)
list = ''
NEWQ= 'YUM'||time(S)
NEWQ=RXQUEUE('Create',NEWQ)
oq = RXQUEUE('Set',NEWQ)
address cmd 'yum list installed * 2>&1 |RXQUEUE 'NEWQ' /FIFO'
Do queued()
parse pull pkgs
If words(pkgs)>2 then do
parse var pkgs package'.'.
list = Strip(list || ' ' || package)
End
End
rc = Lineout(fileout,'yum install -y 'list)
call RXQUEUE 'Delete',NEWQ
call RXQUEUE 'Set',oq
Return
Regards