Offline OPKG
The following text is help how to install the OPKG package on an IPLOG unit that does not have Internet access. The installation will require a computer that has an Internet connection, on which the required packages will be downloaded, which will then be copied to the IPLOG unit via the SCP protocol or via a USB drive. Some packages depend on another package, so you must download all related packages and start installing from the last package that has no other dependencies.
The second option is to add to the OPKG configuration file the path to the local directory where the packages will be saved.
Current packages are available at address http://www.iplog.eu/opkg/base/
Contents
Example of mysql Package Installation
1) Check the dependence on another package
Find the entry for the mysql package at http://www.iplog.eu/opkg/base/Packages.
Package: mysql Version: 5.1.73-10395 Depends: libstdc++ Section: base Architecture: all Maintainer: METEL MD5Sum: f5a9802abcef86450b5baf3019b766ba Size: 10478526 Filename: mysql_5.1.73-10395_all.ipk Source: http://www.iplog.eu Description: MySQL database engine. License: Proprietary Priority: optional
The Depends line shows the dependency on another libstdc++ package.
2) Download packages
From the address http://www.iplog.eu/opkg/base download the mysql and libstdc++ packages to your computer.
3) Copy the packages to the IPLOG unit
Connect your computer to the IPLOG and via SCP protocol or via USB flash drive copy the packages from computer to IPLOG unit eg. to the /home directory.
4) Install the packages
Open SSH connection with IPLOG unit and first install the libstdc++ package, which has no other dependencies and after mysql package.
root@iplog:/# opkg install /home/libstdc\+\+_0.0.6-10384_all.ipk
root@iplog:/# opkg install /home/mysql_5.1.73-10395_all.ipk
Done, now is mysql application ready for use in the IPLOG unit.
Local Repositories
You can configure opkg to fetch the packages locally. Edit the file /etc/opkg/metel.conf and add line for local directory where are saved the packages. Local repositories works like next source for packages, so is possible use the standard command for installing package.
Example
# Copyright (C) 1996-2018 METEL s.r.o. - PC 2018080100 # src/gz base http://www.iplog.eu/opkg/base src/gz local file:///home src/gz firmware http://www.iplog.eu/opkg/firmware # end-of-file
Note: The directory must contain the Packages.gz file which is available also at http://www.iplog.eu/opkg/base.