• Welcome to LiuJason's Blog!

群晖Synology系统DSM安装包管理器ipkg并安装其他依赖包 类似yum和apt

Linux笔记 Jason 6 months ago (01-19) 712 Views 0 Comments QR code of this page

群晖底层也是Linux系统,但是并不是常见的发行版本,因此CentOS下的yum和debian/ubuntu下的apt都是不能用的。好在还有ipkg可以使用,但是需要自己进行安装和配置。

SSH连接并获取root权限

这里就不多说SSH了,毕竟需要装包的都应该能连上了,安装ipkg前需要sudo -i

[email protected]:~/bootstrap$ sudo -i
Password: 
[email protected]:~# 

安装ipkg

然后下载ipkg的安装包,并且修改权限后运行:

[email protected]:~# wget http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/unstable/syno-i686-bootstrap_1.2-7_i686.xsh
--2020-01-19 21:58:38--  http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/unstable/syno-i686-bootstrap_1.2-7_i686.xsh
Resolving ipkg.nslu2-linux.org... 2620:139:a000::c1, 23.141.224.193
Connecting to ipkg.nslu2-linux.org|2620:139:a000::c1|:80... failed: Connection refused.
Connecting to ipkg.nslu2-linux.org|23.141.224.193|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 249507 (244K) [text/plain]
Saving to: 'syno-i686-bootstrap_1.2-7_i686.xsh'

syno-i686-bootstrap_1.2-7_i686.xsh          100%[===========================================================================================>] 243.66K  10.0KB/s    in 21s     

2020-01-19 21:59:08 (11.4 KB/s) - 'syno-i686-bootstrap_1.2-7_i686.xsh' saved [249507/249507]

[email protected]:~# chmod +x syno-i686-bootstrap_1.2-7_i686.xsh
[email protected]:~# sh syno-i686-bootstrap_1.2-7_i686.xsh
Optware Bootstrap for syno-i686.
Extracting archive... please wait
bootstrap/
bootstrap/bootstrap.sh
bootstrap/ipkg-opt.ipk
bootstrap/ipkg.sh
bootstrap/optware-bootstrap.ipk
1216+1 records in
1216+1 records out
249302 bytes (249 kB) copied, 0.0160236 s, 15.6 MB/s
bootstrap/wget.ipk
Creating temporary ipkg repository...
Installing optware-bootstrap package...
Unpacking optware-bootstrap.ipk...Done.
Configuring optware-bootstrap.ipk...Modifying /etc/rc.local
Done.
Installing ipkg...
Unpacking ipkg-opt.ipk...Done.
Configuring ipkg-opt.ipk...Done.
Removing temporary ipkg repository...
Installing wget...
Installing wget (1.12-2) to root...
Configuring wget
Successfully terminated.
Creating /opt/etc/ipkg/cross-feed.conf...
Setup complete.

更新ipkg源

安装好后不需要重启,但是需要更新源:

[email protected]:~# ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/unstable/Packages.gz
Inflating http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/unstable/Packages.gz
Updated list of available packages in /opt/lib/ipkg/lists/cross
Successfully terminated.

安装包测试

安装mtr试试看,没毛病:

[email protected]:~# ipkg install mtr
Installing mtr (0.77-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/unstable/mtr_0.77-1_i686.ipk
Installing ncurses (5.7-3) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/unstable/ncurses_5.7-3_i686.ipk
Configuring mtr
Configuring ncurses
update-alternatives: Linking //opt/bin/clear to /opt/bin/ncurses-clear
Successfully terminated.

This article is under CC BY-NC-SA 4.0 license.
Please quote the original link:https://www.liujason.com/article/479.html
Like (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址