← 返回命令列表

Linux command

synopkg 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List

synopkg list --name

Example

synopkg list --depend-on [package]

Start, stop, or restart

sudo synopkg [start|stop|restart] [package]

Example

synopkg status [package]

Uninstall

sudo synopkg uninstall [package]

Example

synopkg checkupdate [package]

Upgrade

sudo synopkg upgradeall

Install

sudo synopkg install [path/to/package.spk]

说明

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.

参数

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

FAQ

What is the synopkg command used for?

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.

How do I run a basic synopkg example?

Run `synopkg list --name` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --name do in synopkg?

Show only package names