Class RPM::Package
In: lib/rpm/package.rb
Parent: Object

Methods

Public Class methods

@visibility private

@visibility private

@visibility private

Public Instance methods

Access a header entry @param [Number] tag Tag to return @return [] Value of the entry @example

    pkg => #<RPM::Package name="xmlgraphics-fop", version=#<RPM::Version v="1.0", r="22.4">>
    pkg[:name] => "xmlgraphics-fop"

  or if you have the old ruby-rpm compat loaded

    require 'rpm/compat'
    pkg[RPM::TAG_NAME] => "xmlgraphics-fop"

@return [String, Fixnum, Array<String>, Array<Fixnum>, nil]

  The value of the entry

Add a binary value to the package header @param [Number] tag Tag @param [String] val Value

Add a dependency to the package header @param [Dependency] dep Dependency to add

Add a int32 value to the package header @param [Number] tag Tag @param [Number] val Value

Add a binary value to the package header @param [Number] tag Tag @param [String] val String to add

Add a list of strings to the package header @param [Number] tag Tag @param [Array<String>] val Strings to add

@return [String] This package architecture

@return [Array<RPM::Changelog>] changelog of the package as an array

@return [Array<RPM::Conflicts>] Conflicts list for this package

Deletes a tag of the package header @param [Number] tag Tag

@return [Array<RPM::Dependency>] Dependencies for klass @example

   dependencies(RPM::Provide, :providename, :provideversion, :provideflags)

@visibility private

@return [Array<RPM::File>] File list for this package

Create a new package object from data @param [String] str Header data @return [Package]

@return [String] This package name

@return [Array<RPM::Obsolete>] Obsoletes list for this package

@return [Array<RPM::Provide>] Provides list for this package

@return [RPM::C::Header] header pointer @visibility private

@return [Array<RPM::Require>] Requires list for this package

@return [Number] This package signature

@return a formated string @example

  pkg.sprintf("%{name}") => "apache2"

String representation of the package: "name-version-release-arch" @return [String]

@return [Version] Version for this package

[Validate]