On 24. 07. 20 19:05, Carl George wrote:
> Is there a better way to achieve the results with less
> risk?
What I do for this is run podman containers. I create local images of
centos+epel, then use a helper script to run them with a podman volume
mounted at/var/cache/{yum,dnf}. With my script I can run repoquery
commands prefixed by a distro identifier.
c7 repoquery --whatprovides webserver
This also has the benefit of being able to start a container
interactively, install packages, and then throw it away when you're
done, with zero risk of installing packages on the host. If this
approach is interesting to you I can put my scripts in a public repo
somewhere.
This is certainly interesting when you actually want to install packages, but
for repoqueries, I find it a bit overkill.
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok