#include #include int main (int argc, char **argv) { opkg_t *opkg; int err; opkg = opkg_new (); opkg_set_option (opkg, "offline_root", "/tmp/"); err = opkg_update_package_lists (opkg); printf ("opkg_update_package_lists returned %d\n", err); opkg_free (opkg); }