info > Dpkg::Index

Not found locally for Dpkg::Index. Try Google search

📄 NAME

Dpkg::Index - generic index of control information

🚀 Quick Reference

Use CaseCommandDescription
Create a new indexDpkg::Index->new(%opts)Creates a new empty index with optional options.
Add an item$index->add($item, [$key])Add an item to the index; key auto-generated if omitted.
Parse a filehandle$index->parse($fh, $desc)Reads filehandle and creates all items.
Load a file$index->load($file)Reads file (supports compressed) and creates items.
Retrieve by key$index->get_by_key($key)Get item by key or undef.
Get keys matching criteria$index->get_keys(%criteria)Returns keys of items matching field/value criteria.
Get items matching criteria$index->get(%criteria)Returns all items matching criteria.
Remove by key$index->remove_by_key($key)Remove item identified by key.
Remove items matching criteria$index->remove(%criteria)Returns and removes items matching criteria.
Merge another index$index->merge($other_index, %opts)Merge entries from another index.
Sort the index$index->sort(\&sortfunc)Sort items; defaults to alphabetic by key.
Output as string$index->output([$fh])Get string representation; optionally print to filehandle.
Save to file$index->save($file)Write index to file (auto-compressed).

📝 DESCRIPTION

This class represent a set of Dpkg::Control objects.

⚙️ METHODS

📜 CHANGES

🔖 Version 2.01 (dpkg 1.20.6)

New option: Add new "item_opts" option.

🔖 Version 2.00 (dpkg 1.20.0)

Change behavior: The "unique_tuple_key" option now defaults to true.

🔖 Version 1.01 (dpkg 1.19.0)

New option: Add new "unique_tuple_key" option to $index->set_options() to set better default "get_key_func" options, which will become the default behavior in 1.20.x.

🔖 Version 1.00 (dpkg 1.15.6)

Mark the module as public.

1.21.1 2025-09-09 Dpkg::Index(3perl)

Dpkg::Index
📄 NAME 🚀 Quick Reference 📝 DESCRIPTION ⚙️ METHODS 📜 CHANGES
🔖 Version 2.01 (dpkg 1.20.6) 🔖 Version 2.00 (dpkg 1.20.0) 🔖 Version 1.01 (dpkg 1.19.0) 🔖 Version 1.00 (dpkg 1.15.6)

Generated by phpman v4.10.0-7-g98e9fd5 Author: Che Dong Under GNU General Public License
2026-09-09 12:24 @2600:1f28:365:80b0:60b0:dfa5:fbc9:9f8f
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Valid XHTML 1.0 Transitional!Valid CSS!