Which statement is true about the execution of the rpm -e sendmail command?

Consider the output shown:
#rpm –i sendmail-cf-8.14.4-8.e16.noarch.rpm
Error: Failed dependencies:
Sendmail = 7.14.4-8.e16 is needed by sendmail-cf-8.e16.noarch
# rpm –i sendmail-8.14.4-8.e16.x86_64.rpm
# rpm –i sendmail-cf-8.14.4-8.e16.noarch.rpm
# rpm -q sendmail sendmail-cf
Sendmail-8.14.4-8.e16.x86_64
Sendmail-cf-8.e16_64
Sendmail-cf-8.14.4-8.e16.noarch
# rpm –e sendmail
Which statement is true about the execution of the rpm -e sendmail command?

Consider the output shown:
#rpm –i sendmail-cf-8.14.4-8.e16.noarch.rpm
Error: Failed dependencies:
Sendmail = 7.14.4-8.e16 is needed by sendmail-cf-8.e16.noarch
# rpm –i sendmail-8.14.4-8.e16.x86_64.rpm
# rpm –i sendmail-cf-8.14.4-8.e16.noarch.rpm
# rpm -q sendmail sendmail-cf
Sendmail-8.14.4-8.e16.x86_64
Sendmail-cf-8.e16_64
Sendmail-cf-8.14.4-8.e16.noarch
# rpm –e sendmail
Which statement is true about the execution of the rpm -e sendmail command?

A.
It erases the sendmail package without errors.

B.
It fails with an error because the package version is not supplied on the command line.

C.
It fails with an error because the sendmail-cf package depends on the sendmail package.

D.
It erases the sendmail package and raises an error because the sendmail package depends on
the sendmail package.

E.
It erases both the sendmail and sendmail-cf packages because the sendmail-cf package
depends on the sendmail package.

Explanation:



Leave a Reply 5

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


Momo

Momo

[root@Cluster-Node1 network-scripts]# rpm -e sendmail
error: Failed dependencies:
sendmail = 8.14.4-8.el6 is needed by (installed) sendmail-cf-8.14.4-8.el6.noarch

The answer is C.

the tuk-ITE'05 CON-KMITL

the tuk-ITE'05 CON-KMITL

[root@OraLinux6 ~]# rpm -e sendmail
error: Failed dependencies:
sendmail = 8.14.4-8.el6 is needed by (installed) sendmail-cf-8.14.4-8.el6.noarch
[root@OraLinux6 ~]#

If you perform the yum remove sendmail command it erases both packages.

Jef Adams

Jef Adams

rpm is not yum

from man page rpm and previous post

rpm is a powerful Package Manager, which can be used to build, install, query, verify, update, and
erase individual software packages —> C

Tolun

Tolun

# rpm -i sendmail-cf-8.14.4-9.el6.noarch.rpm
error: Failed dependencies:
sendmail = 8.14.4-9.el6 is needed by sendmail-cf-8.14.4-9.el6.noarch

[root@tolun ~]# rpm -i sendmail-8.14.4-9.el6.x86_64.rpm
[root@tolun ~]# rpm -i sendmail-cf-8.14.4-9.el6.noarch.rpm
[root@tolun ~]# rpm -q sendmail sendmail-cf
sendmail-8.14.4-9.el6.x86_64
sendmail-cf-8.14.4-9.el6.noarch

[root@tolun ~]# rpm -e sendmail
error: Failed dependencies:
sendmail = 8.14.4-9.el6 is needed by (installed) sendmail-cf-8.14.4-9.el6.noarc

Answer is: C