Create a custom package feed in OpenWrt (opkg, download site)

How does one create a custom package feed in OpenWRT?

I have a number of custom packages that I'm building under OpenWRT that I'd like to add to a custom feed so I can have my openwrt devices pull updates for these custom packages.

I've looked through all of the OpenWRT docs and done several google searches without finding any details. Where can I find documentation, a tutorial, or an example of creating the files required for a custom feed?

1 Like

There's a couple of articles under the developer areas around custom feeds, if it helps.

Are you talking about building the packages ?
or about providing a download site with integration to your build's opkg?

Its providing a download site with integration to build's opkg

Thanks @jamesmacwhite. But I'm looking to have my feeds online on GitHub or a server. But these articles don't have any information regarding that.

I have never done that by myself, but the main steps would be:

  • compile packages with your toolchain

  • create package index and signature files. Usually those are created automatically by the full firmware make, but you should be able to create them manually with make package/index if they are missing (e.g. because you compiled the packages separately.
    Packages, Packages.gz, Packages.manifest, Packages.sig
    Note that separate files are for each feed: luci, packages, etc. including your new feed

  • copy packages, index and signature files to your download location. Note that your files need to be downloadable from that site with wget (opkg uses wget)

  • edit the /etc/opkg/customfeeds.conf to contain proper definition for your download site. Similar definition as found in distfeeds.conf. Name the feed and provide the download directory URL...
    That should enable opkg to download also that package index so that the packages would be foundable.

From router:

root@router1:~# cat /etc/opkg/distfeeds.conf
src/gz openwrt_core https://downloads.openwrt.org/snapshots/targets/ipq806x/generic/packages
src/gz openwrt_base https://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/base
src/gz openwrt_luci https://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/luci
src/gz openwrt_packages https://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/packages
src/gz openwrt_routing https://downloads.openwrt.org/snapshots/packages/arm_cortex-a15_neon-vfpv4/routing

root@router1:~# cat /etc/opkg/customfeeds.conf
# add your custom package feeds here
#
# src/gz example_feed_name http://www.example.com/path/to/files

see also

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.