# Trying to add PHP 8.3.6 RPMs to my local repo using

**URL:** https://forums.rockylinux.org/t/trying-to-add-php-8-3-6-rpms-to-my-local-repo-using/13748
**Category:** Rocky Linux Help & Support
**Tags:** rocky-linux-9
**Created:** [April 25, 2024, 5:36pm UTC](https://forums.rockylinux.org/t/trying-to-add-php-8-3-6-rpms-to-my-local-repo-using/13748 "2024-04-25T17:36:20Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![choseph](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@choseph](https://forums.rockylinux.org/u/choseph)
#### Post date: [April 25, 2024, 5:36pm UTC](https://forums.rockylinux.org/t/trying-to-add-php-8-3-6-rpms-to-my-local-repo-using/13748/1 "2024-04-25T17:36:20Z")

</div>

I’ve cobbled together the PHP 8.3.6 RPMs I need for my kickstart installation from Remi using dnf --downloadonly, but as I’m learning, these are modular RPMs and using my createrepo command:

createrepo -u “[http://172.31.255.5/ks](http://172.31.255.5/ks)” -g /var/www/html/ks/build/rocky9-PHP8.3.xml /var/www/html/ks

is apparently not including the metadata for the modular PHP 8.3 Remi rpms I’ve added. I’d really like the build to include all the packages required and not have to pull them from remi each time.

Here is the anaconda log error:

anaconda 34.25.3.8 exception report  
Traceback (most recent call first):  
File “/usr/lib64/python3.9/site-packages/pyanaconda/payload/dnf/payload.py”, line 910, in install  
raise PayloadError(msg)  
File “/usr/lib64/python3.9/site-packages/pyanaconda/installation\_tasks.py”, line 458, in run\_task  
self.\_task(\*self.\_task\_args, \*\*self.\_task\_kwargs)  
File “/usr/lib64/python3.9/site-packages/pyanaconda/installation\_tasks.py”, line 496, in start  
self.run\_task()  
File “/usr/lib64/python3.9/site-packages/pyanaconda/installation\_tasks.py”, line 311, in start  
item.start()  
File “/usr/lib64/python3.9/site-packages/pyanaconda/installation\_tasks.py”, line 311, in start  
item.start()  
File “/usr/lib64/python3.9/site-packages/pyanaconda/installation\_tasks.py”, line 311, in start  
item.start()  
File “/usr/lib64/python3.9/site-packages/pyanaconda/installation.py”, line 399, in run\_installation  
queue.start()  
File “/usr/lib64/python3.9/threading.py”, line 917, in run  
self.\_target(\*self.\_args, \*\*self.\_kwargs)  
File “/usr/lib64/python3.9/site-packages/pyanaconda/threading.py”, line 275, in run  
threading.Thread.run(self)  
pyanaconda.payload.errors.PayloadError: Payload error - DNF installation has ended up abruptly: No available modular metadata for modular packageTraceback (most recent call last):  
File “/usr/lib64/python3.9/site-packages/pyanaconda/payload/dnf/utils.py”, line 105, in do\_transaction  
base.do\_transaction(display=display)  
File “/usr/lib/python3.9/site-packages/dnf/base.py”, line 977, in do\_transaction  
self.transaction.\_populate\_rpm\_ts(self.\_ts)  
File “/usr/lib/python3.9/site-packages/dnf/db/group.py”, line 361, in _populate\_rpm\_ts  
raise dnf.exceptions.Error(_(“No available modular metadata for modular package”))  
dnf.exceptions.Error: No available modular metadata for modular package

packaging.log:  
packaging.log:20:31:57,527 CRT dnf: No available modular metadata for modular package ‘php-8.3.6-1.el9.remi.x86\_64’, it cannot be installed on the system  
packaging.log:20:31:57,528 CRT dnf: No available modular metadata for modular package ‘php-cli-8.3.6-1.el9.remi.x86\_64’, it cannot be installed on the system  
packaging.log:20:31:57,528 CRT dnf: No available modular metadata for modular package ‘php-common-8.3.6-1.el9.remi.x86\_64’, it cannot be installed on the system  
packaging.log:20:31:57,528 CRT dnf: No available modular metadata for modular package ‘php-fpm-8.3.6-1.el9.remi.x86\_64’, it cannot be installed on the system  
packaging.log:20:31:57,529 CRT dnf: No available modular metadata for modular package ‘php-intl-8.3.6-1.el9.remi.x86\_64’, it cannot be installed on the system  
packaging.log:20:31:57,529 CRT dnf: No available modular metadata for modular package ‘php-ldap-8.3.6-1.el9.remi.x86\_64’, it cannot be installed on the system  
packaging.log:20:31:57,529 CRT dnf: No available modular metadata for modular package ‘php-mbstring-8.3.6-1.el9.remi.x86\_64’, it cannot be installed on the system  
packaging.log:20:31:57,529 CRT dnf: No available modular metadata for modular package ‘php-mysqlnd-8.3.6-1.el9.remi.x86\_64’, it cannot be installed on the system  
packaging.log:20:31:57,530 CRT dnf: No available modular metadata for modular package ‘php-opcache-8.3.6-1.el9.remi.x86\_64’, it cannot be installed on the system  
packaging.log:20:31:57,530 CRT dnf: No available modular metadata for modular package ‘php-pdo-8.3.6-1.el9.remi.x86\_64’, it cannot be installed on the system  
packaging.log:20:31:57,530 CRT dnf: No available modular metadata for modular package ‘php-pecl-yaml-2.2.3-3.el9.remi.8.3.x86\_64’, it cannot be installed on the system  
packaging.log:20:31:57,530 CRT dnf: No available modular metadata for modular package ‘php-process-8.3.6-1.el9.remi.x86\_64’, it cannot be installed on the system  
packaging.log:20:31:57,530 CRT dnf: No available modular metadata for modular package ‘php-sodium-8.3.6-1.el9.remi.x86\_64’, it cannot be installed on the system  
packaging.log:20:31:57,531 CRT dnf: No available modular metadata for modular package ‘php-xml-8.3.6-1.el9.remi.x86\_64’, it cannot be installed on the system

Thanks in advance!

---

<div class="post-metadata">

### Author: ![choseph](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@choseph](https://forums.rockylinux.org/u/choseph)
#### Post date: [April 25, 2024, 8:54pm UTC](https://forums.rockylinux.org/t/trying-to-add-php-8-3-6-rpms-to-my-local-repo-using/13748/2 "2024-04-25T20:54:47Z")

</div>

> [@Fix No available modular metadata package offline repo](https://forums.rockylinux.org/t/fix-no-available-modular-metadata-package-offline-repo/8713):
>
> I have an offline repo however it’s missing modular metadata. I ran createrepo to try and repair the repo. However I can still see the metadat is missing. How can I fix this?

I installed PHP from the module for 8.3.6 on my build server and located the modules yaml file in my dnf cache and then ran the following:

modifyrepo\_c --mdtype=module /home/nunya/remi/1c0c71b62fb87dd4bbafd08f78f841f5816a73f217e3bb0789c5d4383b90d06c-modules.yaml /var/www/html/ks/repodata

createrepo\_c --update -g /var/www/html/ks/build/rocky9-PHP8.3.xml /var/www/html/ks

It built without errors and introduced the modules.yaml.bz2 into my repodata folder, but it still failed… ☹

I went into the shell of the system and noticed it only pulled the following:

-rw-r–r–. 1 root root 1345826 Apr 25 20:31 42d33362a3cf3786264edc286f0ddfd4d3f68629bd7462eaa6f325d9c46db0f4-primary.xml.gz  
-rw-r–r–. 1 root root 8685 Apr 25 20:31 b8bc1ff6a384f4a191c4e243d3c25370a766f91d3bbad85c65d9c568770eeb7d-rocky9-PHP8.3.xml.gz  
-rw-r–r–. 1 root root 1121432 Apr 25 20:31 d8c89e6caf133b7bda47f5df925fa080c8cb0055fe94d7a6132f8ceee77e53f1-filelists.xml.gz  
drwxr-xr-x. 2 root root 60 Apr 25 20:31 gen  
-rw-r–r–. 1 root root 4339 Apr 25 20:31 repomd.xml

Do I need to include something in my comps file to include module metadata for those packages?

---

<div class="post-metadata">

### Author: ![remi](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/remi/32/1425_2.png) [@remi](https://forums.rockylinux.org/u/remi)
#### Post date: [April 26, 2024, 4:57am UTC](https://forums.rockylinux.org/t/trying-to-add-php-8-3-6-rpms-to-my-local-repo-using/13748/3 "2024-04-26T04:57:18Z")

</div>

To generate a proper modular repository, you need to provide the `modules.yaml` content to modifyrepo\_c command.

You also need to run modifyrepo\_c AFTER createrepo\_c

Have you tried to ignore modularity and it use as a flat repo with the `module_hotfixes=1` option ?

---

<div class="post-metadata">

### Author: ![choseph](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@choseph](https://forums.rockylinux.org/u/choseph)
#### Post date: [April 26, 2024, 3:36pm UTC](https://forums.rockylinux.org/t/trying-to-add-php-8-3-6-rpms-to-my-local-repo-using/13748/4 "2024-04-26T15:36:30Z")

</div>

I was able to get it to build with the modules.yaml retrieved from cache after running:

`createrepo --update -u “http://172.31.255.5/ks” -g /var/www/html/ks/build/rocky9-PHP8.3.xml /var/www/html/ks`

> Directory walk started  
> Directory walk done - 1629 packages  
> type group added to list from path: /var/www/html/ks/repodata/fa9c8aafd2b1112822a5809adc56ea611f443ba28af1ece19d634de7c5c001b4-rocky9-PHP8.3.xml  
> type group\_gz added to list from path: /var/www/html/ks/repodata/b8bc1ff6a384f4a191c4e243d3c25370a766f91d3bbad85c65d9c568770eeb7d-rocky9-PHP8.3.xml.gz  
> type module added to list from path: /var/www/html/ks/repodata/b1643ada15e8d90aaee6b6f96211ef2d6ba7030ea7d291bb9867000781377c32-modules.yaml.gz  
> type modules added to list from path: /var/www/html/ks/repodata/b1643ada15e8d90aaee6b6f96211ef2d6ba7030ea7d291bb9867000781377c32-modules.yaml.gz  
> Loaded information about 1629 packages  
> Using rocky9-PHP8.3.xml from target repo  
> Using b1643ada15e8d90aaee6b6f96211ef2d6ba7030ea7d291bb9867000781377c32-modules.yaml.gz from target repo  
> Temporary output repo path: /var/www/html/ks/.repodata/  
> Preparing sqlite DBs  
> Pool started (with 5 workers)  
> Pool finished

Thanks for your help!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)
#### Post date: [June 25, 2024, 3:37pm UTC](https://forums.rockylinux.org/t/trying-to-add-php-8-3-6-rpms-to-my-local-repo-using/13748/5 "2024-06-25T15:37:17Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
