Which three statements are true about rpm package dependencies?

Which three statements are true about rpm package dependencies?

Which three statements are true about rpm package dependencies?

A.
The RPM command can detect only direct package dependencies.

B.
The RPM command can detect both direct and indirect package dependencies.

C.
The YUM command can detect and resolve direct and indirect package dependencies.

D.
The YUM command can detect and resolve indirect package dependencies only within the
same repository.

E.
The YUM command can only detect and resolve direct package dependencies.

F.
A source RPM can have a dependency on a binary RPM.

Explanation:
D: yum deplist <package>
Produces a list of all dependencies and what packages provide those dependencies for the given
packages.



Leave a Reply 7

Your email address will not be published. Required fields are marked *


Efrem

Efrem

But I still do not know what is the difference between:
direct and indirect package dependencies.

Jef Adams

Jef Adams

Although RPM is a very robust tool that a lot of users are already familiar with, there are still some minor flaws that are an annoyance to users. The most prominent problem is a state commonly referred to by most people as ‘dependency hell’. This problem occurs with packages that depend on a lot of other packages —> direct, some of those packages also depend on a lot of other packages —> indirect. It is common knowledge that you must install all dependencies for the program to work correctly. RPM is unable to automatically do this for you. It can only check whether all the required packages are installed prior to installing the needed package.
Manually tracking and installing each dependency is a major chore for most people who only want to install a single package initially.

YUM is capable of tracking the dependencies of a package and installing them prior to installing the package that the user wanted to install. This simplifies the whole process as you need only know the name of the package that you want to install and not worry whether the required packages have been installed or not. Packages that can’t be found on the system are searched for in the repositories that are available to the system.

Jef Adams

Jef Adams

So correct answers are A,C,F