Difference between revisions of "Pkgtxt2db"

From Salix OS
Jump to: navigation, search
(created)
 
(updated, add examples)
Line 20: Line 20:
  
 
Options:
 
Options:
  -a | --asc32      convert Salix PACKAGES.TXT to a CSV DB
+
  -c | --csv convert PACKAGES.TXT to a CSV DB
  -b | --bsc64      convert Salix64 PACKAGES.TXT to a CSV DB
+
  -j | --json convert PACKAGES.TXT to a JSON DB
  -c | --cslc32      convert Slackware PACKAGES.TXT to a CSV DB
+
  -t | --target use with -c or -j, choose slackware or salix
  -d | --dslc64      convert Slackware64 PACKAGES.TXT to a CSV DB
+
  -r | --release use with -t, choose the release
  
-e | --esj32      convert Salix PACKAGES.TXT to a JSON DB
+
--target is to choose between Salix or Slackware repository.
  -f | --fsj64      convert Salix64 PACKAGES.TXT to a JSON DB
+
It can be:
  -g | --gslj32      convert Slackware PACKAGES.TXT to a JSON DB
+
  * salix32: salix i486 repository
  -i | --islj64      convert Slackware64 PACKAGES.TXT to a JSON DB
+
  * 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 ;) )