EdgeRouter - Add other Debian packages to EdgeOS

Overview


Because EdgeOS is based on Debian, you can add other Debian packages to EdgeOS. The example provided below is a US repository, but other repositories can be found here.

Although there are size and compatibility limitations* to which repositories can be used, most small utility packages can be installed. Some examples of package limitations are packages that require a kernel feature that isn't enabled in our kernel, packages that require sound and/or video, etc.  Also, just because it a debian system does NOT mean that you should use "apt-get upgrade" or "apt-get dist-upgrade". Some of our debian packages are customized, so you might break something if you tried to do a generic "upgrade".

Popular packages include screeniftopiptrafmtr-tiny, and procinfo.

Steps

  1. Add a Debian repo and the security repo
    Note: Releases prior to 1.6 use the squeeze repositories.

    configure
    set 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/debian
    commit
    save
    exit
  2.  Update the local cache.

    admin@ubnt:~$ sudo apt-get update
    Hit http://http.us.debian.org wheezy Release.gpg
    Hit http://http.us.debian.org wheezy Release
    Hit http://http.us.debian.org wheezy/main mips Packages
    Hit http://http.us.debian.org wheezy/contrib mips Packages
    Hit http://http.us.debian.org wheezy/non-free mips Packages
    Hit http://http.us.debian.org wheezy/contrib Translation-en
    Hit http://http.us.debian.org wheezy/main Translation-en
    Hit http://http.us.debian.org wheezy/non-free Translation-en
    Reading package lists... Done
  3. Search for a package—for example, if you want to install the mtr utility, search the debian repo and install it:

    admin@ubnt:~$ apt-cache search mtr traceroute
    mtr-tiny - Full screen ncurses traceroute tool
    mtr - Full screen ncurses and X11 traceroute tool
  4. Install a package

    admin@ubnt:~$ sudo apt-get install mtr-tiny
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following NEW packages will be installed:
     mtr-tiny
    0 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 installed
    Selecting 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. Try out the new package

    admin@ubnt:~$ mtr --report -n het.net
    HOST: 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. 10.5.44.1 0.0% 10 2.8 35.1 2.4 152.4 60.9
     3. 204.11.230.41 0.0% 10 11.4 7.3 3.4 11.4 2.3
     4. 204.11.230.145 0.0% 10 13.4 8.9 4.3 13.4 2.9
     5. 63.146.113.82 0.0% 10 11.9 11.1 4.9 18.6 4.3
     6. 205.171.244.1 0.0% 10 14.7 12.0 5.2 41.2 10.6
     7. ??? 100.0 10 0.0 0.0 0.0 0.0 0.0
     8. 67.14.12.146 0.0% 10 10.5 10.9 6.6 14.7 2.9
     9. 205.171.234.6 0.0% 10 15.8 11.4 7.3 15.9 3.1
     10. 66.198.127.93 0.0% 10 47.5 15.5 5.9 47.5 11.7
     11. 66.198.127.6 0.0% 10 173.0 169.7 167.2 173.1 2.3
     12. 216.6.99.1 0.0% 10 169.6 178.7 169.6 197.4 9.1
     13. 216.6.99.14 0.0% 10 176.8 176.1 165.8 182.2 5.7
     14. 80.231.131.14 0.0% 10 169.0 175.4 168.1 189.0 6.4
     15. 195.219.194.5 0.0% 10 172.7 176.1 170.7 183.6 4.3
     16. 195.219.194.82 0.0% 10 187.0 180.3 168.2 206.2 10.8
     17. 217.170.10.50 10.0% 10 182.1 177.4 171.5 187.1 5.0
     18. 217.170.18.254 10.0% 10 217.9 209.6 198.0 218.0 7.1
     19. 85.159.112.12 10.0% 10 209.7 204.9 191.3 223.7 10.0

 Notes


* - If any packages that are not compatible with BusyBox are installed, issues may develop because there are other packages that do use BusyBox.

* - installed packages are lost on upgrade. See LINK for more info on preserving changes after upgrade.

Powered by Zendesk