info > Dpkg::Conf

🆔 NAME

Dpkg::Conf — parse dpkg configuration files

🚀 Quick Reference

Use CaseCommandDescription
🆕 Create a new config parser$conf = Dpkg::Conf->new(%opts)Create a new Dpkg::Conf object; allows short options if allow_short is true.
📄 Load a single config file$conf->load($file)Read options from a file, returns number of options parsed.
⚙️ Load system config$conf->load_system_config($file)Read options from a system configuration file.
👤 Load user config$conf->load_user_config($file)Read from user config (XDG or $HOME/.config/dpkg/).
🔗 Load system + user config$conf->load_config($file)Read from both system and user config files.
📂 Parse from filehandle$conf->parse($fh)Parse options from an open filehandle; accumulates on multiple calls.
🔍 Filter options$conf->filter(%opts)Remove or keep options based on callback.
💾 Save config file$conf->save($file)Write the options back to a file.
📝 Get options as array@options = $conf->get_options()Return the list of options (like @ARGV).
📤 Output string or file$conf->output([$fh])Write to filehandle and/or return string representation.

📖 DESCRIPTION

The Dpkg::Conf object can be used to read options from a configuration file. It can export an array that can then be parsed exactly like @ARGV.

⚙️ METHODS

📜 CHANGES

Version 1.04 (dpkg 1.20.0)

Version 1.03 (dpkg 1.18.8)

Version 1.02 (dpkg 1.18.5)

Version 1.01 (dpkg 1.15.8)

Version 1.00 (dpkg 1.15.6)

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

Dpkg::Conf
🆔 NAME 🚀 Quick Reference 📖 DESCRIPTION ⚙️ METHODS 📜 CHANGES
Version 1.04 (dpkg 1.20.0) Version 1.03 (dpkg 1.18.8) Version 1.02 (dpkg 1.18.5) Version 1.01 (dpkg 1.15.8) Version 1.00 (dpkg 1.15.6)

Generated by phpman v4.9.26-5-g7740029 Author: Che Dong Under GNU General Public License
2026-08-25 14:11 @216.73.217.127
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!