summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-12-19 11:43:52 +0100
committerRemi Collet <remi@php.net>2024-12-19 11:43:52 +0100
commitef2319075b3abd6518f979bf1b237af00088e196 (patch)
treebe442eebd3a0b1ca3f74bc06ddd7b8dc6e87b32b
parent571e91a150b12569676fe4db55bbd94d1f9a673c (diff)
comment dbpath examples
-rw-r--r--README.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/README.md b/README.md
index 40123a6..f8fc7c7 100644
--- a/README.md
+++ b/README.md
@@ -224,10 +224,12 @@ For example, can be used to set the Database path and backend
$ mock -r fedora-41-x86_64 ini
...
$ php -a
+ php > // use and old database (bdb) from an EL-8 chroot
php > rpmdefine("_dbpath /var/lib/mock/almalinux-8-x86_64/root/var/lib/rpm");
php > rpmdefine("_db_backend bdb_ro");
php > var_dump(rpmdbinfo("almalinux-release")[0]["Summary"]);
string(22) "AlmaLinux release file"
+ php > // use and new database (sqlite) from an Fedora-41 chroot
php > rpmdefine("_dbpath /var/lib/mock/fedora-41-x86_64/root/usr/lib/sysimage/rpm");
php > rpmdefine("_db_backend sqlite");
php > var_dump(rpmdbinfo("fedora-release")[0]["Summary"]);