How To Install pdc-client on Fedora 36
Introduction
In this tutorial we learn how to install pdc-client
on Fedora 36.
What is pdc-client
This client package contains two separate Product Definition Center clients and API module. Both clients contain extensive built-in help. Just run the executable with -h or –help argument. 1. pdc_client This is a very simple client. Essentially this is just a little more convenient than using curl manually. Each invocation of this client obtains a token and then performs a single request. This client is not meant for direct usage, but just as a helper for integrating with PDC from languages where it might be easier than performing the network requests manually. 2. pdc This is much more user friendly user interface. A single invocation can perform multiple requests depending on what subcommand you used. The pdc client supports Bash completion if argcomplete Python package is installed. 3. Python API (pdc_client) When writing a client code interfacing with PDC server, you might find pdc_client module handy. It provides access to the configuration defined above and automates obtaining authorization token.
We can use yum
or dnf
to install pdc-client
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install pdc-client.
Install pdc-client on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install pdc-client
using dnf
by running the following command:
sudo dnf -y install pdc-client
Install pdc-client on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install pdc-client
using yum
by running the following command:
sudo yum -y install pdc-client
How To Uninstall pdc-client on Fedora 36
To uninstall only the pdc-client
package we can use the following command:
sudo dnf remove pdc-client
pdc-client Package Contents on Fedora 36
/etc/bash_completion.d
/etc/bash_completion.d/pdc.bash
/etc/pdc.d
/etc/pdc.d/fedora.json
/usr/bin/pdc
/usr/bin/pdc_client
/usr/share/doc/pdc-client
/usr/share/doc/pdc-client/README.markdown
/usr/share/man/man1/pdc_client.1.gz
/usr/share/pdc-client
/usr/share/pdc-client/plugins
/usr/share/pdc-client/plugins/__init__.py
/usr/share/pdc-client/plugins/__pycache__
/usr/share/pdc-client/plugins/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/share/pdc-client/plugins/__pycache__/__init__.cpython-310.pyc
/usr/share/pdc-client/plugins/__pycache__/base_product.cpython-310.opt-1.pyc
/usr/share/pdc-client/plugins/__pycache__/base_product.cpython-310.pyc
/usr/share/pdc-client/plugins/__pycache__/build_image_rtt_tests.cpython-310.opt-1.pyc
/usr/share/pdc-client/plugins/__pycache__/build_image_rtt_tests.cpython-310.pyc
/usr/share/pdc-client/plugins/__pycache__/build_images.cpython-310.opt-1.pyc
/usr/share/pdc-client/plugins/__pycache__/build_images.cpython-310.pyc
/usr/share/pdc-client/plugins/__pycache__/component.cpython-310.opt-1.pyc
/usr/share/pdc-client/plugins/__pycache__/component.cpython-310.pyc
/usr/share/pdc-client/plugins/__pycache__/compose.cpython-310.opt-1.pyc
/usr/share/pdc-client/plugins/__pycache__/compose.cpython-310.pyc
/usr/share/pdc-client/plugins/__pycache__/compose_full_import.cpython-310.opt-1.pyc
/usr/share/pdc-client/plugins/__pycache__/compose_full_import.cpython-310.pyc
/usr/share/pdc-client/plugins/__pycache__/compose_image_rtt_tests.cpython-310.opt-1.pyc
/usr/share/pdc-client/plugins/__pycache__/compose_image_rtt_tests.cpython-310.pyc
/usr/share/pdc-client/plugins/__pycache__/compose_tree_locations.cpython-310.opt-1.pyc
/usr/share/pdc-client/plugins/__pycache__/compose_tree_locations.cpython-310.pyc
/usr/share/pdc-client/plugins/__pycache__/contact.cpython-310.opt-1.pyc
/usr/share/pdc-client/plugins/__pycache__/contact.cpython-310.pyc
/usr/share/pdc-client/plugins/__pycache__/group_resource_permissions.cpython-310.opt-1.pyc
/usr/share/pdc-client/plugins/__pycache__/group_resource_permissions.cpython-310.pyc
/usr/share/pdc-client/plugins/__pycache__/image.cpython-310.opt-1.pyc
/usr/share/pdc-client/plugins/__pycache__/image.cpython-310.pyc
/usr/share/pdc-client/plugins/__pycache__/permission.cpython-310.opt-1.pyc
/usr/share/pdc-client/plugins/__pycache__/permission.cpython-310.pyc
/usr/share/pdc-client/plugins/__pycache__/product.cpython-310.opt-1.pyc
/usr/share/pdc-client/plugins/__pycache__/product.cpython-310.pyc
/usr/share/pdc-client/plugins/__pycache__/product_version.cpython-310.opt-1.pyc
/usr/share/pdc-client/plugins/__pycache__/product_version.cpython-310.pyc
/usr/share/pdc-client/plugins/__pycache__/release.cpython-310.opt-1.pyc
/usr/share/pdc-client/plugins/__pycache__/release.cpython-310.pyc
/usr/share/pdc-client/plugins/__pycache__/release_variant.cpython-310.opt-1.pyc
/usr/share/pdc-client/plugins/__pycache__/release_variant.cpython-310.pyc
/usr/share/pdc-client/plugins/__pycache__/repo.cpython-310.opt-1.pyc
/usr/share/pdc-client/plugins/__pycache__/repo.cpython-310.pyc
/usr/share/pdc-client/plugins/__pycache__/rpm.cpython-310.opt-1.pyc
/usr/share/pdc-client/plugins/__pycache__/rpm.cpython-310.pyc
/usr/share/pdc-client/plugins/base_product.py
/usr/share/pdc-client/plugins/build_image_rtt_tests.py
/usr/share/pdc-client/plugins/build_images.py
/usr/share/pdc-client/plugins/component.py
/usr/share/pdc-client/plugins/compose.py
/usr/share/pdc-client/plugins/compose_full_import.py
/usr/share/pdc-client/plugins/compose_image_rtt_tests.py
/usr/share/pdc-client/plugins/compose_tree_locations.py
/usr/share/pdc-client/plugins/contact.py
/usr/share/pdc-client/plugins/group_resource_permissions.py
/usr/share/pdc-client/plugins/image.py
/usr/share/pdc-client/plugins/permission.py
/usr/share/pdc-client/plugins/product.py
/usr/share/pdc-client/plugins/product_version.py
/usr/share/pdc-client/plugins/release.py
/usr/share/pdc-client/plugins/release_variant.py
/usr/share/pdc-client/plugins/repo.py
/usr/share/pdc-client/plugins/rpm.py
References
Summary
In this tutorial we learn how to install pdc-client
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).