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

本文摘要ER-X 的 EdgeOS 基于 Debian,你可以像操作普通 Debian 系统一样安装额外的软件包。安装方式分为本地安装和在线安装两种。如果采用在线安装,请确保网络能正常访问 Debian 仓库(部分软件可能需要科学上网)。一、本地安装前往 Debian 官方软件仓库 下载适用于 ER-X 平台(mipsel)的 .deb 安装包。用 WinSCP 等工具将安装包上传到 ER-X 的 /tm...

ER-X 的 EdgeOS 基于 Debian,你可以像操作普通 Debian 系统一样安装额外的软件包。安装方式分为本地安装和在线安装两种。如果采用在线安装,请确保网络能正常访问 Debian 仓库(部分软件可能需要科学上网)。


一、本地安装

  1. 前往 Debian 官方软件仓库 下载适用于 ER-X 平台(mipsel)的 .deb 安装包。
  2. 用 WinSCP 等工具将安装包上传到 ER-X 的 /tmp 目录。
  3. 通过 SSH 客户端(如 Xshell)登录设备,执行以下命令安装。

以安装 unzip 为例:

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
下载 unzip 示例安装包:unzip_6.0-25_mipsel.deb

二、在线安装

1. EdgeOS 2.0 及以上固件

添加 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

安装 unzip

sudo apt update && sudo apt install unzip

2. EdgeOS 2.0 以下固件

添加 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

更新本地缓存并安装

sudo apt-get update
sudo apt-get install unzip

觉得内容不错?我要

评论 暂无评论
暂无评论,快来抢沙发吧~