Dpkg::Vendor(3perl)
okay so this is the Dpkg::Vendor(3perl) page from libdpkg-perl β the one that gets you access to some vendor specific information, bestie π
β¨
πΈ NAME πΈ
Dpkg::Vendor β get access to some vendor specific information. Thatβs the whole name, and honestly? iconic π
π¦ DESCRIPTION π¦
The files in $Dpkg::CONFDIR/origins/ can provide information about various vendors who are providing Debian packages. Currently those files look like this:
Vendor: Debian
Vendor-URL: https://www.debian.org/
Bugs: debbugs://bugs.debian.org
If the vendor derives from another vendor, the file should document the relationship by listing the base distribution in the Parent field:
Parent: Debian
The file should be named according to the vendor name. The usual convention is to name the vendor file using the vendor name in all lowercase, but some variation is permitted. Namely, spaces are mapped to dashes (-), and the file can have the same casing as the Vendor field, or it can be capitalized. Lowkey flexible, highkey specific π«Ά
β¨ FUNCTIONS β¨
hereβs the function lineup, bestie β signatures stay exactly as-is:
$dir = get_vendor_dir()β Returns the current dpkg origins directory name, where the vendor files are stored. π$ctrl = get_vendor_info([$name])β Returns aDpkg::Controlobject with the information parsed from the corresponding vendor file in$Dpkg::CONFDIR/origins/. If$nameis omitted, it will use$Dpkg::CONFDIR/origins/default, which is supposed to be a symlink to the vendor of the currently installed operating system. Returnsundefif thereβs no file for the given vendor. π$name = get_vendor_file([$name])β Check if thereβs a file for the given vendor and returns its name. The vendor filename will be derived from the vendor name, by replacing any number of non-alphanumeric characters (that is[^A-Za-z0-9]) into-, then the resulting name will be tried in sequence by:- lower-casing it
- keeping it as is
- lower-casing then capitalizing it
- capitalizing it
$name = get_current_vendor()β Returns the name of the current vendor. IfDEB_VENDORis set, it uses that first, otherwise it falls back to parsing$Dpkg::CONFDIR/origins/default. If that file doesnβt exist, it returnsundef. π$object = get_vendor_object($name)β Return theDpkg::Vendor::*object of the corresponding vendor. If$nameis omitted, return the object of the current vendor. If no vendor can be identified, then return theDpkg::Vendor::Defaultobject. The module name will be derived from the vendor name, by splitting parts around groups of non alphanumeric character (that is[^A-Za-z0-9]) separators, by either capitalizing or lower-casing and capitalizing each part and then joining them without the separators. So the expected casing is based on the one from theVendorfield in the origins file. π§run_vendor_hook($hookid, @params)β Run a hook implemented by the current vendor object. π₯
π CHANGES π
Version 1.03 (dpkg 1.22.12)
- Obsolete behavior:
get_vendor_file()andget_vendor_object()no longer support the deprecated behavior from 1.02. π
Version 1.02 (dpkg 1.21.10)
- Deprecated behavior:
get_vendor_file()loading vendor files with no special characters remapping.get_vendor_object()loading vendor module names with no special character stripping. π
Version 1.01 (dpkg 1.17.0)
- New function:
get_vendor_dir(). β¨
Version 1.00 (dpkg 1.16.1)
- Mark the module as public. π
π SEE ALSO π
deb-origin(5) β thatβs the cross-reference, iykyk π«Ά
thatβs the whole page, bestie β from libdpkg-perl, version 1.23.11-dirty, dated 2026-09-09, page Dpkg::Vendor(3perl). k bye, slay your vendors π
π
π¦ where this page comes from
- arch rolling: dpkg 1.23.11-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms