例:
# wget ftp://ftp.pbone.net/mirror/vault.centos.org/5.6/cr/SRPMS/\ yum-3.2.22-37.el5.centos.src.rpm # rpm -ivh yum-3.2.22-37.el5.centos.src.rpm # rpmbuild --ba /usr/src/redhat/SPECS/yum.spec # rpm -Uvh /usr/src/redhat/RPMS/noarch/yum-3.2.22-37.noarch.rpm
# yum install rpm-build
error: line 83: Dependency tokens must begin with alpha-numeric, '_' or '/': BuildRequires: %kernel_module_package_buildreqs
redhat-rpm-config をインストールすれば良い。
# yum install redhat-rpm-config