Which six other steps are required to set up the local IPS package repository?

You are setting up a local image packaging System (IPS) package repository on your Oracle
Solaris 11 server. The information and specifications that you have are as follows:
The Oracle Solaris11 repository ISO image has been downloaded into the /repo directory (a zfs
file system).
The current publisher is:
PUBLISHERTYPESTATUSURI
solarisoriginonlinehttp://pkg.oracle.com/solaris/release/
You will be replacing the current publisher with:
PUBLISHERTYPESTATUSURI
solarisoriginonlinehttp://solaris.example.com/
The location of the repository will be /export/IPS. This ZFS file system has already been created.
Among the steps you will perform is to set the publisher to the local repository by using the pkg set
– publisher command.
Which six other steps are required to set up the local IPS package repository?

You are setting up a local image packaging System (IPS) package repository on your Oracle
Solaris 11 server. The information and specifications that you have are as follows:
The Oracle Solaris11 repository ISO image has been downloaded into the /repo directory (a zfs
file system).
The current publisher is:
PUBLISHERTYPESTATUSURI
solarisoriginonlinehttp://pkg.oracle.com/solaris/release/
You will be replacing the current publisher with:
PUBLISHERTYPESTATUSURI
solarisoriginonlinehttp://solaris.example.com/
The location of the repository will be /export/IPS. This ZFS file system has already been created.
Among the steps you will perform is to set the publisher to the local repository by using the pkg set
– publisher command.
Which six other steps are required to set up the local IPS package repository?

A.
Perform an rsync on the ISO image to copy the files from the ISO image to the /export/IPS file
system.

B.
chmod 700 on/export/IPS

C.
Use the svccfg command to set the pkg/inst_root property to export/IPS.

D.
Use the svccfg command to set the pkg.inst_root property to /export/IPS.

E.
Use the svccfg command to set the pkg/readonly property to the application/pkg/server service
to true.

F.
Use the svccfg command to set the pkg/readonly property for the application/pkg/server service
false.

G.
Refresh the application/pkg/server service with the svcadm refresh command.

H.
Refresh the package repository with the pkgrep refresh command.

I.
Enable the application /pkg/server service.

J.
Run the pkhrepo rebuild command to rebuild the repository catalog.

Explanation:
B: Set the correct permissions.
Serving a Local Repository Using SMF
4. (A) Copy the repository files to the ZFS file system you created. This will increase the
performance of repository accesses and avoid the need to remount the .iso image each time the
system restarts. (Be sure to use /mnt/repo, not /mnt/repo/, so that you copy the repo directory and
not just the files and subdirectories in the repo directory.)
# rsync -aP /mnt/repo /export/repo2010_11
You can use the df command to confirm the copy:
5.Once the files are copied, unmount the image and deallocate the block device.
6. Now that your local copy is ready, use the svccfg command to configure the repository server
service, specifying the location of your local repository and setting readonly to true:
(D)#svccfg -s application/pkg/server setprop pkg/inst_root=/export/repo2010_11/repo
(E)#svccfg -s application/pkg/server setprop pkg/readonly=true
7. Start the pkg.depotd repository service:
(G) #svcadm refresh application/pkg/server
(I)#svcadm enable application/pkg/server
Reference: How I Created Local Package Repositories
http://www.oracle.com/technetwork/articles/servers-storage-admin/localrepositories-1377242.html



Leave a Reply 9

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


BlooD

BlooD

Correct A,C,E,G,I and maby B (in instruction http://www.oracle.com/technetwork/articles/servers-storage-admin/localrepositories-1377242.html not chmod command)

D incorrect syntax “pkg.inst_root”, correct “pkg/inst_root”;
F incorrect value “false”;
H incorrect syntax “pkgrep” command, correct “pkgrepo”, but maybe it’s a typo;
J incorrect syntax “pkhrepo rebuild”, correct “pkgrepo” and bad options “rebuild”;
http://docs.oracle.com/cd/E26502_01/html/E29030/pkgrepo-1.html#scrolltoc

bla

bla

A, D, E, G, H, I
i didn’t find B, that is needed.

BlooD

BlooD

Why is “D”, and not “C”?
If you see the documentation, the error in the “D” and “C”:

Now that your local copy is ready, use the svccfg command to configure the repository server service, specifying the location of your local repository and setting readonly to true:

# svccfg -s application/pkg/server setprop pkg/inst_root=/export/repo2010_11/repo

Tthat is:
in “D” incorrect “pkg.inst_root” but correct “/export/IPS”
in “C” correct “pkg/inst_root” but incorrect “export/IPS”

Head Hr pht

Head Hr pht

If you have any problem regarding Solaris and Unix
Please Contact me:- 9865748161

Naagesh

Naagesh

yo yo honey singh

Head Hr pht

Head Hr pht

teri principal bhi honey singh ki fan hai