另类方法解决openwrt下SSH命令opkg: command not found

代码 代码 2756 人阅读 | 0 人回复

<
首先 OPKG命令 是openwrt插件安装特有命令 类似Ubuntu上的apt-get或者centos上的yum
好多openwrt系统固件都把opkg裁剪掉了,如果拿到一个openwrt系统又想用opkg安装网络上下载到的ipk包,应该怎么办呢?
First of all, the OPKG command is a special command for openwrt plug-in installation, similar to apt-get on Ubuntu or yum on centos
Many openwrt system firmwares have cut off the opkg. If you get an openwrt system and want to use opkg to install the ipk package downloaded from the network, what should I do?
Effective commands found on the network that can be directly executed
Download opkg release (latest when this was written was 0.3.1):
wget http://downloads.yoctoproject.org/releases/opkg/opkg-0.3.1.tar.gz
tar -zxvf opkg-0.3.1.tar.gz
install compilation dependencies: apt-get update && apt-get install -y gcc libtool autoconf pkg-config libarchive13 libarchive-dev libcurl3 libcurl4-gnutls-dev libssl-dev libgpgme11-dev libtool-bin
compile(compile with gpg support for signature verification, and curl to support basic auth-leave the enable-curl flag out to use it with the default wget): * (pre-compilation) if there’s no configure script (a file called configure) you need to call ./autogen.sh first * ./configure –with-static-libopkg –disable-shared –enable-gpg –enable-curl –prefix=/usr && make && sudo make install
After make install is done you will have opkg installed-remember to add opkg.conf (example here) under /etc/opkg

After my test, it couldn’t be executed. In addition, all the compilations found in China were all nonsense and couldn’t run.
I searched in domestic and foreign search engines for 10 minutes and found more than 10 articles, most of which could not be solved.
Finally, a very simple way to solve the urgent need
It is to use the file management function that comes with openwrt, generally in System>>File Management
We open the root folder (recommended) You can also open a folder at will
Then click upload to upload the downloaded plug-in *.ipk file to openwrt
Then click Install to install the required plug-in
Please indicate the source for the original reprint of this article https://www.31du.cn/blog/openwrt-opkg-command-not-found.html
网络上面找到的能直接执行的有效命令Download opkg release (latest when this was written was 0.3.1):wget http://downloads.yoctoproject.org/releases/opkg/opkg-0.3.1.tar.gztar -zxvf opkg-0.3.1.tar.gzinstall compilation dependencies: apt-get update && apt-get install -y gcc libtool autoconf pkg-config libarchive13 libarchive-dev libcurl3 libcurl4-gnutls-dev libssl-dev libgpgme11-dev libtool-bincompile(compile with gpg support for signature verification, and curl to support basic auth - leave the enable-curl flag out to use it with the default wget): * (pre-compilation) if there's no configure script (a file called configure) you need to call ./autogen.sh first * ./configure --with-static-libopkg --disable-shared --enable-gpg --enable-curl --prefix=/usr && make && sudo make installAfter make install is done you will have opkg installed - remember to add opkg.conf (example here) under /etc/opkg
经过我的测试最终无法执行   另外国内找到的什么编译  全部都是扯淡无法运行
在国内外搜索引擎搜寻了10分钟 找了10几篇文章  大都无法解决
另类方法解决openwrt下SSH命令opkg: command not found 90919909909909.4ga3scyxqoao.jpg
最后 一个非常简单的方法 解决燃眉之急
就是利用openwrt自带的文件管理功能  一般在 系统>>文件管理里面
我们打开root文件夹  (推荐) 也可随便打开一个文件夹
然后点击上传  把下载好的插件 *.ipk文件上传到openwrt里面
然后点击安装即可安装上所需插件

1、本网站属于个人的非赢利性网站,转载的文章遵循原作者的版权声明,如果原文没有版权声明,按照目前互联网开放的原则,我们将在不通知作者的情况下,转载文章;如果原文明确注明“禁止转载”,我们一定不会转载。如果我们转载的文章不符合作者的版权声明或者作者不想让我们转载您的文章的话,请您发送邮箱:Cdnjson@163.com提供相关证明,我们将积极配合您!
2、本网站转载文章仅为传播更多信息之目的,凡在本网站出现的信息,均仅供参考。本网站将尽力确保所提供信息的准确性及可靠性,但不保证信息的正确性和完整性,且不对因信息的不正确或遗漏导致的任何损失或损害承担责任。
3、任何透过本网站网页而链接及得到的资讯、产品及服务,本网站概不负责,亦不负任何法律责任。
4、本网站所刊发、转载的文章,其版权均归原作者所有,如其他媒体、网站或个人从本网下载使用,请在转载有关文章时务必尊重该文章的著作权,保留本网注明的“稿件来源”,并自负版权等法律责任。
回复 关闭延时

使用道具 举报

 
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则