First, you should shutdown Opie from the "Shutdown" app in the Settings tab. Normally, simply running
ipkg update && ipkg upgrade