DSM APIs and External Resources
This page provides links to official Synology documentation and resources for DSM package development.
Synology Package Developer Guide
The official Synology documentation for package development:
Resource Acquisition (DSM 7+)
DSM Integration
Script Environment Variables
Synology provides standard environment variables in package scripts:
| Variable |
Description |
SYNOPKG_PKGNAME |
Package name |
SYNOPKG_PKGVER |
Package version |
SYNOPKG_PKGDEST |
Package installation directory |
SYNOPKG_PKGVAR |
Package variable directory (/var/packages/<pkg>/var/) |
SYNOPKG_DSM_VERSION_MAJOR |
DSM major version (e.g., 7) |
SYNOPKG_DSM_VERSION_MINOR |
DSM minor version (e.g., 2) |
For the complete list, see Script Environment Variables in the official documentation.
Official Synology Resources
DSM Knowledge Base
General DSM administration and troubleshooting:
DSM Version Reference
DSM 7.x
| Version |
Status |
Key Changes |
| DSM 7.2 |
Current |
Stricter service management, new resource types |
| DSM 7.1 |
LTS |
Primary target for most packages |
| DSM 7.0 |
EOL |
Initial DSM 7 release |
DSM 6.x
| Version |
Status |
Key Changes |
| DSM 6.2.4 |
LTS |
Primary target for DSM 6 packages |
| DSM 6.2 |
Supported |
Last major DSM 6 release |
| DSM 6.1 |
EOL |
Deprecated |
| DSM 6.0 |
EOL |
Deprecated |
Key DSM 7 vs DSM 6 Differences
| Feature |
DSM 6 |
DSM 7 |
| Service User |
Configurable |
sc-<pkgname> (fixed) |
| Package Trust |
Configurable |
Synology-signed only |
| Resource Files |
Basic |
Full support |
| Web Service |
conf/resource |
DSM 7.0+ only |
| Shared Folder Permissions |
Groups |
System internal users |
See DSM 7 Migration Guide for migration details.