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

代码 代码 2021 人阅读 | 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几篇文章  多数没法处理
90919909909909.4ga3scyxqoao.jpg
最初 一个十分简朴的办法 处理十万火急
便是操纵openwrt自带的文件办理功用  普通正在 体系>>文件办理内里
我们翻开root文件夹  (保举) 也可随意翻开一个文件夹
然后面击上传  把下载好的插件 *.ipk文件上传到openwrt内里
然后面击装置便可装置上所需插件

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

使用道具 举报

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

本版积分规则