rpmdb

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// rpmTag_e
	// ref. https://github.com/rpm-software-management/rpm/blob/rpm-4.11.3-release/lib/rpmtag.h#L28
	RPMTAG_NAME    = 1000
	RPMTAG_VERSION = 1001
	RPMTAG_RELEASE = 1002
	RPMTAG_EPOCH   = 1003
	RPMTAG_ARCH    = 1022
	RPMTAG_SIZE    = 1009

	//rpmTagType_e
	// ref. https://github.com/rpm-software-management/rpm/blob/rpm-4.11.3-release/lib/rpmtag.h#L362
	RPM_NULL_TYPE         = 0
	RPM_CHAR_TYPE         = 1
	RPM_INT8_TYPE         = 2
	RPM_INT16_TYPE        = 3
	RPM_INT32_TYPE        = 4
	RPM_INT64_TYPE        = 5
	RPM_STRING_TYPE       = 6
	RPM_BIN_TYPE          = 7
	RPM_STRING_ARRAY_TYPE = 8
	RPM_I18NSTRING_TYPE   = 9
)

Variables

View Source
var (
	// docker run --rm -it centos:6 bash
	// rpm -qa --queryformat "\{%{EPOCH}, \"%{NAME}\", \"%{VERSION}\", \"%{RELEASE}\", \"%{ARCH}\"\, %{SIZE}\},\n" | sed "s/(none)/0/g"
	CentOS6Plain = []PackageInfo{}/* 129 elements not displayed */

	// docker run --rm -it centos:6 bash
	// yum groupinstall -y "Development tools"
	// rpm -qa --queryformat "\{%{EPOCH}, \"%{NAME}\", \"%{VERSION}\", \"%{RELEASE}\", \"%{ARCH}\"\, %{SIZE}\},\n" | sed "s/^{(none)/{0/g" | sed "s/(none)//g"
	CentOS6DevTools = []PackageInfo{}/* 263 elements not displayed */

	// docker run --rm -it centos:6 bash
	// yum groupinstall -y "Development tools"
	// yum install -y rpm-build redhat-rpm-config asciidoc hmaccalc perl-ExtUtils-Embed pesign xmlto
	// yum install -y audit-libs-devel binutils-devel elfutils-devel elfutils-libelf-devel java-devel
	// yum install -y ncurses-devel newt-devel numactl-devel pciutils-devel python-devel zlib-devel
	// yum install -y net-tools bc
	// rpm -qa --queryformat "\{%{EPOCH}, \"%{NAME}\", \"%{VERSION}\", \"%{RELEASE}\", \"%{ARCH}\"\, %{SIZE}\},\n" | sed "s/^{(none)/{0/g" | sed "s/(none)//g"
	CentOS6Many = []PackageInfo{}/* 326 elements not displayed */

	// docker run --rm -it centos:7 bash
	// rpm -qa --queryformat "\{%{EPOCH}, \"%{NAME}\", \"%{VERSION}\", \"%{RELEASE}\", \"%{ARCH}\"\, %{SIZE}\},\n" | sed "s/(none)/0/g"
	CentOS7Plain = []PackageInfo{}/* 146 elements not displayed */

	// docker run --rm -it centos:7 bash
	// yum groupinstall -y "Development tools"
	// rpm -qa --queryformat "\{%{EPOCH}, \"%{NAME}\", \"%{VERSION}\", \"%{RELEASE}\", \"%{ARCH}\"\, %{SIZE}\},\n" | sed "s/^{(none)/{0/g" | sed "s/(none)//g"
	CentOS7DevTools = []PackageInfo{}/* 266 elements not displayed */

	// docker run --rm -it centos:7 bash
	// yum groupinstall -y "Development tools"
	// yum install -y rpm-build redhat-rpm-config asciidoc hmaccalc perl-ExtUtils-Embed pesign xmlto
	// yum install -y audit-libs-devel binutils-devel elfutils-devel elfutils-libelf-devel java-devel
	// yum install -y ncurses-devel newt-devel numactl-devel pciutils-devel python-devel zlib-devel
	// yum install -y net-tools bc
	// rpm -qa --queryformat "\{%{EPOCH}, \"%{NAME}\", \"%{VERSION}\", \"%{RELEASE}\", \"%{ARCH}\"\, %{SIZE}\},\n" | sed "s/^{(none)/{0/g" | sed "s/(none)//g"
	CentOS7Many = []PackageInfo{}/* 416 elements not displayed */

	// docker run --rm -it centos/python-35-centos7 bash
	// rpm -qa --queryformat "\{%{EPOCH}, \"%{NAME}\", \"%{VERSION}\", \"%{RELEASE}\", \"%{ARCH}\"\, %{SIZE}\},\n" | sed "s/^{(none)/{0/g" | sed "s/(none)//g"
	CentOS7Python35 = []PackageInfo{}/* 344 elements not displayed */

	// docker run --rm -it centos/httpd-24-centos7 bash
	// rpm -qa --queryformat "\{%{EPOCH}, \"%{NAME}\", \"%{VERSION}\", \"%{RELEASE}\", \"%{ARCH}\"\, %{SIZE}\},\n" | sed "s/^{(none)/{0/g" | sed "s/(none)//g"
	CentOS7Httpd24 = []PackageInfo{}/* 230 elements not displayed */

)

Functions

func Htonl

func Htonl(val int32) int32

func HtonlU

func HtonlU(val uint32) uint32

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

func (*DB) ListPackages

func (d *DB) ListPackages() ([]*PackageInfo, error)

func (*DB) Open

func (d *DB) Open(path string) error

type PackageInfo

type PackageInfo struct {
	Epoch   int
	Name    string
	Version string
	Release string
	Arch    string
	Size    int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL