IPKG - Packagemanagement

All software for FreeWRT is available as a IPKG package. IPKG is a package manager very similar to Debian's dpkg/apt-get utilities. It is specially designed for embedded systems and is widely used. The FreeWRT project use a special version, which is embedded to the busybox binary. Normally the command line tool ipkg is pre-installed.

IPKG uses a configuration file similar to /etc/apt/sources.list, which contains a list of software repositories available via HTTP or FTP.

To update the list of available packages execute following command as root:

[label=update list of available packages]
# ipkg update

This command requires a working internet connection, because it will fetch a package list from every repository declared in /etc/ipkg.conf. It is also only working for JFFS2 based root filesystem. For squashfs root filesystem embed your application and reflash.

To install a new package use following command:

[label=example installation of \app{tcpdump}]
# ipkg install tcpdump

This will install the package tcpdump and all dependencies onto the flash.

You can also remove packages, but this is only useful if you are using jffs2 as root filesystem:

[label=example removal of \app{tcpdump}]
# ipkg remove tcpdump

This will not remove any dependencies, installed earlier. For example, libpcap is still installed after executing this command. On jffs2 root filesystem you should never remove any essential packages like busybox, fwcf or uclibc, otherwise you make the WLAN router unusable.

Nearly the same as for removing packages, counts for ipkg upgrade. Please never ever use ipkg upgrade to update your WLAN router. This command is only useful to upgrade single packages on a jffs2 rootfile system.