---
name: "Cupt::Cache::BinaryVersion"
section: "3pm"
platform: "linux"
package: "libcupt-perl"
version: "1.5.14.1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/Cupt::Cache::BinaryVersion"
---

# Cupt::Cache::BinaryVersion(3pm)

store info about specific version of deb binary package

## NAME

Cupt::Cache::BinaryVersion - store info about specific version of deb binary package

## FIELDS

### available\_as

```
  {
    'release' => $release_info
    'filename' => download URI appendage
  }
```

See Release info in Cupt::Cache.

### package\_name

name of the package, string, defined in Debian Policy, X3.1

### priority

priority, string, defined in Debian Policy, X5.6.6

### section

section, string, defined in Debian Policy, X5.6.5, can be undef

### installed\_size

size of unpacked archive in bytes

### maintainer

maintainer of the package, string

### architecture

binary architecture of the package, string, defined in Debian Policy, X5.6.8

### source\_package\_name

name of the corresponding source package, string, the same rules as for package\_name.

### version\_string

version string, defined in Debian Policy, X5.6.12

### source\_version\_string

version string of the corresponding source package, the same rules as for version\_string

### essential

is the version essential, boolean, defined in Debian Policy, X5.6.9

### depends

\[ relation\_expression... \]

Debian Policy, X7.2, 'Depends'

### recommends

\[ relation\_expression... \]

Debian Policy, X7.2, 'Recommends'

### suggests

\[ relation\_expression... \]

Debian Policy, X7.2, 'Suggests'

### conflicts

\[ relation\_expression... \]

Debian Policy, X7.2, 'Conflicts'

### breaks

\[ relation\_expression... \]

Debian Policy, X7.2, 'Breaks'

### enhances

\[ relation\_expression... \]

Debian Policy, X7.2, 'Enhances'

### provides

\[ package\_name... \]

Debian Policy, X7.2, 'Provides'

### replaces

\[ relation\_expression... \]

Debian Policy, X7.2, 'Replaces'

### pre\_depends

\[ relation\_expression... \]

Debian Policy, X7.2, 'Pre-Depends'

### size

size of binary archive in bytes

### md5sum

MD5 hash sum of the binary archive, can be undef

### sha1sum

SHA1 hash sum of the binary archive, can be undef

### sha256sum

SHA256 hash sum of the binary archive, can be undef

### short\_description

short description of the version, string, can be undef

### long\_description

long description of the version, multi-line string, can be undef

### task

task which the package belongs to, string, can be undef

### tags

tags list, string, can be undef

### others

hash entry that contains other fields found in the version entry in form { `$name` =\> `$value` }.

## FLAGS

### o\_no\_parse\_relations

Option to don't parse dependency relation between packages, can speed-up parsing the version if this info isn't needed. Off by default.

### o\_no\_parse\_info\_onlys

Option to don't parse 'Maintainer', 'Description', 'Tag', 'Homepage', 'Section', can speed-up parsing the version if this info isn't needed. Off by default.

## METHODS

### new

creates an Cupt::Cache::BinaryVersion

Parameters:

*initializer\_argument* - \[ `$package_name`, *fh*, *offset*, *ref\_release\_info* \]

where

*fh* - file handle to opened file that contains version entry

*offset* - offset in bytes to locate version entry in *fh*, may include 'Package:' line or not

*ref\_release\_info* - reference to release info

### uris

method, returs available URIs to download the .deb file.

Returns:

array of *URI entry*s.

where:

*URI entry* - { 'download\_uri' =\> *download\_uri*, 'base\_uri' =\> *base\_uri*, 'appendage' =\> *appendage* }

*download\_uri* - full URI to download

*base\_uri* - base URI (as specified in sources.list)

*appendage* - string to append to base URI to compute *download\_uri*, contains 'Filename' property of package entries.

### is\_signed

method, returns whether this version has signed source or not

### is\_installed

method, returns whether this version is installed in the system or not
