You suspect a problem with the oponldap package and want to make sure that the files have not
be modified or otherwise tampered with. Which command would validate all of the files contained
in the openldap package and report any problems?
A.
pkgchk openldap
B.
pkginfo openldap
C.
pkg contents openldap
D.
pkg verify openldap
E.
pkg set-property signature-policy verify
Explanation:
pkgchk checks the accuracy of installed files or, by using the -l option, displays
information about package files. pkgchk checks the integrity of directory structures and files.
Discrepancies are written to standard error along with a detailed explanation of the problem.
Reference: man pkgchk
we’re talking about solaris 11 – so to validate package : Answer D
pkg verify openldap
Unfortunately there are a few such errors in the exam.
correct answer is d…………..
D
Answer is D. pkgchk is used in Solaris 10.
Reference:
Verifying Package Installation
Use the pkg verify command to validate the installation of packages in the current image.
/usr/bin/pkg verify [-Hqv] [pkg_fmri_pattern …]
If current signature policy for related publishers is not ignore, the signatures of each package are validated based on policy. See signature-policy in Properties For Signing Packages for an explanation of how signature policies are applied.
Use the -H option to omit the headers from the verification output. Use the -q option to print nothing but return failure if any fatal errors are found. Use the -v option to include informational messages regarding packages.
# pkg verify -v system/install/auto-install/auto-install-common
PACKAGE STATUS
pkg://solaris/system/install/auto-install/auto-install-common ERROR
file: usr/share/auto_install/manifest/default.xml
Missing: regular file does not exist
I think both A and D are correct.
From this link you can see the below:
http://www.oracle.com/technetwork/server-storage/solaris11/documentation/solaris-ips-wp-337871.pdf
“While IPS packaging is the default packaging technique for Oracle Solaris 11, SVR4 packaging tools,such as pkgadd(1M),are still provided for compatibility to support installations of SVR4 packaged application software.”
You need to pick 1 answer from the list… So since this is an Solaris 11 Exam, your best option will be the IPS command ‘D’
Agree with you. Answer D is correct for Solaris 11
D