LinuxCommandLibrary

synopkg

TLDR

List installed packages

$ synopkg list --name
copy
List packages depending on another
$ synopkg list --depend-on [package]
copy
Start or stop a package
$ sudo synopkg [start|stop] [package]
copy
Show package status
$ synopkg status [package]
copy
Uninstall a package
$ sudo synopkg uninstall [package]
copy
Check for updates
$ synopkg checkupdate [package]
copy
Upgrade all packages
$ sudo synopkg upgradeall
copy
Install from SPK file
$ sudo synopkg install [path/to/package.spk]
copy

SYNOPSIS

synopkg command [OPTIONS]

DESCRIPTION

synopkg is the package management utility for Synology DiskStation Manager (DSM), the operating system for Synology NAS devices. It provides command-line control over package installation, updates, and service management.
The tool wraps each package's start/stop scripts located at `/var/packages/<package>/scripts/start-stop-status`. It automatically handles dependency resolution when installing packages and integrates with DSM's Package Center.

PARAMETERS

--name

Show only package names
--depend-on package
List packages depending on specified package

COMMANDS

list [--name] [--depend-on pkg]

List installed packages
install file.spk
Install package from SPK file
uninstall package
Remove installed package
start package
Start a package service
stop package
Stop a package service
status package
Show package running status
is_onoff package
Check if package is enabled
checkupdate package
Check for package updates
upgradeall
Upgrade all packages to latest versions
log package
View package logs

CAVEATS

Requires root privileges for install/uninstall/start/stop operations. SSH access must be enabled on the Synology NAS. Only accepts SPK package format. Installation has the same constraints as the web UI Package Center.

HISTORY

synopkg is developed by Synology Inc. as part of their DiskStation Manager operating system. DSM provides a Linux-based platform for Synology NAS devices, first introduced in the mid-2000s. The command-line tools complement the web-based administration interface.

SEE ALSO

Copied to clipboard