OPKG

From ElectroDragon Wiki
Revision as of 22:31, 31 January 2020 by Chao (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Use guide

The following operations are done on openwrt

  • opkg update
  • opkg list | grep python- // list all python- pacakges
  • opkg install python // install python 2.7
root@ZhuoTK:~# opkg install python
Installing python (2.7.16-11) to root...
Downloading http://downloads.lede-project.org/snapshots/packages/mips_24kc/packages/python_2.7.16-11_mips_24kc.ipk
Multiple packages (libpthread and libpthread) providing same name marked HOLD or PREFER. Using latest.
Multiple packages (libpthread and libpthread) providing same name marked HOLD or PREFER. Using latest.
Multiple packages (libpthread and libpthread) providing same name marked HOLD or PREFER. Using latest.
Installing zlib (1.2.11-3) to root...
Downloading http://downloads.lede-project.org/snapshots/packages/mips_24kc/base/zlib_1.2.11-3_mips_24kc.ipk
Installing python-base (2.7.16-11) to root...
Downloading http://downloads.lede-project.org/snapshots/packages/mips_24kc/packages/python-base_2.7.16-11_mips_24kc.ipk
Installing libffi (3.2.1-3) to root...
Downloading http://downloads.lede-project.org/snapshots/packages/mips_24kc/packages/libffi_3.2.1-3_mips_24kc.ipk
Installing libbz2-1.0 (1.0.8-1) to root...
Downloading http://downloads.lede-project.org/snapshots/packages/mips_24kc/base/libbz2-1.0_1.0.8-1_mips_24kc.ipk
Installing python-light (2.7.16-11) to root...
Downloading http://downloads.lede-project.org/snapshots/packages/mips_24kc/packages/python-light_2.7.16-11_mips_24kc.ipk
Installing python-ctypes (2.7.16-11) to root...
Downloading http://downloads.lede-project.org/snapshots/packages/mips_24kc/packages/python-ctypes_2.7.16-11_mips_24kc.ipk
Installing python-pydoc (2.7.16-11) to root...
Downloading http://downloads.lede-project.org/snapshots/packages/mips_24kc/packages/python-pydoc_2.7.16-11_mips_24kc.ipk
Installing python-multiprocessing (2.7.16-11) to root...
Downloading http://downloads.lede-project.org/snapshots/packages/mips_24kc/packages/python-multiprocessing_2.7.16-11_mips_24kc.ipk
Installing python-codecs (2.7.16-11) to root...
Downloading http://downloads.lede-project.org/snapshots/packages/mips_24kc/packages/python-codecs_2.7.16-11_mips_24kc.ipk
Installing libsqlite3 (3290000-1) to root...
Downloading http://downloads.lede-project.org/snapshots/packages/mips_24kc/packages/libsqlite3_3290000-1_mips_24kc.ipk
Installing python-sqlite3 (2.7.16-11) to root...
Downloading http://downloads.lede-project.org/snapshots/packages/mips_24kc/packages/python-sqlite3_2.7.16-11_mips_24kc.ipk
  • opkg install libupm-ds18b20

Install local package

  • install package: opkg install js9331_temp_sensor_1.0_ar71xx.ipk

Listed installed

  • opkg list-installed

Via HPS HTTP Local server

Source Online

Openwrt

Error Log

insmod gpio_ir_driver.ko

failed to insert gpio_ir_driver.ko

opkg install js9331_temp_sensor_1.0_ar71xx.ipk

pkg_hash_fetch_best_installation_candidate: Packages for js9331_temp_sensor found, but incompatible with the architectures configured