EdgeMAX - 添加 Debian 包到 EdgeOS 中

概述


因為 EdgeOS 基於 Debian,您可以向 EdgeOS 添加其他 Debian 包.

雖然存在可以使用存儲庫的大小和兼容性限制,但是可以安裝大多數小型實用程序包. 另外,只是因為它是一個 debian 系統並不意味著你應該使用 “apt-get 升級”或“apt-get dist-upgrade”.

熱門軟件包包括 screen,iftop,iptraf,mtr-tiny 和 procinfo.


步驟


1.添加一個 Debian 庫和安全庫

注意:1.6 之前的版本使用擠壓存儲庫

configureset system package repository wheezy components 'main contrib non-free'set system package repository wheezy distribution wheezy set system package repository wheezy url http://http.us.debian.org/debianset system package repository wheezy-security components mainset system package repository wheezy-security distribution wheezy/updatesset system package repository wheezy-security url http://security.debian.orgcommitsaveexit

2.更新本地緩存

admin@ubnt:~$ sudo apt-get update
Get:1 http://security.debian.org wheezy/updates Release.gpg [836 B]Ign http://security.debian.org/ wheezy/updates/main Translation-enGet:2 http://security.debian.org wheezy/updates Release [87.0 kB]Get:3 http://http.us.debian.org wheezyRelease.gpg [1672 B]Ign http://http.us.debian.org/debian/ wheezy/contrib Translation-enIgn http://http.us.debian.org/debian/ wheezy/main Translation-enIgn http://http.us.debian.org/debian/ wheezy/non-free Translation-enGet:4 http://http.us.debian.org wheezyRelease [99.8 kB]Get:5 http://security.debian.org wheezy/updates/main mips Packages [350 kB]Get:6 http://http.us.debian.org wheezy/main mips Packages [8419 kB]Get:7 http://http.us.debian.org wheezy/contrib mips Packages [53.4 kB]Get:8 http://http.us.debian.org wheezy/non-free mips Packages [101 kB]Fetched 9112 kB in 11s (794 kB/s)Reading package lists... Done

3.搜索包 - 例如,如果要安裝 mtr 實用程序,搜索 debian repo 並安裝它:

admin@ubnt:~$ apt-cache search mtr traceroutemtr-tiny - Full screen ncurses traceroute toolmtr - Full screen ncurses and X11 traceroute tool

4.安裝軟件包

admin@ubnt:~$ sudo apt-get install mtr-tinyReading package lists... DoneBuilding dependency treeReading state information... DoneThe following NEW packages will be installed: mtr-tiny0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.Need to get 42.8 kB of archives.After this operation, 135 kB of additional disk space will be used.Get:1 http://ftp.us.debian.org/debian/ wheezy/main mtr-tiny mips 0.75-2 [42.8 kB]Fetched 42.8 kB in 1s (42.8 kB/s)debconf: delaying package configuration, since apt-utils is not installedSelecting previously deselected package mtr-tiny.(Reading database ... 24749 files and directories currently installed.)Unpacking mtr-tiny (from .../mtr-tiny_0.75-2_mips.deb) ...Setting up mtr-tiny (0.75-2) ...

5.嘗試新的包

admin@ubnt:~$ mtr --report -n het.netHOST: ubnt Loss% Snt Last Avg Best Wrst StDev 1. 204.11.231.177 0.0% 10 0.5 0.6 0.5 0.8 0.1 2.