---
name: "DPKG::Parse::Available"
section: "3pm"
platform: "linux"
package: "libdpkg-parse-perl"
version: "0.03-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/DPKG::Parse::Available"
---

# DPKG::Parse::Available(3pm)

Parse the "available" file

## NAME

DPKG::Parse::Available - Parse the "available" file

## SYNOPSIS

```
    use DPKG::Parse::Available;
    my $available = DPKG::Parse::Available->new;
    while (my $entry = $available->next_package) {
        print $entry->package . " " . $entry->version . "\n";
    }
    my $postfix = $available->get_package('name' => 'postfix');
```

## DESCRIPTION

DPKG::Parse::Available parses a dpkg "available" file and turns each entry into a DPKG::Parse::Entry object.  By default, it uses the Debian default location of "/var/lib/dpkg/available".

See DPKG::Parse for more information on the get\_package and next\_package methods.

See DPKG::Parse::Entry for more information on the entry objects.

## METHODS

- new('filename' =\> '/var/lib/dpkg/available')

  Creates a new DPKG::Parse::Available object.  By default, it tries to open /var/lib/dpkg/available.

## SEE ALSO

DPKG::Parse, DPKG::Parse::Entry

## AUTHOR

Adam Jacob, `"holoway@cpan.org"`

## LICENSE

This library is free software. You can redistribute it and/or modify it under the same terms as perl itself.
