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.