Developers tools to test
yum
and
rpm
.
For example, you want to create an RPM repository. You create
a directory (say, /home/yegor/repo
) and place all your
.rpm
files there.
Then, you execute
createrepo
to create
meta files:
$ docker run --rm -v /home/yegor/repo:/repo yegor256/yum-utils createrepo /repo
Then, you may want to list all artifacts in the repo at /home/yegor/repo
:
$ docker run --rm -v /home/yegor/repo:/repo yegor256/yum-utils \
/bin/bash -c "yum-config-manager --add-repo file:///repo; \
yum --disablerepo='*' --enablerepo='repo' list available"
Should work.