RPM: Switching from i686 to Pentium4
Checking the latest ways to distribuite OS/2 software on the RPM server, I noticed that the new application (specially Qt 5 and libraries for the new browser) are getting classified under "pentium4". This seems to be way on how the software is compiled and seems that all the new stuff will be "pentium4".
On my case I had an ArcaOS 5.0.7 with all the packages on i686, so I wanted to test a way to switch everything to pentium4. I asked for help on the OS2World forum and this is what I had documented about that change on my VM.
I was recommend to do the following steps:
- Run a REXX Script to get a list of the RPM packages you have installed
- Rename the /usr and /etc folders, so newer one can be created
- Reinstall RPM/YUM but this time specifing that you are going to use pentium4
Every steps has their specifics tricks and this is how I do it for my VM. It may change according to each individual personal experience.
Getting the list of Installed Software
Andy Willis provided me two scripts he used to extract the list. I used this one:
/* REXX to get just package names from RPM installed output */ rc = SysLoadFuncs() Parse Arg fileout rc = SysFileDelete(fileout) fileinv = holdrpm.txt address cmd 'yum list |grep install >'fileinv list = '' do while Lines(fileinv) text = LineIn(fileinv) parse var text package'.'. list = list || ' ' || package end rc = Lineout(fileout,'yum install -y 'list) rc = SysFileDelete(fileinv)
I named it "list.cmd" and run it with 4OS/2 like:
list.cmd >out.txt
It will generate a file called "holdrpm.txt" that will let you know all you have installed and a "out.txt" file with the "yum install..." command to reinstall everything later.
Rename the /usr and /etc folders
This part is tricky since you need to unlock some files and kill a process before being able to rename /usr .
First I run the unlock command:
unlock c:\*.exe c:\*.dll /r
Here I exaggerated and little bit and unlocked every DLL and EXE on the C:\ HDD, but worked for me.
After that I access the famous CAD (Control+Alt+Delete) acceded TOP and killed a process for CUPS. It is C:\USR\SBIN\CUPSD.EXE
Now I'm ready to rename /usr and /etc to /usr-old and /etc-old. This part is the delicate one since your system may became unstable.
Reinstalling RPM - YUM
It had been a long time since I installed the RPM-YUM bootstrap and I didn't want to do again directly. So I choose to reisntall Arca Noae Package Manager all over and let that tool take change of installing RPM-RUM.
I run