Hot to Create IPS:-
#lofiadm -a <full_path_to>/sol-11-1111-repo-full.iso /dev/lofi/1
#mount -F hsfs /dev/lofi/1 /mnt
#rsync -aP /mnt/repo <destination>
#umount /mnt
#lofiadm -d /dev/lofi/1
# zfs create -o mountpoint=/RILIPS rpool/ips
# df -kh /RILIPS
Filesystem Size Used Available Capacity Mounted on
rpool/ips 67G 31K 41G 1% /RILIPS
# lofiadm -a /opt/sol-11-1111-repo-p01.iso
/dev/lofi/1
# mount -F hsfs /dev/lofi/1 /mnt
# cd /mnt
# ls
COPYRIGHT NOTICES README repo
#rsync –aP /mnt/repo /RILIPS
…
repo/publisher/solaris/pkg/xvm-gui/
repo/publisher/solaris/pkg/xvm-gui/0.5.11%2C5.11-0.175.0.0.0.0.0%3A20110927T120851Z
1550 100% 2.22kB/s 0:00:00 (xfer#147320, to-check=2/151751)
repo/publisher/solaris/pkg/xvm/
repo/publisher/solaris/pkg/xvm/0.5.11%2C5.11-0.160%3A20110228T165515Z
309 100% 0.44kB/s 0:00:00 (xfer#147321, to-check=1/151751)
repo/publisher/solaris/tmp/
repo/publisher/solaris/tmp/lock
0 100% 0.00kB/s 0:00:00 (xfer#147322, to-check=0/151751)
repo/publisher/solaris/trans/
sent 3346236849 bytes received 2816848 bytes 6638362.13 bytes/sec
total size is 3332622832 speedup is 1.00
#umount /mnt
#lofiadm –d /dev/lofi/1
# lofiadm -a /opt/sol-11-1111-repo-p02.iso
/dev/lofi/1
# mount -F hsfs /dev/lofi/1 /mnt
# df -kh /mnt
Filesystem Size Used Available Capacity Mounted on
/dev/lofi/1 3.2G 3.2G 0K 100% /mnt
# cd /mnt
# ls
COPYRIGHT NOTICES README repo
#rsync –aP /mnt/repo /RILIPS
………..
repo/publisher/solaris/file/ff/ffff2c12cfae4666bbeb37a16b09ef17934424ae
591 100% 0.64kB/s 0:00:00 (xfer#142855, to-check=3/142992)
repo/publisher/solaris/file/ff/ffff8d7c04b69be14d4e42e0c9b75106368cf4b9
1977 100% 2.15kB/s 0:00:00 (xfer#142856, to-check=2/142992)
repo/publisher/solaris/file/ff/ffffe8709466cd2ffc3d8f76d4cc0d17035f99ef
3988 100% 4.33kB/s 0:00:00 (xfer#142857, to-check=1/142992)
sent 3226181810 bytes received 2714812 bytes 5802150.26 bytes/sec
total size is 3213138366 speedup is 1.00
#umount /mnt
#lofiadm –d /dev/lofi/1
# svcs pkg/server
STATE STIME FMRI
disabled Mar_29 svc:/application/pkg/server:default
# svccfg -s pkg/server
svc:/application/pkg/server> listprop
pkg application
pkg/address net_address
pkg/cfg_file astring
pkg/content_root astring usr/share/lib/pkg
pkg/debug astring
pkg/file_root astring
pkg/inst_root astring /var/pkgrepo
pkg/log_access astring none
pkg/log_errors astring stderr
pkg/mirror boolean false
pkg/pkg_root astring /
pkg/port count 80
pkg/proxy_base astring
pkg/readonly boolean true
pkg/socket_timeout count 60
pkg/sort_file_max_size astring
pkg/ssl_cert_file astring
pkg/ssl_dialog astring smf
pkg/ssl_key_file astring
pkg/threads count 60
pkg/writable_root astring
pkg_bui application
pkg_bui/feed_description ustring
pkg_bui/feed_icon ustring web/_themes/pkg-block-icon.png
pkg_bui/feed_logo ustring web/_themes/pkg-block-logo.png
pkg_bui/feed_name ustring "package repository feed"
pkg_bui/feed_window count 24
pkg_secure application
pkg_secure/read_authorization astring solaris.smf.read.pkg-server
pkg_secure/ssl_key_passphrase astring
fs dependency
fs/entities fmri svc:/system/filesystem/local
fs/grouping astring require_all
fs/restart_on astring none
fs/type astring service
autofs dependency
autofs/entities fmri svc:/system/filesystem/autofs
autofs/grouping astring optional_all
autofs/restart_on astring none
autofs/type astring service
ntp dependency
ntp/entities fmri svc:/network/ntp
ntp/grouping astring optional_all
ntp/restart_on astring none
ntp/type astring service
network dependency
network/entities fmri svc:/milestone/network
network/grouping astring require_all
network/restart_on astring none
network/type astring service
manifestfiles framework
manifestfiles/lib_svc_manifest_application_pkg_pkg-server_xml astring /lib/svc/manifest/application/pkg/pkg-server.xml
general framework
general/entity_stability astring Unstable
start method
start/exec astring "%{pkg/pkg_root}/lib/svc/method/svc-pkg-depot %m"
start/timeout_seconds count 0
start/type astring method
stop method
stop/exec astring "%{pkg/pkg_root}/lib/svc/method/svc-pkg-depot %m %{restarter/contract}"
stop/timeout_seconds count 30
stop/type astring method
tm_common_name template
tm_common_name/C ustring "image packaging repository"
svc:/application/pkg/server> setprop pkg/inst_root = /RILIPS/repo
svc:/application/pkg/server> listprop pkg/inst_root
pkg/inst_root astring /RILIPS/repo
svc:/application/pkg/server> exit
# svcprop pkg/server|grep -i inst_root
pkg/inst_root astring /var/pkgrepo
# svcadm enable pkg/server
# svcadm refresh pkg/server
# pkg publisher
PUBLISHER TYPE STATUS URI
solaris origin online http://pkg.oracle.com/solaris/release/
#pkg set-publisher -G '*' -g http://10.66.10.101/ solaris
# pkg publisher
PUBLISHER TYPE STATUS URI
solaris origin online http://10.66.10.101/
#pkg rebuild-index
PHASE ITEMS
Indexing Packages 436/436
IN CLIENT
#pkg set-publisher -G '*' -g http://10.66.10.101/ solaris
PKG ADMINISTRATION
Fault Management Resource Identifiers:-
Scheme://<publisher>/<pkgname>@<version>:<timestamp>
Ex:-
pkg://solaris/driver/network/ethernet/bge@0.5.11,5.11-0.175.1.0.0.21.0:20120723T161616Z
schema=pkg
publisher=solaris
pkgname= driver/network/ethernet/bge
version=0.5.11,5.11-0.175.1.0.0.21.0
TimeStamp=20120723T161616Z
Version = component version + build version +major version +os update +SRU update +reserved +SRU build number + Nightly build number
Component version=0.5.11
Build version=5.11
Major release version=0.175
OS update=1
SRU update=0
Reserved =0
SRU build Number =21
Nightly build Number=0
Timestamp=YYYYMMDDTHHMMSSZ
Y=year M=month D=date H=hours M=minutes S=seconds
Getting Information About Software Packages :-
# pkg list <options> <pkg name>
-n option lists the newest version of each known package.
-s option lists only the package name and summary.
-v option lists the full package FMRI.
-u option lists all installed packages that have newer versions available.
root@rilcom:~# pkg list '*toolkit'
NAME (PUBLISHER) VERSION IFO
system/dtrace/dtrace-toolkit 0.99-0.175.0.0.0.2.1 i—
root@rilcom:~# pkg list -a '*toolkit'
NAME (PUBLISHER) VERSION IFO
system/dtrace/dtrace-toolkit 0.99-0.175.0.0.0.2.1 i—
To list all matching packages, including packages that cannot be installed in this image, use the -af option
root@rilcom:~# pkg list -af '*toolkit'
NAME (PUBLISHER) VERSION IFO
developer/dtrace/toolkit 0.99-0.173.0.0.0.1.0 --r
image/nvidia/cg-toolkit 3.0.15-0.175.0.0.0.0.0 ---
system/dtrace/dtrace-toolkit 0.99-0.175.0.0.0.2.1 i—
To list only the newest versions of these packages, specify @latest.
pkg list '*toolkit@latest'
NAME (PUBLISHER) VERSION IFO
system/dtrace/dtrace-toolkit 0.99-0.175.0.0.0.2.1 i—
“i” ===============> packages are installed in this image.
“f” ================> package is frozen.
“r” ================> package has been renamed.
root@rilcom:~# pkg list amp
pkg list: no packages matching 'amp' installed
root@rilcom:~# pkg list -a amp
NAME (PUBLISHER) VERSION IFO
amp 0.5.11-0.133 --r
group/feature/amp 0.5.11-0.175.0.0.0.2.2576 ---
web/amp 0.5.11-0.174.0.0.0.0.0 --r
root@rilcom:~# pkg list -af amp
NAME (PUBLISHER) VERSION IFO
amp 0.5.11-0.133 --r
group/feature/amp 0.5.11-0.175.0.0.0.2.2576 ---
web/amp 0.5.11-0.174.0.0.0.0.0 --r
root@rilcom:~# pkg list -s amp
pkg list: no packages matching 'amp' installed
root@rilcom:~# pkg list -sa amp
NAME (PUBLISHER) SUMMARY
amp
group/feature/amp AMP (Apache, MySQL, PHP) Deployment Kit for Oracle Solaris
web/amp
root@rilcom:~# pkg list -va amp
FMRI IFO
pkg://solaris/amp@0.5.11,5.11-0.133:20101027T183105Z --r
pkg://solaris/group/feature/amp@0.5.11,5.11-0.175.0.0.0.2.2576:20111020T063601Z ---
pkg://solaris/web/amp@0.5.11,5.11-0.174.0.0.0.0.0:20110921T191502Z --r
# pkg list -n amp
NAME (PUBLISHER) VERSION IFO
amp 0.5.11-0.133 --r
group/feature/amp 0.5.11-0.175.0.0.0.2.2576 ---
web/amp 0.5.11-0.174.0.0.0.0.0 --r
PKG INFORMATION:-
The -r option displays the newest available versions
--license to get licenses
-l long list format
# pkg info amp
pkg: info: no packages matching the following patterns you specified are
installed on the system. Try specifying -r to query remotely:
amp
# pkg info -l larger-server
pkg: info: no packages matching the following patterns you specified are
installed on the system. Try specifying -r to query remotely:
# pkg info -r amp
Name: amp
Summary:
State: Not installed (Renamed)
Renamed to: web/amp@0.5.11-0.133
consolidation/sfw/sfw-incorporation
Publisher: solaris
Version: 0.5.11
Build Release: 5.11
Branch: 0.133
Packaging Date: October 27, 2010 06:31:05 PM
Size: 0.00 B
FMRI: pkg://solaris/amp@0.5.11,5.11-0.133:20101027T183105Z
Name: group/feature/amp
Summary: AMP (Apache, MySQL, PHP) Deployment Kit for Oracle Solaris
Description: Provides a set of components for deployment of an AMP (Apache,
MySQL, PHP) stack on Oracle Solaris
Category: Meta Packages/Group Packages (org.opensolaris.category.2008)
Web Services/Application and Web Servers (org.opensolaris.category.2008)
State: Not installed
Publisher: solaris
Version: 0.5.11
Build Release: 5.11
Branch: 0.175.0.0.0.2.2576
Packaging Date: October 20, 2011 06:36:01 AM
Size: 5.45 kB
FMRI: pkg://solaris/group/feature/amp@0.5.11,5.11-0.175.0.0.0.2.2576:20111020T063601Z
Name: web/amp
Summary:
State: Not installed (Renamed)
Renamed to: group/feature/amp@0.5.11-0.174.0.0.0.0.0
consolidation/ips/ips-incorporation
Publisher: solaris
Version: 0.5.11
Build Release: 5.11
Branch: 0.174.0.0.0.0.0
Packaging Date: September 21, 2011 07:15:02 PM
Size: 5.45 kB
FMRI: pkg://solaris/web/amp@0.5.11,5.11-0.174.0.0.0.0.0:20110921T191502Z
displays the file system content of packages
# pkg contents zip
PATH
usr
usr/bin
usr/bin/zip
usr/bin/zipcloak
usr/bin/zipnote
usr/bin/zipsplit
usr/share
usr/share/man
usr/share/man/man1
usr/share/man/man1/zip.1
usr/share/man/man1/zipcloak.1
usr/share/man/man1/zipnote.1
usr/share/man/man1/zipsplit.1
# pkg contents -t file -o owner,group,mode,pkg.size,path -s path zip
OWNER GROUP MODE PKG.SIZE PATH
root bin 0555 242596 usr/bin/zip
root bin 0555 122280 usr/bin/zipcloak
root bin 0555 111472 usr/bin/zipnote
root bin 0555 120240 usr/bin/zipsplit
root bin 0444 86036 usr/share/man/man1/zip.1
root bin 0444 2548 usr/share/man/man1/zipcloak.1
root bin 0444 2239 usr/share/man/man1/zipnote.1
root bin 0444 1680 usr/share/man/man1/zipsplit.1
solaris-small-server
solaris-large-server
to display the set of packages that is included in each group.
# pkg contents -Hro fmri -a type=group -t depend solaris-large-server
archiver/gnu-tar
compress/bzip2
compress/gzip
compress/p7zip ……………
libpower library came from the system/kernel/power package
# pkg search -Hlo pkg.name /lib/libpower.so.1
system/kernel/power
# pkg search -lo path,pkg.name libpower.so.1
PATH PKG.NAME
lib/libpower.so.1 system/kernel/power
# pkg search -Hlo path,pkg.name basename:libpower.so.1
lib/libpower.so.1 system/kernel/power
# pkg search -Hlo path,pkg.name 'path:*libpower.so.1'
lib/libpower.so.1 system/kernel/power
Listing Packages by Category
# pkg search 'info.classification:source code management'
INDEX ACTION VALUE PACKAGE
info.classification set Development/Source Code Management pkg:/library/perl-5/subversion@1.6.16-0.175.0.0.0.2.537
info.classification set Development/Source Code Management pkg:/developer/xopen/xcu4@0.5.11-0.174.0.0.0.0.0
info.classification set Development/Source Code Management pkg:/library/java/subversion@1.6.16-0.175.0.0.0.2.537
info.classification set Development/Source Code Management pkg:/developer/versioning/git@1.7.3.2-0.175.0.0.0.2.537
info.classification set Development/Source Code Management pkg:/developer/quilt@0.47-0.175.0.0.0.2.537
info.classification set Development/Source Code Management pkg:/library/python-2/subversion@1.6.16-0.175.0.0.0.2.537
info.classification set Development/Source Code Management pkg:/developer/versioning/subversion@1.6.16-0.175.0.0.0.2.537
info.classification set Development/Source Code Management pkg:/developer/versioning/cvs@1.12.13-0.175.0.0.0.2.537
info.classification set Development/Source Code Management pkg:/developer/versioning/sccs@0.5.11-0.174.0.0.0.0.0
info.classification set Development/Source Code Management pkg:/developer/versioning/mercurial@1.8.4-0.175.0.0.0.2.537
# pkg search -Ho pkg.name 'info.classification:source code management'
library/perl-5/subversion
developer/xopen/xcu4
library/java/subversion
developer/versioning/git
developer/quilt
library/python-2/subversion
developer/versioning/subversion
developer/versioning/cvs
developer/versioning/sccs
developer/versioning/mercurial
Showing Dependent Packages
# pkg search -Hlo pkg.name require:system/kernel/power
system/hal
# pkg search -lo pkg.name,fmri 'depend:exclude:*xorg*'
# pkg search -Hfo fmri '*/solaris-large-server:depend:group:*'
archiver/gnu-tar
compress/bzip2
compress/gzip
compress/p7zip ….
Package adding:-
-n =dri run
-v =verbose
# pkg list |wc -l
437
# pkg list -a |wc -l
2252
~# pkg install -nv amp
Packages to install: 12
Estimated space available: 34.18 GB
Estimated space to be consumed: 415.94 MB
Create boot environment: No
Create backup boot environment: No
Services to change: 2
Rebuild boot archive: No
Changed packages:
solaris
database/mysql-51
None -> 5.1.37,5.11-0.175.0.0.0.2.537:20111019T092655Z
database/mysql-51/library
None -> 5.1.37,5.11-0.175.0.0.0.2.537:20111019T091844Z
database/mysql-common
None -> 0.5.11,5.11-0.175.0.0.0.2.537:20111019T092931Z
group/feature/amp
None -> 0.5.11,5.11-0.175.0.0.0.2.2576:20111020T063601Z
system/library/security/libmcrypt
None -> 2.5.8,5.11-0.175.0.0.0.2.537:20111019T115811Z
text/tidy
None -> 1.0.0,5.11-0.175.0.0.0.2.537:20111019T120537Z
web/php-52
None -> 5.2.17,5.11-0.175.0.0.0.2.537:20111019T121145Z
web/php-52/extension/php-apc
None -> 3.0.19,5.11-0.175.0.0.0.2.537:20111019T120733Z
web/php-52/extension/php-mysql
None -> 5.2.17,5.11-0.175.0.0.0.2.537:20111019T120818Z
web/server/apache-22/module/apache-dtrace
None -> 0.3.1,5.11-0.175.0.0.0.2.537:20111019T121522Z
web/server/apache-22/module/apache-fcgid
None -> 2.3.6,5.11-0.175.0.0.0.2.537:20111019T121536Z
web/server/apache-22/module/apache-php5
None -> 5.2.17,5.11-0.175.0.0.0.2.537:20111019T121804Z
Services:
restart_fmri:
svc:/system/manifest-import:default
svc:/system/rbac:default
# pkg publisher solaris
Publisher: solaris
Alias:
Origin URI: http://10.66.10.101/
SSL Key: None
SSL Cert: None
Client UUID: 00ec5b84-ff0f-e000-00de-e6a0ffffffff
Catalog Updated: October 26, 2011 05:17:30 PM
Enabled: Yes
Signature Policy: verify
# pkg update -nv --accept
No updates available for this image.
# pkg change-facet -nv 'facet.locale.*=true'
Installing a Package into a New Boot Environment:-
# beadm list
BE Active Mountpoint Space Policy Created
-- ------ ---------- ----- ------ -------
bkpsolaris NR / 2.19G static 2013-04-02 10:36
ipssolaris - - 165.0K static 2013-05-01 23:27
solaris - - 11.79G static 2013-03-28 16:30
# pkg install -vv --be-name newbesoalris amp
Packages to install: 12
Estimated space available: 34.18 GB
Estimated space to be consumed: 415.94 MB
Create boot environment: Yes
Activate boot environment: Yes
Create backup boot environment: No
Rebuild boot archive: No
……………….
Changed packages:
solaris
database/mysql-51
DOWNLOAD PKGS FILES XFER (MB)
Completed 12/12 745/745 78.8/78.8
PHASE ACTIONS
Install Phase 1138/1138
PHASE ITEMS
Package State Update Phase 12/12
Image State Update Phase 2/2
PHASE ITEMS
Reading Existing Index 8/8
Indexing Packages 12/12
A clone of bkpsolaris exists and has been updated and activated.
On the next boot the Boot Environment newbesoalris will be
mounted on '/'. Reboot when ready to switch to this updated BE.
# beadm list
BE Active Mountpoint Space Policy Created
-- ------ ---------- ----- ------ -------
bkpsolaris N / 729.0K static 2013-04-02 10:36
ipssolaris - - 165.0K static 2013-05-01 23:27
newbesoalris R - 2.64G static 2013-05-02 01:37
solaris - - 11.79G static 2013-03-28 16:30
# pkg list amp
pkg list: no packages matching 'amp' installed
# beadm mount newbesoalris /mnt
# df -kh /mnt
Filesystem Size Used Available Capacity Mounted on
rpool/ROOT/newbesoalris
67G 1.9G 34G 6% /mnt
# pkg -R /mnt list amp
NAME (PUBLISHER) VERSION IFO
group/feature/amp 0.5.11-0.175.0.0.0.2.2576 i—
#lofiadm -a <full_path_to>/sol-11-1111-repo-full.iso /dev/lofi/1
#mount -F hsfs /dev/lofi/1 /mnt
#rsync -aP /mnt/repo <destination>
#umount /mnt
#lofiadm -d /dev/lofi/1
# zfs create -o mountpoint=/RILIPS rpool/ips
# df -kh /RILIPS
Filesystem Size Used Available Capacity Mounted on
rpool/ips 67G 31K 41G 1% /RILIPS
# lofiadm -a /opt/sol-11-1111-repo-p01.iso
/dev/lofi/1
# mount -F hsfs /dev/lofi/1 /mnt
# cd /mnt
# ls
COPYRIGHT NOTICES README repo
#rsync –aP /mnt/repo /RILIPS
…
repo/publisher/solaris/pkg/xvm-gui/
repo/publisher/solaris/pkg/xvm-gui/0.5.11%2C5.11-0.175.0.0.0.0.0%3A20110927T120851Z
1550 100% 2.22kB/s 0:00:00 (xfer#147320, to-check=2/151751)
repo/publisher/solaris/pkg/xvm/
repo/publisher/solaris/pkg/xvm/0.5.11%2C5.11-0.160%3A20110228T165515Z
309 100% 0.44kB/s 0:00:00 (xfer#147321, to-check=1/151751)
repo/publisher/solaris/tmp/
repo/publisher/solaris/tmp/lock
0 100% 0.00kB/s 0:00:00 (xfer#147322, to-check=0/151751)
repo/publisher/solaris/trans/
sent 3346236849 bytes received 2816848 bytes 6638362.13 bytes/sec
total size is 3332622832 speedup is 1.00
#umount /mnt
#lofiadm –d /dev/lofi/1
# lofiadm -a /opt/sol-11-1111-repo-p02.iso
/dev/lofi/1
# mount -F hsfs /dev/lofi/1 /mnt
# df -kh /mnt
Filesystem Size Used Available Capacity Mounted on
/dev/lofi/1 3.2G 3.2G 0K 100% /mnt
# cd /mnt
# ls
COPYRIGHT NOTICES README repo
#rsync –aP /mnt/repo /RILIPS
………..
repo/publisher/solaris/file/ff/ffff2c12cfae4666bbeb37a16b09ef17934424ae
591 100% 0.64kB/s 0:00:00 (xfer#142855, to-check=3/142992)
repo/publisher/solaris/file/ff/ffff8d7c04b69be14d4e42e0c9b75106368cf4b9
1977 100% 2.15kB/s 0:00:00 (xfer#142856, to-check=2/142992)
repo/publisher/solaris/file/ff/ffffe8709466cd2ffc3d8f76d4cc0d17035f99ef
3988 100% 4.33kB/s 0:00:00 (xfer#142857, to-check=1/142992)
sent 3226181810 bytes received 2714812 bytes 5802150.26 bytes/sec
total size is 3213138366 speedup is 1.00
#umount /mnt
#lofiadm –d /dev/lofi/1
# svcs pkg/server
STATE STIME FMRI
disabled Mar_29 svc:/application/pkg/server:default
# svccfg -s pkg/server
svc:/application/pkg/server> listprop
pkg application
pkg/address net_address
pkg/cfg_file astring
pkg/content_root astring usr/share/lib/pkg
pkg/debug astring
pkg/file_root astring
pkg/inst_root astring /var/pkgrepo
pkg/log_access astring none
pkg/log_errors astring stderr
pkg/mirror boolean false
pkg/pkg_root astring /
pkg/port count 80
pkg/proxy_base astring
pkg/readonly boolean true
pkg/socket_timeout count 60
pkg/sort_file_max_size astring
pkg/ssl_cert_file astring
pkg/ssl_dialog astring smf
pkg/ssl_key_file astring
pkg/threads count 60
pkg/writable_root astring
pkg_bui application
pkg_bui/feed_description ustring
pkg_bui/feed_icon ustring web/_themes/pkg-block-icon.png
pkg_bui/feed_logo ustring web/_themes/pkg-block-logo.png
pkg_bui/feed_name ustring "package repository feed"
pkg_bui/feed_window count 24
pkg_secure application
pkg_secure/read_authorization astring solaris.smf.read.pkg-server
pkg_secure/ssl_key_passphrase astring
fs dependency
fs/entities fmri svc:/system/filesystem/local
fs/grouping astring require_all
fs/restart_on astring none
fs/type astring service
autofs dependency
autofs/entities fmri svc:/system/filesystem/autofs
autofs/grouping astring optional_all
autofs/restart_on astring none
autofs/type astring service
ntp dependency
ntp/entities fmri svc:/network/ntp
ntp/grouping astring optional_all
ntp/restart_on astring none
ntp/type astring service
network dependency
network/entities fmri svc:/milestone/network
network/grouping astring require_all
network/restart_on astring none
network/type astring service
manifestfiles framework
manifestfiles/lib_svc_manifest_application_pkg_pkg-server_xml astring /lib/svc/manifest/application/pkg/pkg-server.xml
general framework
general/entity_stability astring Unstable
start method
start/exec astring "%{pkg/pkg_root}/lib/svc/method/svc-pkg-depot %m"
start/timeout_seconds count 0
start/type astring method
stop method
stop/exec astring "%{pkg/pkg_root}/lib/svc/method/svc-pkg-depot %m %{restarter/contract}"
stop/timeout_seconds count 30
stop/type astring method
tm_common_name template
tm_common_name/C ustring "image packaging repository"
svc:/application/pkg/server> setprop pkg/inst_root = /RILIPS/repo
svc:/application/pkg/server> listprop pkg/inst_root
pkg/inst_root astring /RILIPS/repo
svc:/application/pkg/server> exit
# svcprop pkg/server|grep -i inst_root
pkg/inst_root astring /var/pkgrepo
# svcadm enable pkg/server
# svcadm refresh pkg/server
# pkg publisher
PUBLISHER TYPE STATUS URI
solaris origin online http://pkg.oracle.com/solaris/release/
#pkg set-publisher -G '*' -g http://10.66.10.101/ solaris
# pkg publisher
PUBLISHER TYPE STATUS URI
solaris origin online http://10.66.10.101/
#pkg rebuild-index
PHASE ITEMS
Indexing Packages 436/436
IN CLIENT
#pkg set-publisher -G '*' -g http://10.66.10.101/ solaris
PKG ADMINISTRATION
Fault Management Resource Identifiers:-
Scheme://<publisher>/<pkgname>@<version>:<timestamp>
Ex:-
pkg://solaris/driver/network/ethernet/bge@0.5.11,5.11-0.175.1.0.0.21.0:20120723T161616Z
schema=pkg
publisher=solaris
pkgname= driver/network/ethernet/bge
version=0.5.11,5.11-0.175.1.0.0.21.0
TimeStamp=20120723T161616Z
Version = component version + build version +major version +os update +SRU update +reserved +SRU build number + Nightly build number
Component version=0.5.11
Build version=5.11
Major release version=0.175
OS update=1
SRU update=0
Reserved =0
SRU build Number =21
Nightly build Number=0
Timestamp=YYYYMMDDTHHMMSSZ
Y=year M=month D=date H=hours M=minutes S=seconds
Getting Information About Software Packages :-
# pkg list <options> <pkg name>
-n option lists the newest version of each known package.
-s option lists only the package name and summary.
-v option lists the full package FMRI.
-u option lists all installed packages that have newer versions available.
root@rilcom:~# pkg list '*toolkit'
NAME (PUBLISHER) VERSION IFO
system/dtrace/dtrace-toolkit 0.99-0.175.0.0.0.2.1 i—
root@rilcom:~# pkg list -a '*toolkit'
NAME (PUBLISHER) VERSION IFO
system/dtrace/dtrace-toolkit 0.99-0.175.0.0.0.2.1 i—
To list all matching packages, including packages that cannot be installed in this image, use the -af option
root@rilcom:~# pkg list -af '*toolkit'
NAME (PUBLISHER) VERSION IFO
developer/dtrace/toolkit 0.99-0.173.0.0.0.1.0 --r
image/nvidia/cg-toolkit 3.0.15-0.175.0.0.0.0.0 ---
system/dtrace/dtrace-toolkit 0.99-0.175.0.0.0.2.1 i—
To list only the newest versions of these packages, specify @latest.
pkg list '*toolkit@latest'
NAME (PUBLISHER) VERSION IFO
system/dtrace/dtrace-toolkit 0.99-0.175.0.0.0.2.1 i—
“i” ===============> packages are installed in this image.
“f” ================> package is frozen.
“r” ================> package has been renamed.
root@rilcom:~# pkg list amp
pkg list: no packages matching 'amp' installed
root@rilcom:~# pkg list -a amp
NAME (PUBLISHER) VERSION IFO
amp 0.5.11-0.133 --r
group/feature/amp 0.5.11-0.175.0.0.0.2.2576 ---
web/amp 0.5.11-0.174.0.0.0.0.0 --r
root@rilcom:~# pkg list -af amp
NAME (PUBLISHER) VERSION IFO
amp 0.5.11-0.133 --r
group/feature/amp 0.5.11-0.175.0.0.0.2.2576 ---
web/amp 0.5.11-0.174.0.0.0.0.0 --r
root@rilcom:~# pkg list -s amp
pkg list: no packages matching 'amp' installed
root@rilcom:~# pkg list -sa amp
NAME (PUBLISHER) SUMMARY
amp
group/feature/amp AMP (Apache, MySQL, PHP) Deployment Kit for Oracle Solaris
web/amp
root@rilcom:~# pkg list -va amp
FMRI IFO
pkg://solaris/amp@0.5.11,5.11-0.133:20101027T183105Z --r
pkg://solaris/group/feature/amp@0.5.11,5.11-0.175.0.0.0.2.2576:20111020T063601Z ---
pkg://solaris/web/amp@0.5.11,5.11-0.174.0.0.0.0.0:20110921T191502Z --r
# pkg list -n amp
NAME (PUBLISHER) VERSION IFO
amp 0.5.11-0.133 --r
group/feature/amp 0.5.11-0.175.0.0.0.2.2576 ---
web/amp 0.5.11-0.174.0.0.0.0.0 --r
PKG INFORMATION:-
The -r option displays the newest available versions
--license to get licenses
-l long list format
# pkg info amp
pkg: info: no packages matching the following patterns you specified are
installed on the system. Try specifying -r to query remotely:
amp
# pkg info -l larger-server
pkg: info: no packages matching the following patterns you specified are
installed on the system. Try specifying -r to query remotely:
# pkg info -r amp
Name: amp
Summary:
State: Not installed (Renamed)
Renamed to: web/amp@0.5.11-0.133
consolidation/sfw/sfw-incorporation
Publisher: solaris
Version: 0.5.11
Build Release: 5.11
Branch: 0.133
Packaging Date: October 27, 2010 06:31:05 PM
Size: 0.00 B
FMRI: pkg://solaris/amp@0.5.11,5.11-0.133:20101027T183105Z
Name: group/feature/amp
Summary: AMP (Apache, MySQL, PHP) Deployment Kit for Oracle Solaris
Description: Provides a set of components for deployment of an AMP (Apache,
MySQL, PHP) stack on Oracle Solaris
Category: Meta Packages/Group Packages (org.opensolaris.category.2008)
Web Services/Application and Web Servers (org.opensolaris.category.2008)
State: Not installed
Publisher: solaris
Version: 0.5.11
Build Release: 5.11
Branch: 0.175.0.0.0.2.2576
Packaging Date: October 20, 2011 06:36:01 AM
Size: 5.45 kB
FMRI: pkg://solaris/group/feature/amp@0.5.11,5.11-0.175.0.0.0.2.2576:20111020T063601Z
Name: web/amp
Summary:
State: Not installed (Renamed)
Renamed to: group/feature/amp@0.5.11-0.174.0.0.0.0.0
consolidation/ips/ips-incorporation
Publisher: solaris
Version: 0.5.11
Build Release: 5.11
Branch: 0.174.0.0.0.0.0
Packaging Date: September 21, 2011 07:15:02 PM
Size: 5.45 kB
FMRI: pkg://solaris/web/amp@0.5.11,5.11-0.174.0.0.0.0.0:20110921T191502Z
displays the file system content of packages
# pkg contents zip
PATH
usr
usr/bin
usr/bin/zip
usr/bin/zipcloak
usr/bin/zipnote
usr/bin/zipsplit
usr/share
usr/share/man
usr/share/man/man1
usr/share/man/man1/zip.1
usr/share/man/man1/zipcloak.1
usr/share/man/man1/zipnote.1
usr/share/man/man1/zipsplit.1
# pkg contents -t file -o owner,group,mode,pkg.size,path -s path zip
OWNER GROUP MODE PKG.SIZE PATH
root bin 0555 242596 usr/bin/zip
root bin 0555 122280 usr/bin/zipcloak
root bin 0555 111472 usr/bin/zipnote
root bin 0555 120240 usr/bin/zipsplit
root bin 0444 86036 usr/share/man/man1/zip.1
root bin 0444 2548 usr/share/man/man1/zipcloak.1
root bin 0444 2239 usr/share/man/man1/zipnote.1
root bin 0444 1680 usr/share/man/man1/zipsplit.1
solaris-small-server
solaris-large-server
to display the set of packages that is included in each group.
# pkg contents -Hro fmri -a type=group -t depend solaris-large-server
archiver/gnu-tar
compress/bzip2
compress/gzip
compress/p7zip ……………
libpower library came from the system/kernel/power package
# pkg search -Hlo pkg.name /lib/libpower.so.1
system/kernel/power
# pkg search -lo path,pkg.name libpower.so.1
PATH PKG.NAME
lib/libpower.so.1 system/kernel/power
# pkg search -Hlo path,pkg.name basename:libpower.so.1
lib/libpower.so.1 system/kernel/power
# pkg search -Hlo path,pkg.name 'path:*libpower.so.1'
lib/libpower.so.1 system/kernel/power
Listing Packages by Category
# pkg search 'info.classification:source code management'
INDEX ACTION VALUE PACKAGE
info.classification set Development/Source Code Management pkg:/library/perl-5/subversion@1.6.16-0.175.0.0.0.2.537
info.classification set Development/Source Code Management pkg:/developer/xopen/xcu4@0.5.11-0.174.0.0.0.0.0
info.classification set Development/Source Code Management pkg:/library/java/subversion@1.6.16-0.175.0.0.0.2.537
info.classification set Development/Source Code Management pkg:/developer/versioning/git@1.7.3.2-0.175.0.0.0.2.537
info.classification set Development/Source Code Management pkg:/developer/quilt@0.47-0.175.0.0.0.2.537
info.classification set Development/Source Code Management pkg:/library/python-2/subversion@1.6.16-0.175.0.0.0.2.537
info.classification set Development/Source Code Management pkg:/developer/versioning/subversion@1.6.16-0.175.0.0.0.2.537
info.classification set Development/Source Code Management pkg:/developer/versioning/cvs@1.12.13-0.175.0.0.0.2.537
info.classification set Development/Source Code Management pkg:/developer/versioning/sccs@0.5.11-0.174.0.0.0.0.0
info.classification set Development/Source Code Management pkg:/developer/versioning/mercurial@1.8.4-0.175.0.0.0.2.537
# pkg search -Ho pkg.name 'info.classification:source code management'
library/perl-5/subversion
developer/xopen/xcu4
library/java/subversion
developer/versioning/git
developer/quilt
library/python-2/subversion
developer/versioning/subversion
developer/versioning/cvs
developer/versioning/sccs
developer/versioning/mercurial
Showing Dependent Packages
# pkg search -Hlo pkg.name require:system/kernel/power
system/hal
# pkg search -lo pkg.name,fmri 'depend:exclude:*xorg*'
# pkg search -Hfo fmri '*/solaris-large-server:depend:group:*'
archiver/gnu-tar
compress/bzip2
compress/gzip
compress/p7zip ….
Package adding:-
-n =dri run
-v =verbose
# pkg list |wc -l
437
# pkg list -a |wc -l
2252
~# pkg install -nv amp
Packages to install: 12
Estimated space available: 34.18 GB
Estimated space to be consumed: 415.94 MB
Create boot environment: No
Create backup boot environment: No
Services to change: 2
Rebuild boot archive: No
Changed packages:
solaris
database/mysql-51
None -> 5.1.37,5.11-0.175.0.0.0.2.537:20111019T092655Z
database/mysql-51/library
None -> 5.1.37,5.11-0.175.0.0.0.2.537:20111019T091844Z
database/mysql-common
None -> 0.5.11,5.11-0.175.0.0.0.2.537:20111019T092931Z
group/feature/amp
None -> 0.5.11,5.11-0.175.0.0.0.2.2576:20111020T063601Z
system/library/security/libmcrypt
None -> 2.5.8,5.11-0.175.0.0.0.2.537:20111019T115811Z
text/tidy
None -> 1.0.0,5.11-0.175.0.0.0.2.537:20111019T120537Z
web/php-52
None -> 5.2.17,5.11-0.175.0.0.0.2.537:20111019T121145Z
web/php-52/extension/php-apc
None -> 3.0.19,5.11-0.175.0.0.0.2.537:20111019T120733Z
web/php-52/extension/php-mysql
None -> 5.2.17,5.11-0.175.0.0.0.2.537:20111019T120818Z
web/server/apache-22/module/apache-dtrace
None -> 0.3.1,5.11-0.175.0.0.0.2.537:20111019T121522Z
web/server/apache-22/module/apache-fcgid
None -> 2.3.6,5.11-0.175.0.0.0.2.537:20111019T121536Z
web/server/apache-22/module/apache-php5
None -> 5.2.17,5.11-0.175.0.0.0.2.537:20111019T121804Z
Services:
restart_fmri:
svc:/system/manifest-import:default
svc:/system/rbac:default
# pkg publisher solaris
Publisher: solaris
Alias:
Origin URI: http://10.66.10.101/
SSL Key: None
SSL Cert: None
Client UUID: 00ec5b84-ff0f-e000-00de-e6a0ffffffff
Catalog Updated: October 26, 2011 05:17:30 PM
Enabled: Yes
Signature Policy: verify
# pkg update -nv --accept
No updates available for this image.
# pkg change-facet -nv 'facet.locale.*=true'
Installing a Package into a New Boot Environment:-
# beadm list
BE Active Mountpoint Space Policy Created
-- ------ ---------- ----- ------ -------
bkpsolaris NR / 2.19G static 2013-04-02 10:36
ipssolaris - - 165.0K static 2013-05-01 23:27
solaris - - 11.79G static 2013-03-28 16:30
# pkg install -vv --be-name newbesoalris amp
Packages to install: 12
Estimated space available: 34.18 GB
Estimated space to be consumed: 415.94 MB
Create boot environment: Yes
Activate boot environment: Yes
Create backup boot environment: No
Rebuild boot archive: No
……………….
Changed packages:
solaris
database/mysql-51
DOWNLOAD PKGS FILES XFER (MB)
Completed 12/12 745/745 78.8/78.8
PHASE ACTIONS
Install Phase 1138/1138
PHASE ITEMS
Package State Update Phase 12/12
Image State Update Phase 2/2
PHASE ITEMS
Reading Existing Index 8/8
Indexing Packages 12/12
A clone of bkpsolaris exists and has been updated and activated.
On the next boot the Boot Environment newbesoalris will be
mounted on '/'. Reboot when ready to switch to this updated BE.
# beadm list
BE Active Mountpoint Space Policy Created
-- ------ ---------- ----- ------ -------
bkpsolaris N / 729.0K static 2013-04-02 10:36
ipssolaris - - 165.0K static 2013-05-01 23:27
newbesoalris R - 2.64G static 2013-05-02 01:37
solaris - - 11.79G static 2013-03-28 16:30
# pkg list amp
pkg list: no packages matching 'amp' installed
# beadm mount newbesoalris /mnt
# df -kh /mnt
Filesystem Size Used Available Capacity Mounted on
rpool/ROOT/newbesoalris
67G 1.9G 34G 6% /mnt
# pkg -R /mnt list amp
NAME (PUBLISHER) VERSION IFO
group/feature/amp 0.5.11-0.175.0.0.0.2.2576 i—
In case you are interested in earning cash from your visitors via popunder advertisments - you can try one of the most reputable networks - Clicksor.
ReplyDelete