Linux Commands Examples

A great documentation place for Linux commands

dpkg-vendor

queries information about distribution vendors

Synopsis

dpkg-vendor [option...] command


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
source
            
UBUNTU = $(shell dpkg-vendor --derives-from Ubuntu && echo yes)
%:
dh $@
override_dh_auto_test:
# Disabled: Incompelete in po/

description

dpkg-vendor is a tool to query information about vendors listed in /etc/dpkg/origins. /etc/dpkg/origins/default contains information about the current vendor.

options

--vendor vendor

Assumes the current vendor is vendor instead of discovering it with the DEB_VENDOR environment variable or /etc/dpkg/origins/default.

commands

--is vendor

Exits with 0 if the current vendor is vendor. Otherwise exits with non-zero.

--derives-from vendor

Exits with 0 if the current vendor distribution is a derivative of vendor, otherwise exits with non-zero. It uses the "Parent" field to browse all ancestors of the current vendor.

--query field

Print on standard output the value of the vendor-specific field for the current vendor.

--help

Show the usage message and exit.

--version

Show the version and exit.

environment

DEB_VENDOR

This setting defines the current vendor. If not set, it will discover the current vendor by reading /etc/dpkg/origins/default.


see also

deb-origin.

How can this site be more helpful to YOU ?


give  feedback