Skip to content
Ivan Kapelyukhin edited this page Apr 12, 2017 · 1 revision

Registering RHEL against SMT

The fresh RHEL 7 installation comes without any packages installed.

  1. Enable the repository from the installation media:
# mount /dev/sr0 /mnt
# cp /mnt/media.repo /etc/yum.repos.d/media.repo
# cat >> /etc/yum.repos.d/media.repo
enabled=1
baseurl=file:///mnt/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
^D
  1. Run yum clean all
  2. Download suseRegisterRES package:
mkdir /root/suse_reg_repo
cd /root/suse_reg_repo
wget -O http://nu.novell.com/repo/\$RCE/RES7/x86_64/RPMS/suseRegisterRES-1.3.4-16.1.noarch.rpm
  1. Install createrepo:
yum install createrepo
  1. Create repository for the suseRegisterRES package:
cd /root/suse_reg_repo
createrepo .
  1. Add the newly created repo to yum:
# cat > /etc/yum.suse.repo/suse.repo
[SUSERegRepo]
name=SUSERegRepo
metadata_expire=-1
gpgcheck=0
cost=500
enabled=1
baseurl=file:///root/suse_reg_repo
^D
  1. Run yum clean all
  2. Install suse_register:
yum install suseRegisterRES.noarch

Register the system against SMT server

  1. Enable RES repos on SMT server:
smt-repos -p RES,7
  1. On the client, edit /etc/suseRegister.conf and change the url to the address of the SMT server
  2. Run suse_register
  3. Run yum clean all
  4. Run yum --noplugins list to verify that RES repos show up in the list
Useful references:
  1. SMT client RHEL
  2. RHEL SMT update
  3. http://nu.novell.com/repo/$RCE/RES7/x86_64/