Werner's Miscellanea
Sign in or create your account | Project List | Help
Werner's Miscellanea Git Source Tree
Root/
| 1 | qpkg - Quick package database query |
| 2 | =================================== |
| 3 | |
| 4 | qpkg is a tool that reads package databases of the kind used by opkg |
| 5 | in OE-derived Jlime (which are very similar to what dpkg and apt use) |
| 6 | and that can answer a number of queries on them. |
| 7 | |
| 8 | While being able to perform some of the database operations commonly |
| 9 | found in package managers, qpkg is not a package manager itself. |
| 10 | However, it may be used to help a package manager do its work faster. |
| 11 | |
| 12 | |
| 13 | Except for the files jrb.h and jrb.c, this work is distributed under |
| 14 | the terms of the GNU GENERAL PUBLIC LICENSE, Version 2: |
| 15 | |
| 16 | This program is free software; you can redistribute it and/or modify |
| 17 | it under the terms of the GNU General Public License as published by |
| 18 | the Free Software Foundation; either version 2 of the License, or |
| 19 | (at your option) any later version. |
| 20 | |
| 21 | For your convenience, a copy of the complete license has been included |
| 22 | in the file COPYING.GPLv2. |
| 23 | |
| 24 | |
| 25 | The implementation of red-black trees, in jrb.h and jrb.c, is |
| 26 | distributed under the terms of the GNU Lesser General Public License, |
| 27 | Version 2.1: |
| 28 | |
| 29 | This library is free software; you can redistribute it and/or |
| 30 | modify it under the terms of the GNU Lesser General Public |
| 31 | License as published by the Free Software Foundation; either |
| 32 | version 2.1 of the License, or (at your option) any later version. |
| 33 | |
| 34 | For your convenience, the original copyright notice accompanying JRB |
| 35 | and a copy of the license have been included in the files READNE.jrb |
| 36 | and LICENSE.jrb, respectively. |
| 37 | |
| 38 | |
| 39 | Objectives |
| 40 | ---------- |
| 41 | |
| 42 | The original motivation for qpkg comes from the observation that opkg |
| 43 | consumes inordinate amounts of memory when determining the |
| 44 | prerequisites for installing a package on a given system, and the |
| 45 | proof of concept implementation of a shell script wrapper by Rafael |
| 46 | Zurita, that performs a large subset of the same task with much less |
| 47 | overhead. |
| 48 | |
| 49 | qpkg thus aims to load and parse large package databases as quickly |
| 50 | and memory-efficiently as possible, and to provide a number of query |
| 51 | functions that operate on the data. |
| 52 | |
| 53 | A second objective is to provide a means to test the integrity of a |
| 54 | package database, and to perform simple "what if" queries, e.g., to |
| 55 | test which packages would become uninstallable if a package was to be |
| 56 | removed or a conflict was to be introduced. |
| 57 | |
| 58 | This is to aid not only in general housekeeping of package databases, |
| 59 | but also to assist in generating - at the package level - restricted |
| 60 | distributions derived from a master distribution. |
| 61 |
Branches:
master
