{"id":9200,"date":"2015-09-14T11:26:48","date_gmt":"2015-09-14T16:26:48","guid":{"rendered":"http:\/\/www.multitech.net\/developer\/?page_id=9200"},"modified":"2019-09-04T09:08:51","modified_gmt":"2019-09-04T14:08:51","slug":"opkg-package-manager","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/mlinux\/using-mlinux\/opkg-package-manager\/","title":{"rendered":"OPKG Package Manager"},"content":{"rendered":"<p>The opkg utility is a lightweight package manager used to download and install packages from local package repositories or those located online. Opkg attempts to resolve dependencies with packages in the repositories; if this fails, it will report an error, and abort the installation of that package.<\/p>\n<p>By default, opkg on\u00a0mLinux<sup>\u2122<\/sup> uses one of the MultiTech package repositories located here: <a href=\"http:\/\/www.multitech.net\/mlinux\/feeds\/\" target=\"_blank\">http:\/\/www.multitech.net\/mlinux\/feeds\/<\/a>\u00a0.\u00a0This repository has a significant selection of pre-built packages, but is much smaller than repositories for Ubuntu\/Debian. The\u00a0Conduit<sup>\u00ae<\/sup> factory image includes many of these packages. For a smaller memory footprint, flash in the Conduit base image and then use opkg to install the minimum packages needed.<\/p>\n<p>Refer to <a href=\"https:\/\/www.multitech.net\/developer\/software\/mlinux\/mlinux-building-images\/using-opkg-with-mlinux\/\">Using OPKG with mLinux<\/a> page, for more details on OPKG.<\/p>\n<h4>Add a Package Feed<\/h4>\n<ul>\n<li>Add a feed url to <code>\/etc\/opkg\/mlinux-feed.conf<\/code><\/li>\n<\/ul>\n<h4>Usage<\/h4>\n<ul>\n<li>Ensure the Conduit has an internet connection<\/li>\n<li>Update available packages: <code>opkg update<\/code><\/li>\n<li>Install package: <code>opkg install ruby<\/code><\/li>\n<li>You can also install a package from another repository or from the local drive:\n<pre class=\"brush:shell\">$ opkg install http:\/\/www.multitech.net\/mlinux\/feeds\/3.1\/arm926ejste\/wget_1.14-r16.0.0_arm926ejste.ipk\r\n$ opkg install \/tmp\/hiawatha_7.7-2_ar71xx.ipk<\/pre>\n<\/li>\n<li>For more information on opkg,\u00a0refer to the\u00a0<a href=\"https:\/\/www.multitech.net\/developer\/software\/mlinux\/mlinux-building-images\/using-opkg-with-mlinux\/\">Using OPKG with mLinux<\/a> page\u00a0or this website:\u00a0<a href=\"http:\/\/wiki.openwrt.org\/doc\/techref\/opkg\">http:\/\/wiki.openwrt.org\/doc\/techref\/opkg<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The opkg utility is a lightweight package manager used to download and install packages from local package repositories or those located online. Opkg attempts to resolve dependencies with packages in the repositories; if this fails, it will report an error, and abort the installation of that package. By default, opkg on\u00a0mLinux\u2122 uses one of the [&hellip;]<\/p>\n","protected":false},"author":1235,"featured_media":0,"parent":9184,"menu_order":6,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-9200","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/9200","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/users\/1235"}],"replies":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/comments?post=9200"}],"version-history":[{"count":9,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/9200\/revisions"}],"predecessor-version":[{"id":21078,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/9200\/revisions\/21078"}],"up":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/9184"}],"wp:attachment":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/media?parent=9200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}