Difference between revisions of "Pkgtxt2db"
(created) |
(updated, add examples) |
||
Line 20: | Line 20: | ||
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 ;) ) | ||
+ | |||
+ | |||
[[Category:User Documentation]] | [[Category:User Documentation]] | ||
[[Category:Software developed in-house]] | [[Category:Software developed in-house]] | ||
[[Category:Pkgtxt2db]] | [[Category:Pkgtxt2db]] |
Revision as of 08:00, 31 January 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 the Salix svn repository. You can get it with:
svn co https://salix.svn.sourceforge.net/svnroot/salix/Pkgtxt2db/ Pkgtxt2db
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 ;) )