LINTIAN(1)
okay bestie, gather round ๐ you're looking at lintian(1), aka the Debian Package Checker โ she's the friend who reads every single line of your package so you don't have to, and she will tell you what's wrong. no cap. let's go ๐ฆ
๐ธ NAME ๐ธ
lintian โ your girl for static analysis of Debian packages ๐
โจ SYNOPSIS โจ
lintian [action] [options] [packages] ...
๐ DESCRIPTION ๐
So what does she actually do? Lintian dissects Debian packages and reports bugs and policy violations. Like, she takes your package apart piece by piece and is like "girl, this is a problem." She's got automated checks for so many aspects of Debian policy, plus a bunch of checks for common errors that just keep happening to everyone. ๐ซถ
Now, the way you hand her stuff to look at? Two ways to specify binary, udeb or source packages for her to process:
- by file name โ the
.debfile for a binary package, or the.dscfile for a source package - or by naming a
.changesfile ๐
If you specify a .changes file, Lintian will process all the packages listed in that file. This is so convenient when you're checking a new package before uploading it โ highly recommend, it's giving pre-flight check energy โ๏ธโจ
If you specify packages to be checked, or you use the option --packages-from-file, the packages you requested will be processed. Otherwise, if debian/changelog exists, it gets parsed to figure out the name of the .changes file to look for in the parent directory. The details live in "CHECKING LAST BUILD" โ go look if you're curious ๐
๐ OPTIONS ๐
๐
Actions of the lintian command
(Only one action can be specified per invocation โ pick a lane, bestie, she's monogamous ๐)
-c,--checkโ Run all the checks over the specified packages. This is the default action, so if you just vibe and don't specify anything, this is what happens โจ-C chk1,chk2,...,--check-part chk1,chk2,...โ Run only the checks you named. You can either specify the name of the check script or the abbreviation, whichever you feel like. For the deets, see the "CHECKS" section below ๐-F,--ftp-master-rejectsโ Run only the checks that issue tags that result in automatic rejects from the Debian upload queue ๐ซ๐ฆ Heads up: the list of such tags gets refreshed with each Lintian release, so it may be slightly out of date if it changed recently. She's doing her best ๐ญ
This is implemented via a profile, so this option cannot be used together with --profile โ they don't get along, it's giving exes at the same party ๐
-T tag1,tag2,...,--tags tag1,tag2,...โ Run only the checks that issue the requested tags. The tests for other tags within the check scripts will still be run, but the tags themselves will not be issued โ she does the work, she just doesn't say it out loud ๐คซ
With this option, all tags listed will be displayed regardless of the display settings. Iconic, honestly.
--tags-from-file filenameโ Same functionality as--tags, but the list of tags gets read from a file instead ๐ Blank lines and lines beginning with#are ignored. All other lines are taken to be tag names, or comma-separated lists of tag names, to (potentially) issue.
With this option, all tags listed will be displayed regardless of the display settings. Same deal as above ๐
-X chk1,chk2,...,--dont-check-part chk1,chk2,...โ Run all but the specified checks. Yes, she's a "run everything except this one thing" girlie ๐ You can either specify the name of the check script or the abbreviation. For the deets, see the "CHECKS" section below.
๐ General options
-h,--helpโ Display usage information and exit. Your classic "help me bestie" move ๐ซถ-q,--quietโ Suppress all informational messages, including override comments (the ones normally shown with--show-overrides) ๐ค
This option is silently ignored if --debug is given โ so if you're debugging, quiet mode does not exist, periodt. Otherwise, if both --verbose and --quiet are used, the last of these two options takes effect (last one wins, that's the rule ๐).
This option overrides the verbose and the quiet variable in the configuration file. In the configuration file, this option is enabled by using the quiet variable. The verbose and quiet variables may not both appear in the config file โ one or the other, she's not doing drama today ๐
-v,--verboseโ Display verbose messages. She's chatty, we love her ๐ฌ
If --debug is used, this option is always enabled. Otherwise, if both --verbose and --quiet are used (and --debug is not used), the last of these two options takes effect.
This option overrides the quiet variable in the configuration file. In the configuration file, this option is enabled by using the verbose variable. And again: the verbose and quiet variables may not both appear in the config file โจ
-d,--debugโ Display debug messages. ๐
This option implies --verbose โ she can't debug quietly, it's not in her nature.
-V,--versionโ Display the lintian version number and exit. Say hi, know who you're dealing with ๐--print-versionโ Print the unadorned version number and exit. No frills, no garnish, just the number. So minimal of her ๐ธ
๐ฆ Behavior options for lintian
--color (auto|never|always|html)โ Whether to colorize tags in lintian output based on their visibility ๐จ The default isauto, which will use color only if the output is going to a terminal.neverwill never use color,alwayswill always use color, andhtmlwill use HTML<span>tags with a color style attribute (instead of ANSI color escape sequences) โ yes bestie, HTML output, she contains multitudes.
This option overrides the color variable in the configuration file.
--hyperlinks (on|off)โ Shows text-based hyperlinks to tag descriptions onlintian.debian.orgon terminals that support it ๐ The default isonfor terminals that support it, unless the user selected--color never. This currently only works in GNOME Terminal โ so, like, a very specific vibe.
This option overrides the color variable in the configuration file.
--default-display-levelโ Reset the current display level back to the default ๐ Basically, this option behaves exactly like passing the following options to lintian:
-L ">=warning"
The primary use for this is to make sure lintian's display level has been reset to the built-in default values. Notably, this can be used to override display settings earlier on the command-line, or in the lintian configuration file. So it's giving "reset the vibes, start fresh" โจ
Further changes to the display level can be done after this option. Example: --default-display-level --display-info gives you the default display level plus informational (I:) tags ๐
--display-source Xโ Only display tags from the source X (e.g. the Policy Manual or the Developer Reference). This option can be used multiple times to add additional sources โ stack 'em up, bestie ๐ Example sources arepolicyordevref, being the Policy Manual and the Developer Reference (respectively).
The entire list of sources can be found in $LINTIAN_BASE/data/output/manual-references ๐๏ธ
-E,--display-experimental,--no-display-experimentalโ Control whether to display experimental (X:) tags. They are normally suppressed ๐
If a tag is marked experimental, this means the code that generates this message is not as well tested as the rest of Lintian, and might still give surprising results. Feel free to ignore Experimental messages that do not seem to make sense โ no guilt, fr fr. Though of course bug reports are always welcome (particularly if they include fixes ๐).
These options override the display-experimental variable in the configuration file.
--fail-on {error | warning | info | pedantic | experimental | override | none}โ Causes lintian to exit with a program status of2for the given conditions ๐ This option can be a comma-separated list, or it may be specified multiple times.
The default is error. Also, warning does not imply error. Please specify both if you want both โ she's not a mind reader, she's a static analysis tool ๐ซ
-i,--infoโ Print explanatory information about each problem discovered, in addition to the lintian error tags ๐ To print a long tag description without running lintian, seelintian-explain-tags(1)or check the website athttps://lintian.debian.org.
To negate it, please use --no-info.
This option overrides the info (or no-info) variable in the configuration file.
-I,--display-infoโ Display informational (I:) tags as well. They are normally suppressed. (This is equivalent to-L ">=info".) โญ
This option overrides the display-info variable in the configuration file.
Note:display-levelanddisplay-infomay not both appear in the configuration file. Pick one, girl. ๐
-L [+|-|=][>=|>|=|<|<=][S|C|S/C],--display-level [+|-|=][>=|>|=|<|<=][S|C|S/C]โ Fine-grained selection of tags to be displayed ๐๏ธ It is possible to add, remove or set the levels to display, specifying a visibility (error,warning,info,pedantic, orclassification). The default settings are equivalent to-L ">=warning".
The value consists of 3 parts, where two of them are optional. The parts are:
- modifier operator โ How to affect the current display level. Can be one of add to (
+), remove from (-) or set to (=) the display level(s) denoted by the following selection.
The default value is = (i.e. set the display level).
- set operator โ The visibility to be selected. The operator can be one of
>=,>,=,<or<=. As an example, this can be used to select all info (and more serious) tags via>=info.
The default value is =, which means "exactly" the given visibility.
This option overrides the display-level variable in the configuration file. The value of the display-level in the configuration file should be space separated entries in the same format as passed via command-line.
Note:display-levelmay not be used withdisplay-infoorpedanticin the configuration file.
-o,--no-overrideโ Ignore all overrides provided by the package. This option will overrule--show-overridesโ sorry not sorry, overrides are cancelled ๐ซ
This option overrides the override variable in the configuration file.
--pedanticโ Display pedantic (P:) tags as well. They are normally suppressed. (This is equivalent to-L "+=pedantic".) ๐ง
Pedantic tags are Lintian at her most pickiest, and include checks for particular Debian packaging styles and checks that many people disagree with. Expect false positives, and expect Lintian tags that you don't consider useful if you use this option. Adding overrides for pedantic tags is probably not worth the effort โ she's telling you this for your own good ๐ญ
This option overrides the pedantic variable in the configuration file.
Note:pedanticanddisplay-levelmay not both appear in the configuration file.
--profile vendor[/prof]โ Use the profile from vendor (or the profile with that name). If the profile name does not contain a slash, the default profile for that vendor is chosen.
As an example, if you are on Ubuntu and want to use Lintian's Debian checks, you can use:
--profile debian
Likewise, on a Debian machine you can use this to request the Ubuntu checks. Cross-vibing, we love to see it ๐
If the token {VENDOR} appears in the profile name, lintian will substitute the token with a vendor name to find the profile. Lintian uses Dpkg::Vendor to determine the best vendor to use (the closer to the current vendor, the better). This is mostly useful for people implementing their own checks on top of Lintian โ DIY icon behavior ๐
If not specified, the default value is {VENDOR}/main.
Please refer to the Lintian User Manual for the full documentation of profiles ๐๐
more coming, bestie โ stay tuned ๐
--show-overridesโ bestie this one decides whether tags that got overridden still show up in your output or not ๐--show-overrideswill show the overridden tags and mark them as overridden (using anOcode) โจ- If the overridden tags are being shown, the related override comments get displayed too (unless
--quietis on, in which case shhh ๐). Pls refer to the Lintian User Manual for the docs on how lintian relates comments to a given override ๐ - Wanna negate it, i.e. suppress the showing of overridden tags? Use
--no-show-overrides๐ - This option overrides the
show-overrides(orno-show-overrides) variable in the configuration file. it's giving "command line said so, periodt" ๐
--suppress-tags tag1,tag2,...โ suppress the listed tags ๐ โโ๏ธ They will not be reported if they occur and will not affect the exit status of Lintian. no cap, they just vanish โจ- This option can be given multiple times and can be mixed with
--suppress-tags-from-file๐ซถ - You can use it together with
--dont-check-part("Not those checks nor these tags") and--check-part("Only those checks, but not these tags (from those checks)") to further reduce the selection of tags ๐ฏ - When used with
--tags, this option is mostly ignored. lowkey sidelined ๐
- This option can be given multiple times and can be mixed with
--suppress-tags-from-file fileโ suppress all tags listed in the given file ๐ Blank lines and lines beginning with#are ignored. All other lines are taken to be tag names or comma-separated lists of tag names to suppress. The suppressed tags will not be reported if they occur and will not affect the exit status of Lintian ๐ธ- Tags parsed from the file will be handled as if they had been given to the
--suppress-tagsoption (e.g. ignored if--tagsis used) ๐ฆ
- Tags parsed from the file will be handled as if they had been given to the
--tag-display-limit[=NUM]โ by default, lintian limits itself to emitting at most4instances of each tag per processable when STDOUT is a TTY ๐ฅ๏ธ This option specifies that limit โจ- When STDOUT is not a TTY, lintian has no limit. wild. unhinged. no thoughts head empty ๐
- To disable the limit, please use a value of zero
0๐ - This option overrides the
tag-display-limitvariable in the configuration file ๐ง
โ๏ธ Configuration options โ๏ธ
--cfg configfileโ read the configuration from configfile rather than the default locations ๐ This option overrides theLINTIAN_CFGenvironment variable ๐--no-cfgโ do not read any configuration file at all ๐ซ This option overrides the--cfgabove. so iconic, so final ๐--ignore-lintian-envโ ignore all environment variables starting withLINTIAN_๐- This option is mostly useful for applications running lintian for checking packages that do not want the invoking user to affect the result (by setting
LINTIAN_PROFILEetc.) ๐ก๏ธ - Note it does not cause lintian to ignore the entire environment like
TMPDIRorDEB_VENDOR. The latter can affect the default profile (or"{VENDOR}"token for--profile) ๐ - Should usually be combined with
--no-user-dirs(or unsetting$HOMEand allXDG_variables) ๐ซถ
- This option is mostly useful for applications running lintian for checking packages that do not want the invoking user to affect the result (by setting
--include-dir dirโ use dir as an additional"LINTIAN_BASE"๐ The directory is expected to have a similar layout to theLINTIAN_BASE(if it exists), but does not need to be a full self-contained root ๐ฑ- lintian will check this directory for (additional) profiles, data files, support libraries and checks ๐ The latter two imply that Lintian may attempt to load and execute code from this directory โ ๏ธ (yes bestie, that's a real thing, be careful who you point this at)
- This option may appear more than once; each time adding an additional directory. Directories are searched in the order they appear on the command line ๐ข
- The additional directories will be checked after the user directories (though see
--no-user-dirs) and before the coreLINTIAN_BASE๐๏ธ - > Note: This option should be the very first if given. like, FIRST first. don't play ๐จ
-j X,--jobs=Xโ set the limit for how many jobs Lintian will run in parallel ๐โโ๏ธ๐โโ๏ธ This option overrides thejobsvariable in the configuration file โ๏ธ- By default Lintian will use
nprocto determine a reasonable default (or2, if thenprocfails) ๐งฎ so it just kinda figures it out itself, main character energy โจ
- By default Lintian will use
--user-dirs,--no-user-dirsโ by default, lintian will check$HOMEand/etcfor files supplied by the user or the local sysadmin (e.g. config files and profiles) ๐ This default can be disabled (and re-enabled) by using--no-user-dirs(and--user-dirs, respectively) ๐- These options will not affect the inclusion of
LINTIAN_BASE, which is always included. always. no takebacks ๐ - These option can appear multiple times, in which case the last of them to appear determines the result ๐ฏ
- Note that if the intention is only to disable the user's
$HOME, then unsetting$HOMEandXDG_*_HOMEmay suffice. Alternatively,/etccan be "re-added" by using--include-dir(caveat:/etc/lintianrcwill be ignored by this) ๐ง - If the intention is to avoid (unintentional) side-effects from the calling user, then this option could be combined with
--ignore-lintian-env๐ก๏ธ - If for some reason
--no-user-dirscannot be used, then consider unsetting$HOMEand all the$XDG_*variables (not just the$XDG_*_HOMEones) ๐ - > Note: This option should be the very first if given. same energy as above, first or it doesn't count ๐จ
- These options will not affect the inclusion of
๐ ๏ธ Developer/Special usage options ๐ ๏ธ
--allow-rootโ override lintian's warning when it is run with superuser privileges ๐๐ฅ like, you're telling it "yes girl I know what I'm doing"--packages-from-file Xโ the line is read as the path to a file to process (all whitespace is included!) ๐ณ like, ALL of it, don't @ me- If X is
-, Lintian will read the packages from STDIN ๐ฅ
- If X is
--perf-debugโ enable performance related debug logging to STDERR ๐- The data logged and the format used is subject to change with every release. it's unstable bestie, don't build a whole app on it ๐
- Note that some of the information may also be available (possibly in a different format) with the
--debugoption ๐
๐ธ FILES ๐ธ
Lintian looks for its configuration file in the following locations, in this order ๐ฅ:
- The argument given to
--cfg $LINTIAN_CFG$XDG_CONFIG_HOME/lintian/lintianrcXDG_DIR/lintian/lintianrc- Where
XDG_DIRis a directory listed in$XDG_CONFIG_DIRS(or/etc/xdgif$XDG_CONFIG_DIRSis unset) ๐บ๏ธ
- Where
$HOME/.lintianrc- Please consider using the XDG based variant above (usually, in
~/.config) ๐ yes queen, move on
- Please consider using the XDG based variant above (usually, in
/etc/lintianrc
Lintian uses the following directories ๐:
/tmpโ Lintian defaults to creating a temporary lab directory in/tmp๐งช To change the directory used, set theTMPDIRenvironment variable to a suitable directory.TMPDIRcan be set in the configuration file โ๏ธ/usr/share/lintian/checksโ Scripts that check aspects of a package โ/usr/share/lintian/collectionโ Scripts that collect information about a package and store it for use by the check scripts ๐ฆ/usr/share/lintian/dataโ Supporting data used by Lintian checks and for output formatting ๐/usr/share/lintian/libโ Utility scripts used by the other lintian scripts ๐งฐ
For binary packages, Lintian looks for overrides in a file named usr/share/lintian/overrides/<package> inside the binary package, where <package> is the name of the binary package ๐ฆ This is usually created automatically by debhelper from the debian/<package>.lintian-overrides file โจ
For source packages, Lintian looks for overrides in debian/source/lintian-overrides and then in debian/source.lintian-overrides if the first file is not found ๐ต๏ธโโ๏ธ The first path is preferred ๐ See the Lintian User's Manual for the syntax of overrides ๐
Lintian errors in automatically-generated packages (such as xxx-dbgsym) and in the changes file are currently not overrideable. sorry bestie, some things you just gotta live with ๐ญ
๐ CONFIGURATION FILE ๐
The configuration file can be used to specify default values for some options ๐ The general format is:
option = value
All whitespace adjacent to the "=" sign as well as leading and trailing whitespace is ignored ๐งน However whitespace within the value is respected, as demonstrated by this example:
# Parsed as "opt1" with value "val1"
opt1 = val1
# Parsed as "opt2" with value "val2.1 val2.2 val2.3"
opt2 = val2.1 val2.2 val2.3
Unless otherwise specified, no option may appear more than once ๐ซ Lintian will ignore empty lines or lines starting with the #-character ๐ฌ
Generally options will be the long form of the command-line option without the leading dashes ๐ There some exceptions (such as --profile), where Lintian uses the same name as the environment variable ๐
Lintian only allows a subset of the options specified in the configuration file; please refer to the individual options in "OPTIONS" ๐
In the configuration file, all options listed must have a value, even if they do not accept a value on command line (e.g. --pedantic) ๐ง The values "yes", "y", "1", or "true" will enable such an option and "no", "n", "0" or "false" will disable it. Prior to the 2.5.2 release, these values were case sensitive ๐ญ (back in the day they were picky, we respect the journey)
For other options, they generally take the same values as they do on the command line ๐ซ Though some options allow a slightly different format (e.g. --display-level). These exceptions are explained for the relevant options in "OPTIONS" ๐
Beyond command line options, it is also allowed to specify the environment variable "TMPDIR" in the configuration file โ๏ธ
A sample configuration file could look like:
# Sample configuration file for lintian
#
# Set the default profile (--profile)
LINTIAN_PROFILE = debian
# Set the default TMPDIR for lintian to /var/tmp/lintian
# - useful if /tmp is tmpfs with "limited" size.
TMPDIR = /var/tmp/lintian/
# Show info (I:) tags by default (--display-info)
# NB: this cannot be used with display-level
display-info=yes
# Ignore all overrides (--no-override)
# NB: called "override" in the config file
# and has inverted value!
override = no
# Automatically determine if color should be used
color = auto
๐ช EXIT STATUS ๐ช
0โ Normal operation. we love a clean exit, slay ๐1โ Lintian run-time error. An error message is sent tostderr๐ญ2โ Detected a condition specified via the--fail-onoption. This can be used to trigger a non-zero exit value in case of policy violations ๐จ
๐ CHECKING LAST BUILD ๐
okay so bestie, when you run Lintian inside an unpacked package dir and you don't hand it any package selection arguments, it's not gonna just sit there confused ๐
it'll go looking. First it peeks at debian/changelog to figure out the source and version of the package, and then it tries to hunt down a matching .changes file for that source + version combo. detective mode: activated ๐ต๏ธ
Here's the directory search order, no cap:
..โ used bydpkg-buildpackage(1).../build-areaโ used bysvn-buildpackage(1)./var/cache/pbuilder/resultโ used bypbuilder(1)andcowbuilder(1).
And in each one of those dirs, it tries to find a .changes file using these as the architecture, in this order:
$DEB_BUILD_ARCH(ordpkg --print-architecture) โ that's theDEB_BUILD_ARCHenvironment variable; if it's not set,dpkg --print-architecturesteps in instead.$DEB_HOST_ARCHโ theDEB_HOST_ARCHenvironment variable.dpkg --print-foreign-architecturesโ ifdpkg(1)looks like it supports multi-arch, then every architecture thatdpkg --print-foreign-architectureslists gets used, in the order dpkg returns them.multiโ the pseudo architecture used bymergechanges(1).allโ used when building architecture indep packages only (likedpkg-buildpackage -A).sourceโ used for "source only" builds (likedpkg-buildpackage -S).
If a .changes file matching any of those combos exists, Lintian processes the first match exactly as if you'd passed it on the command line. iconic behavior honestly โจ
But if it can't find any .changes file at all? It prints a list of all the locations it tried on STDERR and exits 0. very "I looked everywhere, here's my receipts" of it ๐
๐ EXAMPLES ๐
$ lintian foo.changesโ check the changes file itself, plus any binary, udeb or source package listed in it.$ lintian foo.debโ check binary packagefoogiven byfoo.deb.$ lintian foo.dscโ check source packagefoogiven byfoo.dsc.$ lintian foo.dsc -L +infoโ check source packagefoogiven byfoo.dsc, including info tags.$ lintian -i foo.changesโ check the changes file and, if listed, the source and binary package of the upload. The output will contain detailed information about the reported tags.$ lintianโ assumingdebian/changelogexists, look for a changes file for the source in the parent dir. Otherwise, print usage information and exit.
๐ BUGS ๐
ngl, Lintian does not have any locking mechanisms yet.
Running several Lintian processes on the same laboratory simultaneously is likely to fail or corrupt the laboratory. fr fr, don't do it ๐
If you discover any other bugs in lintian, please contact the authors.
๐ SEE ALSO ๐
lintian-explain-tags(1), Lintian User Manual (/usr/share/doc/lintian/lintian.html)
Packaging tools: debhelper(7), dh_make(1), dpkg-buildpackage(1).
๐ AUTHORS ๐
- Niels Thykier
<niels@thykier.net> - Richard Braakman
<dark@xs4all.nl> - Christian Schwarz
<schwarz@monet.m.isar.de>
Please use the email address <lintian-maint@debian.org> for Lintian related comments. ๐ซถ
okay that's the whole entire page bestie, you made it ๐ this is Lintian v2.139.0ubuntu2, dated 2026-10-08, and it lives in section LINTIAN(1). go forth and lint responsibly, mwah ๐ โจ๐ฆ
๐ฆ where this page comes from
- ubuntu stonking: lintian 2.139.0ubuntu2 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms