yum-repo-client is a command line interface for interacting with the yum-repo-server. The aim is to provide a command line wrapper for every functionality the yum-repo-server provides so you don't have to fiddle with REST requests. This is especially good for automations that can run command line tools because you can modify the yum-repo-server as you wish without breaking your automation (provided you include the modifications in the yum-repo-client).
After installation the toplevel command repoclient
will be available.
- create
- deleterpm
- deletestatic
- deletevirtual
- generatemetadata
- linktostatic
- linktovirtual
- propagate
- propagaterepo
- querystatic
- queryvirtual
- queryrpm
- redirectto
- taglist
- tag
- untag
- uploadto
Please consult repoclient -h
for more information.
First of all it is recommended to run the tests:
python setup.py test
These should always be successful.
Optionally after that you can run:
python setup.py bdist_rpm
to get an rpm of the yum-repo-client.
To build a DEB package first install python-stdeb and then run:
python setup.py --command-packages=stdeb.command bdist_deb
The resulting deb package will be in the deb_dist
subfolder. Please keep in mind that in most cases it is not a good idea to build RPMs on Debian as the RPM dependencies can go horribly wrong. Creating Source RPMs should be less problematic.
If you have built a rpm file in the step above, then you can install it as usual.
Without the rpm file you can install the yum-repo-client with:
python setup.py install
To set the default host and port used by the yum-repo-client, you need to edit (or create) the file /etc/yum-repo-client.yaml
.
This file should contain the following entries :
DEFAULT_HOST : localhost
DEFAULT_PORT : 8000