RMT (Repository Mirroring Tool) script "rmt-client-setup-res" executed in CentOS RMT client results in "registration command not found. Abort"
This document (000021232) is provided subject to the disclaimer at the end of this document.
Environment
CentOS Linux release 8.5.2111
Situation
On executing the RMT script "rmt-client-setup-res" on a CentOS Linux release 8.5.2111 (with SUSE Liberty Linux registered) RMT client system, the error message "registration command not found. Abort" was returned.
Resolution
[ root @ <centos-client> ] # rpm --import public.gpg.keyAlternatively, specify the url which contains GPG public key in the 'gpgkey' option in a repository section to let DNF install the key instead. Contact your distribution or package provider, if needed.
2. Backup original script:
[ root @ <centos-client> ] # cp -p rmt-client-setup-res rmt-client-setup-res-org3. Modify the latest downloaded rmt-client-setup-res script:
[ root @ <centos-client> ] # vim rmt-client-setup-res4. First, the following 2 lines need to be removed:
echo "Importing repomd.xml.key" $RPM --import ${REGURL}/repo/SUSE/Updates/${SLL_name}/${SLL_version}/x86_64/update/repodata/repomd.xml.key5. The second adjustment takes into account that /usr/share/redhat-release in a Centos 8 is a directory and not a file. Change...
if [ -f /usr/share/redhat-release ]; then rm -f /usr/share/redhat-release; fi... to...
if [ -e /usr/share/redhat-release ]; then rm -rf /usr/share/redhat-release; fi6. The third adjustment imports the gpg key before SUSEConnect and librepo are installed:
Add... rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-sles-es-release ...between the lines... $DNF install --allowerasing ${SLL_release_package} ...and... $DNF install SUSEConnect librepo7. Execute the modified script:
[ root @ <centos-client> ] # ./rmt-client-setup-res
Cause
Error: GPG check FAILED + /usr/bin/curl --silent --show-error --insecure https://<RMT-server-name>/tools/rmt-client-setup --output rmt-client-setup registration command not found. Abort.
Status
Additional Information
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000021232
- Creation Date: 10-Oct-2023
- Modified Date:12-Oct-2023
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com