Synology Package Managers

From Littledamien Wiki
Revision as of 14:07, 24 September 2022 by Video8 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Overview

Package managers yum and apt-get don't appear to be available on Synology. ipkg is noted as the replacement for the other package managers.

Installation

  • First look up the CPU of the DiskStation: DSM > Control Panel > System > Info Center > General tab > Basic Information group > CPU
  • Alternatively, CPUs for all DiskStation models are listed here.
  • Download and install ipkg [1]
  • E.g. on DS213:
$ wget http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/syno-mvkw-bootstrap_1.2-7_arm.xsh
$ sh syno-mvkw-bootstrap_1.2-7_arm.xsh

On DS213 running the script generated an error: Error: CPU not Marvell Kirkwood, probably wrong bootstrap.xsh

This error is fixed by editing ./bootstrap/bootstrap.sh to change line 21: [2]

from

if ! grep Feroceon-KW /proc/cpuinfo >/dev/null 2>&1; then

to

 
if ! grep Feroceon /proc/cpuinfo >/dev/null 2>&1; then

Then running ./boostrap/bootstrap.sh again (as sudo):

$ sudo sh bootstrap.sh
  • ipkg is installed in either /opt/bin or /opt/sbin, which are not in the default path. Either invoke ipkg using the full path, or add the path to the PATH environment variable.
  • The package sources must be added to ipkg with sudo ipkg update.
  • Now ipkg is ready to use with sudo /opt/bin/ipkg install somepkg

Notes