User Tools

Site Tools


Solaris 10

Package Management

List the installed packages:


Install a new package from /var/spool/pkg :


Install a new package from a random dir:

cd randomdir; pkgadd -d package-file-name

You can download free software packages from SunFreeware

Patch Management - Old machines

Oldish Solaris machines only support patchadd(?).

See the list of installed patches:

patchadd -p

Apply patches:

Patch Management - newest machines

Note that the server must be registered at Sun. It could bee needed to import the keys for the signed packages:

# keytool -export -storepass changeit -alias gtecybertrustca -keystore gtecybertrustca \
   -keystore /usr/j2se/jre/lib/security/cacerts -file /tmp/root.crt
# pkgadm addcert -t -f der /tmp/root.crt

Graphical installation

  1. /usr/bin/updatemaneger
  2. Click buttons (droolling a little bit, possibly :-P )
  3. PROFIT!

Command line installation

If needed you must setup the proxy server with:

smpatch set
smpatch set patchpro.proxy.port=8080

Then you can use those commands:

  • smpatch analyze → show the recommended patches
  • smpatch update → download&install the named patches
  • smpatch download → download patch (without installing)
  • smpatch add → installs an already downloaded patch

Service management

List all the defined services:

svccfg list

Show a service description definition

svccfg export <service>

Manage a service (use -t for a non permanent change effect):

svcadm enable <service>
svcadm disable <service>
svcadm restart <service>
svcadm refresh <service>

For example, to disable X11, do:

svcadm disable /application/graphical-login/cde-login

See the status of the services:


Find the logs in:


Processes, memory, CPU


prstat -s size -a

Installed / Free memory

/usr/sbin/prtconf | grep Memory
vmstat -p


prtdiag | head -20

Partition (and see) disks


Change default shell

Without LDAP/NIS only root can do that.

passwd -e <username>

Find version

uname -a
cat /etc/release



shutdown -y -g 0 -i 6


shutdown -y -g 0 -i 5

TCP keepalive timer

 /usr/sbin/ndd -set /dev/tcp tcp_keep_alive_interval <milliseconds>

The default is 7200000, two hours


in /var/log/, /var/adm/ and via `dmesg(1M)`

NFS quirks

Define the filesystems you want to export with share(1), either directly or via the /etc/dfs/dfstab file (that replaces/etc/exports):

share -F nfs -o, /reports

If you don't share anything, the NFS server does not start!

unix/solaris10.txt · Last modified: 2012/02/27 16:17 by ap

Informativa sui cookie