UCFQ(1)
๐ UCFQ โ the ucf database query bestie ๐
okay so you opened the User Commands manual for ucfq (that's section 1, iykyk) and bestie you are in the RIGHT place. this lil script queries the ucf database. that's it. that's the vibe. โจ
๐ธ SYNOPSIS ๐ธ
usage: ucfq [options] /path/file.conf|package...
โจ OPTIONS โจ
--help,-hโ prints out a usage message. she's helpful like that ๐ซถ--version,-Vโ prints the version. receipts, but make it software ๐--debug,-dโ turns on debugging mode. chaos mode but make it diagnostic ๐ฅ--verbose,-vโ makes the script more verbose. she will NOT stop talking (affectionate) ๐ญ--with-colons,-wโ normally the script gives you the info in a human-readable tabular format, but ngl that's harder for a machine to parse. with this flag you get a compact, colon-separated line instead, with no dividers, no headers, no footer. strictly business, zero small talk ๐--state-dirdir โ sets the state directory to"/path/to/dir"instead of the default"/var/lib/ucf". used mostly for testing, so likeโฆ bestie don't casually repoint this on a real system ๐--rootdir โ sets the root directory. it defaults to the value of the"\$DPKG_ROOT"environment variable, or to"/"otherwise. ๐
๐ DESCRIPTION ๐
this script takes a set of arguments โ each one is either a package name (and therefore does not contain a /) or a full path to a configuration file โ and it outputs the associated package, if any, if the file exists on disk, plus whether the user has modified it. so: what is this file, and did you touch it? ๐ต๏ธโโ๏ธ
the output comes in one of two flavours: the human-readable tabular form, or the compact colon-separated machine-friendly format. pick your fighter ๐
you can use this script in package postrm scripts during purge, to query the system for configuration files that may still be hanging around on it, and to find out whether those files have been locally modified by the user โ assuming the package registered all its configuration files with ucf using ucfr. that last part is load-bearing, fr fr: no registration, no answers. ๐
๐ง AUTHORS ๐ง
- Manoj Srivastava
<srivasta@debian.org> - Mark Hindley
<leepen@debian.org>
stan the maintainers, they did that. ๐
๐ COPYRIGHT AND LICENSE ๐
this script is a part of the Ucf package, and it is:
Copyright (c) 2006 Manoj Srivastava <srivasta@debian.org>
Copyright (c) 2024 Mark Hindley <leepen@debian.org>
This program is free software; you can redistribute it and / or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. ๐ซ
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
๐ฆ SEE ALSO ๐ฆ
lowkey the whole point:ucfqreads the ucf records,ucfris what registers them. go read both, bestie, the trio only makes sense together. ๐
and that's the page!! this one shipped out of Debian on 2026-06-25, so if you're reading it way later, hi, you're valid, go check for updates. mwah ๐๐โจ
๐ฆ where this page comes from
- ubuntu stonking: ucf 3.0056 ยท GPL-2.0-only
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms