<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.openmoko.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.openmoko.org/index.php?title=Opkg/Documentation&amp;feed=atom&amp;action=history</id>
		<title>Opkg/Documentation - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.openmoko.org/index.php?title=Opkg/Documentation&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/index.php?title=Opkg/Documentation&amp;action=history"/>
		<updated>2013-05-24T17:42:40Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.6</generator>

	<entry>
		<id>http://wiki.openmoko.org/index.php?title=Opkg/Documentation&amp;diff=81593&amp;oldid=prev</id>
		<title>Glenn: +Category:Package management</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/index.php?title=Opkg/Documentation&amp;diff=81593&amp;oldid=prev"/>
				<updated>2010-07-16T17:53:02Z</updated>
		
		<summary type="html">&lt;p&gt;+&lt;a href=&quot;/wiki/Category:Package_management&quot; title=&quot;Category:Package management&quot;&gt;Category:Package management&lt;/a&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 17:53, 16 July 2010&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 119:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 119:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; opkg --cache cachedir&amp;#160; upgrade&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; opkg --cache cachedir&amp;#160; upgrade&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Add a line &amp;quot;option cache ''cachedir''&amp;quot; to /etc/opkg/opkg.conf to avoid the --cache option on command line.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Add a line &amp;quot;option cache ''cachedir''&amp;quot; to /etc/opkg/opkg.conf to avoid the --cache option on command line.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Package management]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Glenn</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/index.php?title=Opkg/Documentation&amp;diff=81429&amp;oldid=prev</id>
		<title>Hum at 19:43, 6 July 2010</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/index.php?title=Opkg/Documentation&amp;diff=81429&amp;oldid=prev"/>
				<updated>2010-07-06T19:43:02Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 19:43, 6 July 2010&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 14:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 14:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;opkg (Open PacKaGe Management) is a lightweight package management system based on Ipkg.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Usage ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Usage ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;opkg (Open PacKaGe Management) is a lightweight package management system based on Ipkg.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; usage: opkg [options...] sub-command [arguments...] &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; usage: opkg [options...] sub-command [arguments...] &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Hum</name></author>	</entry>

	<entry>
		<id>http://wiki.openmoko.org/index.php?title=Opkg/Documentation&amp;diff=81397&amp;oldid=prev</id>
		<title>Hum: New page: {{Languages|Opkg/DOC}}   {{Prioritybox| '''This project has moved.'''  Mid December, 2008, the project moved to Google code: http://code.google.com/p/opkg/ * Group:  http://groups.google.c...</title>
		<link rel="alternate" type="text/html" href="http://wiki.openmoko.org/index.php?title=Opkg/Documentation&amp;diff=81397&amp;oldid=prev"/>
				<updated>2010-07-04T01:10:09Z</updated>
		
		<summary type="html">&lt;p&gt;New page: {{Languages|Opkg/DOC}}   {{Prioritybox| &amp;#039;&amp;#039;&amp;#039;This project has moved.&amp;#039;&amp;#039;&amp;#039;  Mid December, 2008, the project moved to Google code: http://code.google.com/p/opkg/ * Group:  http://groups.google.c...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Languages|Opkg/DOC}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Prioritybox|&lt;br /&gt;
'''This project has moved.'''&lt;br /&gt;
&lt;br /&gt;
Mid December, 2008, the project moved to Google code: http://code.google.com/p/opkg/&lt;br /&gt;
* Group:  http://groups.google.com/group/opkg-devel&lt;br /&gt;
* mailto: opkg-devel at googlegroups.com &amp;lt;opkg-devel at googlegroups.com&amp;gt;&lt;br /&gt;
* Checkout Code: http://code.google.com/p/opkg/source/checkout&lt;br /&gt;
&lt;br /&gt;
Prior to that date, a mailing list for discussion was available here: http://lists.openmoko.org/mailman/listinfo/opkg-devel&lt;br /&gt;
Source code was available in the subversion repository: http://svn.openmoko.org/trunk/src/target/opkg/. The repository could also be [http://svnweb.openmoko.org/trunk/src/target/opkg/ viewed online].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
opkg (Open PacKaGe Management) is a lightweight package management system based on Ipkg.&lt;br /&gt;
&lt;br /&gt;
 usage: opkg [options...] sub-command [arguments...] &lt;br /&gt;
opkg must have one sub-command argument where sub-command is one of:&lt;br /&gt;
&lt;br /&gt;
=== Package Manipulation Commands ===&lt;br /&gt;
        update                  Update list of available packages&lt;br /&gt;
        upgrade                 Upgrade installed packages (see also --download-only)&lt;br /&gt;
        install &amp;lt;pkgs&amp;gt;          Install package(s) (see also --download-only)&lt;br /&gt;
        configure &amp;lt;pkgs&amp;gt;        Configure unpacked package(s)&lt;br /&gt;
        remove &amp;lt;pkgs|regexp&amp;gt;    Remove package(s)&lt;br /&gt;
        flag &amp;lt;flag&amp;gt; &amp;lt;pkgs&amp;gt;      Flag package(s)&lt;br /&gt;
         &amp;lt;flag&amp;gt;=hold|noprune|user|ok|installed|unpacked (one per invocation)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Informational Commands===&lt;br /&gt;
        list                    List available packages&lt;br /&gt;
        list-installed          List installed packages&lt;br /&gt;
        list-upgradable         List installed and upgradable packages&lt;br /&gt;
        files &amp;lt;pkg&amp;gt;             List files belonging to &amp;lt;pkg&amp;gt;&lt;br /&gt;
        search &amp;lt;file|regexp&amp;gt;    List package providing &amp;lt;file&amp;gt;&lt;br /&gt;
        info [pkg|regexp]       Display all info for &amp;lt;pkg&amp;gt;&lt;br /&gt;
        status [pkg|regexp]     Display all status for &amp;lt;pkg&amp;gt;&lt;br /&gt;
        download &amp;lt;pkg&amp;gt;          Download &amp;lt;pkg&amp;gt; to current directory&lt;br /&gt;
        compare-versions &amp;lt;v1&amp;gt; &amp;lt;op&amp;gt; &amp;lt;v2&amp;gt;&lt;br /&gt;
                            compare versions using &amp;lt;= &amp;lt; &amp;gt; &amp;gt;= = &amp;lt;&amp;lt; &amp;gt;&amp;gt;&lt;br /&gt;
        print-architecture      List installable package architectures&lt;br /&gt;
&lt;br /&gt;
        whatdepends [-A] [pkgname|pat]+&lt;br /&gt;
        whatdependsrec [-A] [pkgname|pat]+&lt;br /&gt;
        whatprovides [-A] [pkgname|pat]+&lt;br /&gt;
        whatconflicts [-A] [pkgname|pat]+&lt;br /&gt;
        whatreplaces [-A] [pkgname|pat]+&lt;br /&gt;
&lt;br /&gt;
=== RegEx for packages and filenames ===&lt;br /&gt;
 regexp could be something like 'pkgname*' '*file*' or similar&lt;br /&gt;
 e.g. opkg info 'libstd*' or opkg search '*libop*' or opkg remove 'libncur*'&lt;br /&gt;
&lt;br /&gt;
=== Options ===&lt;br /&gt;
        -A                      Query all packages not just those installed&lt;br /&gt;
        --cache &amp;lt;directory&amp;gt;     Use a package cache&lt;br /&gt;
        -d, --dest &amp;lt;dest_name&amp;gt;  Use &amp;lt;dest_name&amp;gt; as the the root directory for&lt;br /&gt;
                                package installation, removal, upgrading.&lt;br /&gt;
                                &amp;lt;dest_name&amp;gt; should be a defined dest name from&lt;br /&gt;
                                the configuration file, (but can also be a&lt;br /&gt;
                                directory name in a pinch).&lt;br /&gt;
        -f, --conf &amp;lt;conf_file&amp;gt;  Use &amp;lt;conf_file&amp;gt; as the opkg configuration file&lt;br /&gt;
        -o, --offline-root &amp;lt;dir&amp;gt; Use &amp;lt;dir&amp;gt; as the root directory for&lt;br /&gt;
                                offline installation of packages.&lt;br /&gt;
        -V, --verbosity &amp;lt;level&amp;gt;  Set verbosity level to &amp;lt;level&amp;gt;.&lt;br /&gt;
                                Verbosity levels:&lt;br /&gt;
                                        0 errors only&lt;br /&gt;
                                        1 normal messages (default)&lt;br /&gt;
                                        2 informative messages&lt;br /&gt;
                                        3 debug&lt;br /&gt;
                                        4 debug level 2&lt;br /&gt;
&lt;br /&gt;
=== Force Options===&lt;br /&gt;
&lt;br /&gt;
        --force-depends         Install/remove despite failed dependencies&lt;br /&gt;
        --force-downgrade       Allow opkg to downgrade packages&lt;br /&gt;
        --force-maintainer      Overwrite preexisting config files&lt;br /&gt;
        --force-overwrite       Overwrite files from other package(s)&lt;br /&gt;
        --force-reinstall       Reinstall package(s)&lt;br /&gt;
        --force-removal-of-dependent-packages&lt;br /&gt;
                                Remove package and all dependencies&lt;br /&gt;
        --force-space           Disable free space checks&lt;br /&gt;
&lt;br /&gt;
=== other options ===&lt;br /&gt;
        --autoremove            Remove packages that were installed&lt;br /&gt;
                                automatically to satisfy dependencies&lt;br /&gt;
        --download-only         No action -- download only&lt;br /&gt;
        --noaction              No action -- test only&lt;br /&gt;
        --nodeps                Do not follow dependencies&lt;br /&gt;
        -t, --tmp-dir           Specify tmp-dir.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== configuration files ==&lt;br /&gt;
&lt;br /&gt;
In SHR the files are located in the directory ''/etc/opkg/''&lt;br /&gt;
''opkg.conf'' contains the main config options&lt;br /&gt;
&lt;br /&gt;
''arch.conf'' defines the priorities for different feeds/package trees/architectures&lt;br /&gt;
&lt;br /&gt;
''*-feed.conf'' contain the source type, a name and the path to the packages (comparable to debian)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tricks ==&lt;br /&gt;
&lt;br /&gt;
=== Reinstall all installed packages ===&lt;br /&gt;
&lt;br /&gt;
At one point I ended up doing a complete upgrade before i had updated my opkg. As a result i borked a lot af packages. To reinstall them all, you can use this little sed magic.&lt;br /&gt;
&lt;br /&gt;
 opkg --force-reinstall install `opkg list_installed | sed 's/ - .*//'`&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Upgrade after downloading all needed packages ===&lt;br /&gt;
To make sure that opkg upgrade does not break your system because of an unstable connection do: &lt;br /&gt;
 opkg update&lt;br /&gt;
 opkg --cache cachedir --download-only upgrade&lt;br /&gt;
 opkg --cache cachedir  upgrade&lt;br /&gt;
Add a line &amp;quot;option cache ''cachedir''&amp;quot; to /etc/opkg/opkg.conf to avoid the --cache option on command line.&lt;/div&gt;</summary>
		<author><name>Hum</name></author>	</entry>

	</feed>