List the installed packages:
pkginfo
Install a new package from /var/spool/pkg :
pkgadd
Install a new package from a random dir:
cd randomdir; pkgadd -d package-file-name
You can download free software packages from SunFreeware
Oldish Solaris machines only support patchadd(?).
See the list of installed patches:
patchadd -p
Apply patches:
patchadd ./xxxxxx-xxNote 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
/usr/bin/updatemanegerIf needed you must setup the proxy server with:
smpatch set patchpro.proxy.host=proxy.nch.it smpatch set patchpro.proxy.port=8080
Then you can use those commands:
smpatch analyze → show the recommended patchessmpatch update → download&install the named patchessmpatch download → download patch (without installing)smpatch add → installs an already downloaded patchList 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:
svcs
Find the logs in:
/var/svc/log/service:instance.log
prstat prstat -s size -a
/usr/sbin/prtconf | grep Memory vmstat -p
prtdiag | head -20
format
Without LDAP/NIS only root can do that.
passwd -e <username>
uname -a cat /etc/release
Reboot
shutdown -y -g 0 -i 6
Halt
shutdown -y -g 0 -i 5
/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)`
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 ro=sun.ucs.indiana.edu,rw=teak.uwsg.indiana.edu /reports
If you don't share anything, the NFS server does not start!