起首 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 收集上里找到的能间接施行的有用号令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自带的文件办理功用 普通正在 体系>>文件办理内里 我们翻开root文件夹 (保举) 也可随意翻开一个文件夹 然后面击上传 把下载好的插件 *.ipk文件上传到openwrt内里 然后面击装置便可装置上所需插件
|