IBM / ibmichroot

A set of scripts to facilitate the use of chroot-based containers for IBM i
MIT License
21 stars 9 forks source link

Have yum install when -i option is used occur after the chroot is setup #55

Closed abmusse closed 5 years ago

abmusse commented 5 years ago

We include an option -i to install software into the chroot using yum.

With the current script this will occur first before the chroot is setup.

I suspect this was done to allow users to install software into the chroot post chroot setup.

I think we should have yumInstall function be called after chroot setup is complete.

If a user would like to install software into the chroot post setup we should suggest using

yum --installroot=/QOpenSys/root_path install package directly.

What are your thoughts @ThePrez ?

ThePrez commented 5 years ago

I like the idea. What would the syntax look like to install multiple packages? Just use -i multiple times? (-i nodejs10 -i python3\*)

abmusse commented 5 years ago

What would the syntax look like to install multiple packages? Just use -i multiple times?

Currently yes same as how the -g option is used.