This script installs all packages that need to be updated. It automatically detects your package update tool and installs package subsystem related updates first.
It can be called in any of the following manners:
Executed right on the command line
Pushed to the target system over ssh
cat samlib scriptlib updatepackages | ssh -T root@system