ER-X安装其他Debian软件包的方法

ER-X采用的EdgeOS是基于Debian的,你可以添加其他的Debian软件包到EdgeOS,安装有两种方式,一种是本地方式,一种是在线方式,如果采用在线方式,必须先安装好科学上网,否则有些软件可能无法下载。

一、本地方式

Debian官方软件仓库下载deb安装包,通过WinSCP软件上传到/tmp目录下,再执行安装。

这里以安装unzip软件为例子,去这里下载UNZIP的DEB安装包,注意要找ER-X所用平台mipsel对应的软件包,用WinSCP软件上传到/tmp目录下。

使用Xshell等软件打开终端,输入以下命令:

sohu@ubnt:~$ sudo -i
root@ubnt:~# cd /tmp
root@ubnt:/tmp# sudo dpkg -i unzip_6.0-25_mipsel.deb
Selecting previously unselected package unzip.
(Reading database … 37040 files and directories currently installed.)
Preparing to unpack unzip_6.0-25_mipsel.deb …
Unpacking unzip (6.0-25) …
Setting up unzip (6.0-25) …
Processing triggers for mime-support (3.60) …
root@ubnt:~#

如果要卸载unzip,只需执行以下命令

root@ubnt:~# sudo dpkg -r unzip

二、在线安装

(一)、EdgeOS2.0以上固件

1、添加Debian软件包仓库

configure
set system package repository stretch components ‘main contrib non-free’
set system package repository stretch distribution stretch
set system package repository stretch url http://http.us.debian.org/debian
commit ; save; exit

2、安装unzip

运行apt update && apt install unzip

(二)、EdgeOS2.0以下固件

1、添加Debian软件包仓库

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://archive.debian.org/debian
commit ; save

2、更新本地缓存
sudo apt-get update

3、安装unzip

sudo apt-get install unzip

上一篇
下一篇