Где получить пакеты

Пакеты расширяют возможности вашего роутера. Вы можете установить или удалить неиспользуемые пакеты, согласно вашим нуждам и возможностям вашего роутера. В случае, если вы соберетесь увеличивать память вашего устройства (за счет USB-выхода или другими способами), вы получите совершенно новый по классу роутер, с черезвычайно широким спектром функций. Имейте в виду, что устанавливая пакеты вы уменьшаете объем свободной памяти вашего устройства.

  1. В OpenWrt существует встроенная система управлением пакетами Package management system.
  2. OpenWrt предлагает репозиторий Software repository, который на момент февраля 2011 содержал порядка 2000 пакетов. Это не опечатка.
  3. Существуют и другие проекты, предоставляющие свои репозитории в дополнение к существующим
  4. Программа, которая осуществляет их установку, учет и удаление, называется opkg-manager.

Официальные пакеты

Официальные пакеты OpenWrt могут быть найдены в отдельной папке с пакетами на сервере репозитория. Пакеты, содержащие только исполняемые скрипты (shell-scripts-only), конечно-же, архитектурно-независимы. Пакеты, содержащие бинарные файлы, зависят от архитектуры, а некоторые, например, kmods - зависят от специфической версии ядра.

У каждого нового релиза есть своя дирректтория, в которую входят суб-дирректории для различных поддерживаемых платформ, а каждая платформная дирректория содержит собранные файлы (pre-build images), а дирректория packages содержит нестабильные файлы *.ipk.

Legacy 'White Russian' packages are still available: http://downloads.openwrt.org/whiterussian/packages/ and the Backport repository.
Source tar-balls for most packages can be found at http://downloads.openwrt.org/sources/ and http://mirror2.openwrt.org/sources/.

Creating custom packages

Howto Create a Package to create custom packages for OpenWrt using the toolchain (Buildroot)
crosscompile to simply sample a program

Third party packages

Third party packages are untested and unsupported by OpenWrt, and no warranties are made about their safety or usefulness. They could very well contain backdoors and such. So install only packages from sources, you trust! Please get support for third-party packages from the maintainers of those packages, not the OpenWrt developers.

Common sources for such packages include:

Usage of the OPKG package manager

opkg – Technical Reference. Below you see a very short outtake:

Command Description
opkg Print a list of all available commands and options
opkg update Download the current list of packages available
opkg list View the list of all packages in the current package list. Use with regular expressions
opkg list_installed View the list of installed packages
opkg install umurmur Install the package named umurmur, can also use a FQDN instead, e.g.
opkg install http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/umurmur-polarssl_0.2.6-1_ar71xx.ipk
opkg remove umurmur Remove the umurmur package
Option Option long Description
-V <level> –verbosity <level> Set verbosity level to <level>. 0 = errors only, 1 = normal messages (def), 2 = informative messages, 3 = debug, 4 = debug level 2
-d <dest_name> –dest <dest_name> Use <dest_name> as the the root directory for package installation, removal, upgrading. <dest_name> should be a defined dest name from the configuration file, (but can also be a directory name in a pinch).
-o <dir> –offline-root <dir> Use <dir> as the root directory for offline installation of packages.

External storage

opkg – Technical Reference: Installation Destinations
Mounting Filesystems for various ways to mount external storage

Back to top

ru/doc/packages.txt · Last modified: 2011/09/17 00:37 by artem25