gvenzl / oci-oracle-free

Build scripts for Oracle Database FREE container/docker images
Apache License 2.0
113 stars 28 forks source link

how can intall python or another packages?? #16

Closed 3368594 closed 11 months ago

3368594 commented 11 months ago

i am trying to install python and other packages with dnf and microdnf but the repositories seem to have problem any ideas? Thank you..!!!

gvenzl commented 11 months ago

Hey @3368594,

Thanks a lot for using these images.

You can install additional packages with microdnf. You have to run it as root (user 0) and the container needs access to the internet, for example:

[gvenzl@localhost ~]$ podman run --name test -ti -u=0 --entrypoint=bash gvenzl/oracle-free:slim
bash-4.4# microdnf install python3
Downloading metadata...
Downloading metadata...
Package                                                                                                                        Repository                                        Size
Installing:
 gdbm-1:1.18-2.el8.x86_64                                                                                                      ol8_baseos_latest                             132.7 kB
 gdbm-libs-1:1.18-2.el8.x86_64                                                                                                 ol8_baseos_latest                              61.7 kB
 platform-python-3.6.8-51.0.1.el8_8.1.x86_64                                                                                   ol8_baseos_latest                              88.6 kB
 platform-python-pip-9.0.3-22.el8.noarch                                                                                       ol8_baseos_latest                               1.7 MB
 platform-python-setuptools-39.2.0-7.el8.noarch                                                                                ol8_baseos_latest                             646.0 kB
 python3-libs-3.6.8-51.0.1.el8_8.1.x86_64                                                                                      ol8_baseos_latest                               8.2 MB
 python3-pip-9.0.3-22.el8.noarch                                                                                               ol8_appstream                                  20.5 kB
 python3-pip-wheel-9.0.3-22.el8.noarch                                                                                         ol8_baseos_latest                             914.9 kB
 python3-setuptools-39.2.0-7.el8.noarch                                                                                        ol8_baseos_latest                             166.6 kB
 python3-setuptools-wheel-39.2.0-7.el8.noarch                                                                                  ol8_baseos_latest                             293.6 kB
 python36-3.6.8-38.module+el8.5.0+20329+5c5719bc.x86_64                                                                        ol8_appstream                                  19.8 kB
Transaction Summary:
 Installing:       11 packages
 Reinstalling:      0 packages
 Upgrading:         0 packages
 Obsoleting:        0 packages
 Removing:          0 packages
 Downgrading:       0 packages
Enabling module streams:
    python36:3.6

Downloading packages...
Running transaction test...
Installing: python3-setuptools-wheel;39.2.0-7.el8;noarch;ol8_baseos_latest
Installing: python3-pip-wheel;9.0.3-22.el8;noarch;ol8_baseos_latest
Installing: gdbm-libs;1:1.18-2.el8;x86_64;ol8_baseos_latest
Installing: gdbm;1:1.18-2.el8;x86_64;ol8_baseos_latest
Installing: platform-python-pip;9.0.3-22.el8;noarch;ol8_baseos_latest
Installing: platform-python-setuptools;39.2.0-7.el8;noarch;ol8_baseos_latest
Installing: platform-python;3.6.8-51.0.1.el8_8.1;x86_64;ol8_baseos_latest
Installing: python3-libs;3.6.8-51.0.1.el8_8.1;x86_64;ol8_baseos_latest
Installing: python3-setuptools;39.2.0-7.el8;noarch;ol8_baseos_latest
Installing: python3-pip;9.0.3-22.el8;noarch;ol8_appstream
Installing: python36;3.6.8-38.module+el8.5.0+20329+5c5719bc;x86_64;ol8_appstream
Complete.
bash-4.4# python3 --version
Python 3.6.8
bash-4.4#
3368594 commented 11 months ago

Thanks for answering, I solved the problem, apparently the problem was an internal network blockage that did not allow downloading packages from the oracle linux repository, enable a vpn and that's it!

gvenzl commented 11 months ago

Great, glad to hear that!