swidGenerator is an open source Python-based tool written by the HSR students Danilo Bargen, Christian Fässler and Jonas Furrer which is able to generate the new ISO/IEC 19770-2:2014 Software Identification (SWID) tag format for all installed software packages managed by the Linux dpkg and rpm package managers.
and the swid_generator executable program usually installed in /usr/local/bin becomes available.
By default the regid.2004-03.org.strongswan regid is used as the tagcreator.
The --doc-separator <separator string> option allows to define a single character or a character string separating the individual Software IDs.
For the last example the output of the dpkg package manager on an Ubuntu 13.10 platform was used.