一次性安装src.rpm编译所依赖的软件包
yum-builddep SRPMS/fcitx-4.2.8.4-4.1.cgdl21.src.rpm
NAME
yum-builddep - install missing dependencies for building an RPM package
SYNOPSIS
yum-builddep package
DESCRIPTION
yum-builddep is a program which installs the RPMs needed to build the specified package. The source RPM for the specified package must be available in a Yum repository (which will be
automatically enabled, if it is disabled) or it can be a local source RPM or a spec file.
EXAMPLES
Download and install all the RPMs needed to build the kernel RPM:
yum-builddep kernel
FILES
As yum-builddep uses YUM libraries for retrieving all the information, it relies on YUM configuration for its default values like which repositories to use. Consult YUM documentation
for details:
/etc/yum.conf
/etc/yum/repos.d/
/var/cache/yum/