1 (edited by Coiram 2022-12-26 17:35:42)

Topic: Offline PHP

ISSUE:

Due to security measure the machines have been preventing internet connection, therefore PHP cannot be installed using i.e. by dnf install epel-release-latest-8.noarch.rpm

PROBLEM:

- unable to install PHP from local repo

STEPS TAKEN SO FAR:

- Created local network accessible for both AppStream/ and BaseOS/ using ISO
   - this is working fine i.e. should I install httpd or any other package
   - no PHP version available on those local network repos

- Dumped content of rpms.remirepo.net - enterprise -8 -remi -x86_64
   - created with above dump a local repo by running createrepo /opt/rpm
   - local repo, correctly setup in yum.conf does not recognize the repo i.e. no packages are shown
   - if I run dnf install php-7.xxxx or php-8.xxxx the dependencies are not easy addressed

HELP:

- I need to create a local PHP install please

Re: Offline PHP

>   - no PHP version available on those local network repos

Should have supported streams (7.4 and 8.0 with minimal set of extension)

>    - created with above dump a local repo by running createrepo /opt/rpm

This won't work, especially for modular repository

You need a mirror of all needed repositories, with their metadata, at least
- AppStream
- BaseOS
- PowerTools
- EPEL
- remi-safe
- remi-modular

rsync seems the simplest way, especially as this mirror have to be synced for updates.

Probably better to run the installation on a test computer, with an internet connection, to check what are the needed repo/packages

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi