dpkg-vendor.1 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. .\" dpkg manual page - dpkg-vendor(1)
  2. .\"
  3. .\" Copyright © 2009 Raphaël Hertzog <hertzog@debian.org>
  4. .\"
  5. .\" This is free software; you can redistribute it and/or modify
  6. .\" it under the terms of the GNU General Public License as published by
  7. .\" the Free Software Foundation; either version 2 of the License, or
  8. .\" (at your option) any later version.
  9. .\"
  10. .\" This is distributed in the hope that it will be useful,
  11. .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. .\" GNU General Public License for more details.
  14. .\"
  15. .\" You should have received a copy of the GNU General Public License
  16. .\" along with this program. If not, see <https://www.gnu.org/licenses/>.
  17. .
  18. .TH dpkg\-vendor 1 "2011-11-10" "Debian Project" "dpkg suite"
  19. .SH NAME
  20. dpkg\-vendor \- queries information about distribution vendors
  21. .
  22. .SH SYNOPSIS
  23. .B dpkg\-vendor
  24. .RI [ option "...] " command
  25. .
  26. .SH DESCRIPTION
  27. \fBdpkg\-vendor\fP is a tool to query information about vendors listed in
  28. \fB/etc/dpkg/origins\fP. \fB/etc/dpkg/origins/default\fP contains
  29. information about the current vendor.
  30. .
  31. .SH COMMANDS
  32. .TP
  33. .BI \-\-is " vendor"
  34. Exits with \fB0\fP if the current vendor is \fIvendor\fP. Otherwise exits
  35. with non-zero.
  36. .TP
  37. .BI \-\-derives\-from " vendor"
  38. Exits with \fB0\fP if the current vendor distribution is a derivative of
  39. \fIvendor\fP, otherwise exits with non-zero. It uses the \fBParent\fP field
  40. to browse all ancestors of the current vendor.
  41. .TP
  42. .BI \-\-query " field"
  43. Print on standard output the value of the vendor-specific \fIfield\fP for
  44. the current vendor.
  45. .TP
  46. .B \-\-help
  47. Show the usage message and exit.
  48. .TP
  49. .B \-\-version
  50. Show the version and exit.
  51. .
  52. .SH OPTIONS
  53. .TP
  54. .BI \-\-vendor " vendor"
  55. Assumes the current vendor is \fIvendor\fP instead of discovering it
  56. with the \fBDEB_VENDOR\fP environment variable or
  57. \fB/etc/dpkg/origins/default\fP.
  58. .
  59. .SH ENVIRONMENT
  60. .TP
  61. \fBDEB_VENDOR\fP
  62. This setting defines the current vendor. If not set, it will discover the
  63. current vendor by reading \fB/etc/dpkg/origins/default\fP.
  64. .
  65. .SH SEE ALSO
  66. .BR deb\-origin (5).