Difference between revisions of "Pkgtxt2db"
From Salix OS
(updated, add examples) |
(change svn link to the new git one) |
||
Line 13: | Line 13: | ||
http://people.salixos.org/fredg/packages/Pkgtxt2db/ | http://people.salixos.org/fredg/packages/Pkgtxt2db/ | ||
− | The source code is also available through | + | The source code is also available through github. You can get it with: |
− | + | $ git clone ssh://git@github.com:fredg/pkgtxt2db.git | |
=USAGE= | =USAGE= |
Revision as of 12:50, 30 June 2012
Contents |
Description
Pkgtxt2db is a utility for Slackware and Slackware based operating system only.
It can be use to convert PACKAGES.TXT to various database formats:
Are supported for now:
- CSV
- JSON
Download
Sources tarballs and Slackware packages can be found there: http://people.salixos.org/fredg/packages/Pkgtxt2db/
The source code is also available through github. You can get it with:
$ git clone ssh://git@github.com:fredg/pkgtxt2db.git
USAGE
pkgtxt2db [options]
Options:
-c | --csv convert PACKAGES.TXT to a CSV DB -j | --json convert PACKAGES.TXT to a JSON DB -t | --target use with -c or -j, choose slackware or salix -r | --release use with -t, choose the release
--target is to choose between Salix or Slackware repository. It can be:
* salix32: salix i486 repository * salix64: salix x86_64 repository * slack32: slackware i486 repository * slack64: slackware x86_64 repository
--release is to choose the release It can be:
* 13.37 * current (if repository exist) * ...
Examples
pkgtxt2db -j -t salix32 -r 13.37
It will convert PACKAGES.TXT from the i486 salix repo to a JSON database: pkgtxt.json
pkgtxt2db -c -t slack32 -r current
It will convert PACKAGES.TXT from the current i486 slackware repo to a CSV database, with tab separated value: pkgtxt.csv (you can open it with libreoffice if you want ;) )