群暉(Synology) NAS 安裝 ipkg 包管理工具

How to install IPKG on Synology NAS

How to Install IPKG on Synology NAS

As you well know, IPKG, or the Itsy Package Management System, is a lightweight package management system designed for embedded devices and it resembles Linux Debian’s dpkg. It was used in the Unslung operating system for the Linksys NSLU2 (Optware), in OpenWrt, Openmoko, webOS, Gumstix, the iPAQ, QNAP NAS appliances and elsewhere; as of early 2017 it can still be used for Synology NAS DSM appliances and in the LuneOS operating system (although opkg is an increasingly common replacement).

As usual, for package management systems, ipkg’s ipkg command-line utility allows for the installation of new packages, the upgrading or removal of existing packages, querying package repositories for available packages, and listing already installed packages. The development for this project has been discontinued. Many projects which formerly used IPKG have adopted the IPKG fork opkg as a replacement.

I just wanted to share how I installed IPKG on my Synology DS718+. You can also install it on different Synology devices by following the instructions below. To be clear, the installation process should be the same for other Synology Disk Stations and unfold without any problem.

First of all go to the Synology Package Center, click on “Settings” on the top, right corner, and then click on “Package Sources“. Add the source “http://www.cphub.net” (you can choose the name you want, i.e. “CPHUB”). Follow the instructions in the image below:

add download source package synology

After clicking OK, you should see a new “Community” tab in the package center on the left. Find and install “Easy Bootstrap Installer” from QTip. There is also a GUI Version if you’d prefer, called “iPKGui“, also from QTip. Follow the instructions in the image below:

ipkg community package synology

IPKG is now installed. The executables are located in “/opt/bin/“. You can SSH your NAS and use it. However, the directory has not yet been added to the PATH variable, so to use it you would need to use the full path “/opt/bin/ipkg“. You can add the directory to the PATH variable using the following command:

export PATH=”$PATH:/opt/bin”
However, this would only add the directory to PATH for the current session. To make the change permanent, you need to edit the “/etc/profile“. To do that, I used the “nano” editor, but I had to install it first. Run the following commands:

sudo /opt/bin/ipkg update
sudo /opt/bin/ipkg install nano
sudo /opt/bin/nano /etc/profile

Now find the PATH variable. It should look something like this:

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin

At the end of this string, just append “:/opt/bin“(don’t forget the colon). Then save and close the file (CTRL + “O”, then Enter, then CTRL + “X”).
Note that this will not automatically update your PATH for the current session. To do this, you can run:

source /etc/profile

To check whether it worked, enter the command:

echo $PATH | tr “:” “\n” | nl

You should see the entry for “/opt/bin” there. Now you’re all set. I hope this little guide will help those of you who want to install IPKG on Synology Nas.

UPDATE 18.01.2020

Here https://github.com/Entware/Entware/wiki/Install-on-Synology-NAS you can install Entware.

This post was updated on Saturday / January 18th, 2020 at 7:16 PM

測試一下

安裝 socat
ipgk install socat

image.png

參考

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末癌幕,一起剝皮案震驚了整個濱河市啸箫,隨后出現(xiàn)的幾起案子痊末,更是在濱河造成了極大的恐慌杖爽,老刑警劉巖,帶你破解...
    沈念sama閱讀 206,968評論 6 482
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件刑然,死亡現(xiàn)場離奇詭異括享,居然都是意外死亡河闰,警方通過查閱死者的電腦和手機,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 88,601評論 2 382
  • 文/潘曉璐 我一進(jìn)店門锨匆,熙熙樓的掌柜王于貴愁眉苦臉地迎上來崭别,“玉大人,你說我怎么就攤上這事∥勺瘢” “怎么了账千?”我有些...
    開封第一講書人閱讀 153,220評論 0 344
  • 文/不壞的土叔 我叫張陵,是天一觀的道長暗膜。 經(jīng)常有香客問我匀奏,道長,這世上最難降的妖魔是什么学搜? 我笑而不...
    開封第一講書人閱讀 55,416評論 1 279
  • 正文 為了忘掉前任娃善,我火速辦了婚禮,結(jié)果婚禮上瑞佩,老公的妹妹穿的比我還像新娘聚磺。我一直安慰自己,他們只是感情好炬丸,可當(dāng)我...
    茶點故事閱讀 64,425評論 5 374
  • 文/花漫 我一把揭開白布瘫寝。 她就那樣靜靜地躺著,像睡著了一般稠炬。 火紅的嫁衣襯著肌膚如雪焕阿。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 49,144評論 1 285
  • 那天首启,我揣著相機與錄音暮屡,去河邊找鬼。 笑死毅桃,一個胖子當(dāng)著我的面吹牛褒纲,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播钥飞,決...
    沈念sama閱讀 38,432評論 3 401
  • 文/蒼蘭香墨 我猛地睜開眼莺掠,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了代承?” 一聲冷哼從身側(cè)響起汁蝶,我...
    開封第一講書人閱讀 37,088評論 0 261
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎论悴,沒想到半個月后掖棉,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 43,586評論 1 300
  • 正文 獨居荒郊野嶺守林人離奇死亡膀估,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 36,028評論 2 325
  • 正文 我和宋清朗相戀三年幔亥,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片察纯。...
    茶點故事閱讀 38,137評論 1 334
  • 序言:一個原本活蹦亂跳的男人離奇死亡帕棉,死狀恐怖针肥,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情香伴,我是刑警寧澤慰枕,帶...
    沈念sama閱讀 33,783評論 4 324
  • 正文 年R本政府宣布,位于F島的核電站即纲,受9級特大地震影響具帮,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜低斋,卻給世界環(huán)境...
    茶點故事閱讀 39,343評論 3 307
  • 文/蒙蒙 一蜂厅、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧膊畴,春花似錦掘猿、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,333評論 0 19
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至轻绞,卻和暖如春采记,著一層夾襖步出監(jiān)牢的瞬間佣耐,已是汗流浹背政勃。 一陣腳步聲響...
    開封第一講書人閱讀 31,559評論 1 262
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留兼砖,地道東北人奸远。 一個月前我還...
    沈念sama閱讀 45,595評論 2 355
  • 正文 我出身青樓,卻偏偏與公主長得像讽挟,于是被迫代替她去往敵國和親懒叛。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點故事閱讀 42,901評論 2 345

推薦閱讀更多精彩內(nèi)容