OS2 World Community Forum
OS/2, eCS & ArcaOS - Technical => Setup & Installation => Topic started by: Einar Lygre on July 07, 2015, 01:09:21 pm
-
I recently replaced eCS 2.1 by eCS2.2. I then wanted to install YUM. I run RPM-YUM-BOOTSTRAP-1.3.WPI. That part seemed to go well. Next step was to run Yum Bootstrap Console. Then I got this output:
1. Make sure you have an active Internet connection.
2. Type "yum install yum" in the command prompt below.
3. Wait until YUM downloads the base packages and installs itself.
This may take some time.
4. Reboot!
5. Have nice yumming!
Repository setup
package os2-release-00-2.oc00.noarch is already installed
package netlabs-rel-0.0.0-4.oc00.i386 (which is newer than netlabs-rel-0
.0.0-2.oc00.i386) is already installed
Testing internet connection: "yum repolist"...
Traceback (most recent call last):
File "E:\TMP\YUMBT\USR\BIN\YUM", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/@unixroot/usr/share/yum-cli/yummain.py", line 288, in user_main
errcode = main(args)
File "/@unixroot/usr/share/yum-cli/yummain.py", line 98, in main
base.getOptionsConfig(args)
File "/@unixroot/usr/share/yum-cli/cli.py", line 253, in getOptionsConfig
(opts, self.cmds) = self.optparser.setupYumConfig(args=args)
File "/@unixroot/usr/share/yum-cli/cli.py", line 1599, in setupYumConfig
self.base.setupKeyImportCallbacks()
File "/@unixroot/usr/share/yum-cli/output.py", line 1225, in setupKeyImportCal
lbacks
gpgca_import_func = self.getCAKeyForRepo
AttributeError: 'YumBaseCli' object has no attribute 'getCAKeyForRepo'
And that is the only output I get whatever I try.
What do I have to do?
Einar Lygre
-
Yum is installed by the eCS 2.2b2 installer, so no need to also install it manually.
You can test by running yum update from a command line
-
Running yum update gives:
[E:\]yum update
execv failed, rc=-1
execv: No such file or directory
-
After the yum bootstrap installation a reboot is recommended. That is not only 1) to make the config.sys change of the LIBPATH take effect, but also 2) to change the environment from the bootstrap environment to the standard environment, while 3) deleting the bootstrap files.
If you had your LIBPATH set already before and delete the bootstrap desktop objects and files manually, you don't need the reboot.
BTW: 1.3 is quite outdated, but the oldest version that works anyway. Better get the recent version from here: http://trac.netlabs.org/rpm#Releases (http://trac.netlabs.org/rpm#Releases)
-
Hi
I recently installed RPM/YUM on a fresh eCS 2.1 VM. No crazy experiments, no strange paths , just an usual eCS 2.1 installation.
I just want to do if I'm doing the right thing to instal YUM.
My procedure is the following:
- I got "rpm-yum-bootstrap-1_5-p4.wpi".
- Installed with WarpIn as usual with my C: as UNIXROOT
- After the installation I run "YUM bootstrap console". It does his stuff without issues.
- Rebooted
- I changed the config.sys paths manually to include /usr/bin, usr/sbin (on PATH) and usr/lib (on LIBPATH). (Correction, I noticed it put it first on PATH, that why I was not finding it)
I noticed that yum.exe was only available on /tmp/yumbt
- I run the "YUM bootstrap console" again
- I run a "yum install yum"
it installed all the required libs and yum in the right path.
- Reboot again.
After that I never use the "YUM bootstrap console" because the "good" yum.exe program is now on /usr/bin and is included on the path, so it can be called by using the OS/2 command prompt.
I guess I can delete tmp/yumbt now, right?
Regards
-
> - I got "rpm-yum-bootstrap-1_5-p4.wpi".
> - Installed with WarpIn as usual with my C: as UNIXROOT
> - After the installation I run "YUM bootstrap console". It does his stuff without issues.
You have missed here 'yum install yum'.
> - Rebooted
> I noticed that yum.exe was only available on /tmp/yumbt
> - I run the "YUM bootstrap console" again
> - I run a "yum install yum"
> it installed all the required libs and yum in the right path.
> - Reboot again.
This time you made it right.
> After that I never use the "YUM bootstrap console" because the "good" yum.exe program is now on /usr/bin and is included on the path, so it can be called by using the OS/2 command prompt.
Yes.
> I guess I can delete tmp/yumbt now, right?
Yes.
-
I guess I can delete tmp/yumbt now, right?
Yes, also use Warpin to remove "rpm-yum-bootstrap-1_5-p4.wpi" .