Opkg

From LORIX One - Wiki

Jump to: navigation, search

Introduction

opkg (Open PacKaGe Management) is a lightweight package management system based on Ipkg. It has been created for the OpenMoko project and more documentation can be found here.

It allows to easily add, remove or update packages available from server as defined in the opkg sources files (/etc/opkg/base-feed.conf).

Update opkg package database

By default, opkg has a cache of all the available packages for a given architecture. Based on this cache, opkg knows then which packages can be installed and where to find them.

Since packages can be added or updated on the server, it is necessary to update this cache before any real update as described below.


To update the opkg cache, use the following command:

$ sudo opkg update

Don't forget to update this cache before any of the following command.

Install a new opkg package

Based on the available packages in the cache of opkg, you can install a new package using the following command:

$ sudo opkg install <package name>

Update existing and installed packages

List of opkg installed packages

The list of installed packages is available using the command:

$ sudo opkg list-installed

Update of existing packages

The update of installed package is quite simple and opkg will resolv itself any dependencies and version once the process launched as for the standard installation of a new package. To update packages, you can use the following command:

$ sudo opkg upgrade