Description
Tools for producing and manipulating Software Identification (SWID) Tags.
Note that rpm2swidtag
is packaged as swid-tools
in Fedora, with dnf-plugin-swidtags
subpackage.
### rpm2swidtag bash
### rpm2swidtag bash | swidq -p - -i
### rpm2swidtag --output-dir /usr/lib/swidtag --tag-creator example.com -a
### ln -s /usr/lib/swidtag/example.com /etc/swid/swidtags.d/generated
swidq -n bash -l
### rpm2swidtag [ options ] --repo /path/to/local/yum/dnf/repo
### # and with DNF rpm2swidtag plugin enabled, the SWID tag from the repository metadata will be placed under /usr/lib/swidtag/*/
swid_generator swid --full --pretty --package bash
package-cve-download-xml # will store data in dbs/ subdirectory
package-cve-lookup <( swid_generator swid --package bzip2 ) dbs
swidval -a /usr/lib/swidtag/fedoraproject.org/org.fedoraproject.Fedora-28-x86_64.swidtag
Installation Instructions
Built from
- rpm2swidtag (only on Fedoras as it requires Python 3)
- swid_generator .spec repo
- python2-LibScanner-cli / LibScanner .spec repo
- swidval-binary .spec repo
- distro-swidtag
To install the distro swidtag, use package name appropriate for your system:
yum install -y rhel-swidtag
# dnf install -y fedora-swidtag
Note that Fedora 29+ already ships distribution SWID tag in /usr/lib/swidtag/fedoraproject.org/org.fedoraproject.Fedora-<version>.swidtag
.
To install python2-LibScanner-cli on RHEL 7, enable EPEL, for example with
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Active Releases
The following unofficial repositories are provided as-is by owner of this project. Contact the owner directly for bugs or issues (IE: not bugzilla).
Release | Architectures | Repo Download |
---|---|---|
EPEL 7 | x86_64 (979)* | EPEL 7 (347 downloads) |
Fedora 38 | i386 (70)*, x86_64 (75)* | Fedora 38 (0 downloads) |
Fedora 39 | i386 (56)*, x86_64 (69)* | Fedora 39 (45 downloads) |
Fedora 40 | i386 (47)*, x86_64 (51)* | Fedora 40 (35 downloads) |
Fedora 41 | i386 (20)*, x86_64 (23)* | Fedora 41 (10 downloads) |
Fedora rawhide | i386 (702)*, x86_64 (862)* | Fedora rawhide (344 downloads) |
* Total number of downloaded packages.
Quick Enable
#> dnf copr enable adelton/swid
More info about enabling Copr repositories