> That's why I said you'd need to supply all the desired files yourself when 
> using this CLI option as there's no way to just prepend/append paths to it.

Just to illustrate better how one could use this (in order to achieve your 
original objective):

```
# dnf install --releasever=38 --installroot=/rootfs rpm
[...]
# echo '%_foobar 123' > /etc/rpm/macros.foobar
# echo '%_foobar 456' > /rootfs/etc/rpm/macros.foobar
# rpm --eval '%_foobar'
123
# rpm --root /rootfs --eval '%_foobar'
123
# rpm --macros /rootfs/etc/rpm/macros.foobar --eval '%_foobar'
456
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2623#issuecomment-1777441264
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/2623/1777441...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to