Ships have the ability to upgrade themselves over the air. For the kernel and core applications, they receive updates from a sponsor star or galaxy. For other apps, they receive updates from the app's publisher.
Further reading
- The Updates guide: Comprehensive user documentation of updates.