Your company has set a policy that all Oracle Solaris 11 instances must have a backup boot
environment created whenever software packages are added, removed, or updated. The current
boot environment must not be modified. The backup boot environment must represent the system
image before the procedure and the new boot environment must represent the image before the
procedure. The image properties on your system are as follows:
You are instructed to install the top utility.
Which two will allow the top package to be installed on the system while adhering to the company policy?
A.
pkg property pkg-install=backup-bepkg install top
B.
pkg set-property be-policy create-backuppkg install top
C.
pkg install –be-name BE2 top
D.
pkg set-property be-policy always-newpkg install top
E.
pkg set-property create-backup truepkg install top
Explanation:
By default, a new BE is automatically created when you perform one of the following
operations:
* (D) Set the be-policy image policy to always-new. Under this policy, all package operations are
performed in a new BE set as active on the next boot.
* Update particular key system packages such as some drivers and other kernel components. This
can happen when you install, uninstall, update, change variant, or change facet.
* Often a new BE is created when you execute the pkg update command to update all packages
that have updates available.
* Specify any of the following options: –be-name, –require-new-be, –backup-be-name, –requirebackup-be.
the question was Which two will allow ?
so it is C and D
C:
root@s11exam:~# pkg install -nv –be-name BE2 mc
Packages to install: 2
Estimated space available: 15.72 GB
Estimated space to be consumed: 126.82 MB
Create boot environment: Yes
Activate boot environment: Yes
Create backup boot environment: No
Rebuild boot archive: No
Changed packages:
solaris
file/mc
None -> 4.8.8,5.11-0.175.2.0.0.42.1:20140623T013618Z
library/slang
None -> 2.2.4,5.11-0.175.2.0.0.42.1:20140623T015442Z
Editable files to change:
Install:
etc/slsh/slsh.rc
Planning linked: 0/1 done; 1 working: zone:dbzone
Linked image ‘zone:dbzone’ output:
| Estimated space available: 15.72 GB
| Estimated space to be consumed: 106.56 MB
| Rebuild boot archive: No
`
Planning linked: 1/1 done
D is correct:
root@s11exam:~# pkg set-property be-policy always-new
root@s11exam:~# pkg property
PROPERTY VALUE
be-policy always-new
ca-path /etc/openssl/certs
check-certificate-revocation False
content-update-policy default
flush-content-cache-on-success True
mirror-discovery False
preferred-authority
publisher-search-order [‘solaris’]
send-uuid True
signature-policy verify
signature-required-names []
trust-anchor-directory etc/certs/CA
use-system-repo False
root@s11exam:~# pkg install -nv mc
Packages to install: 2
Estimated space available: 15.72 GB
Estimated space to be consumed: 126.82 MB
Create boot environment: Yes
Activate boot environment: Yes
Create backup boot environment: No
Rebuild boot archive: No
Changed packages:
solaris
file/mc
None -> 4.8.8,5.11-0.175.2.0.0.42.1:20140623T013618Z
library/slang
None -> 2.2.4,5.11-0.175.2.0.0.42.1:20140623T015442Z
Editable files to change:
Install:
etc/slsh/slsh.rc
Planning linked: 0/1 done; 1 working: zone:dbzone
Linked image ‘zone:dbzone’ output:
| Estimated space available: 15.72 GB
| Estimated space to be consumed: 106.56 MB
| Rebuild boot archive: No
`
Planning linked: 1/1 done