Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   yum-builddep    ( 1 )

установить недостающие зависимости для сборки пакета RPM (install missing dependencies for building an RPM package)

Имя (Name)

yum-builddep - install missing dependencies for building an RPM package


Синопсис (Synopsis)

yum-builddep package

yum-builddep /path/to/local/package.src.rpm

yum-builddep /path/to/local/package.spec


Описание (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.

Note, that only the BuildRequires information within the SRPM header information is used to determine build dependencies. This will specifically omit any dependencies that are required only for specific architectures.


Общие настройки (General options)

--target ARCH Set target architecture for spec parsing.

--define 'MACRO EXPR' Define the rpm MACRO with value EXPR for spec parsing.


Примеры (Examples)

Download and install all the RPMs needed to build the kernel RPM:
              yumdownloader --source kernel && rpm2cpio kernel*src.rpm |
              cpio -i kernel.spec && \
              yum-builddep kernel.spec

The kernel includes specific BuildRequires dependencies for different architectures. In order to make sure that those dependencies are downloaded and installed, the SRPM should be downloaded, the .spec file extracted from it and used to determine the full dependency list.


Файлы (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/


Смотри также (See also)

yum.conf(5) http://yum.baseurl.org/