Skip to content

Latest commit

 

History

History
82 lines (54 loc) · 2.15 KB

REFERENCE.md

File metadata and controls

82 lines (54 loc) · 2.15 KB

opkg: Package manager used by Entware

Package format

ipk

Inherited from the legacy ipkg tool. Similar to deb.

A tar.gz archive containing two sub-archives:

  • data.tar.gz: Files of the package.
    • The structure mirrors that of the root filesystem.
  • control.tar.gz: Metadata about the package.
    • Install scripts (optional)
      • preinst: Executed before uncompressing the data.
      • postinst: Executed after the package has been installed.
      • prerm: Executed before uninstalling the package.
      • postrm: Executed after uninstalling the package.
    • Metadata files
      • control: Package description (required).
      • conffiles: Files to keep upon upgrading the package (optional).

Control file

Fields

  • Package: Name of the package (same as in the package archive name).
  • Priority: optional.
  • Depends: list of space-separated dependencies.
  • Section: See https://packages.debian.org/stable/ for a list of sections in Debian.
  • Description: Short description for the package.
  • Maintainer: Full Name [email protected]
  • Source: N/A
  • Version: Package version

See also

Repository format

Also called a feed.

Directory with list of packages and a Packages file

Package naming: appname_version_arch.ipk

Config /opt/etc/opkg.conf

src NAME URL
src/gz NAME URL

Where URL is the feed root

See also

Building

build-repo

Date of latest commit

opkg-utils must be in PATH

For reproducibility:

  • must be done under the same root path

Automatically updated when commits are pushed to the master branch, via GitHub Actions.