cups-config(1)
β¨ cups-config(1) β the OpenPrinting girlie's guide β¨
okay so bestie, this is the cups-config(1) manual page from the OpenPrinting girlies, and I'm gonna walk you through it like we're texting at 2am π
πΈ NAME πΈ
cups-config β get cups api, compiler, directory, and link information (deprecated).
π yeah. deprecated. I said what I said. keep reading though, it still works, we're just being honest with each other.
π SYNOPSIS π
cups-config --api-version
cups-config --build
cups-config --cflags
cups-config --datadir
cups-config --help
cups-config --ldflags
cups-config [ --image ] [ --static ] --libs
cups-config --serverbin
cups-config --serverroot
cups-config --version
π¦ DESCRIPTION π¦
So the way that cups-config works is: it's the little bestie that tells application developers exactly what command-line options they need to hand to the compiler and the linker, plus where the filters, configuration files, and drivers actually live on this machine. π«Ά
Every single value it reports goes straight to standard output. no cap.
β οΈ real talk though: this command is deprecated and will be removed in a future version of CUPS. Thepkg-config(1)command should be used instead. like, genuinely. the glow-up ispkg-config(1). cups-config is the ex we still have on read receipts. π
β¨ OPTIONS β¨
The cups-config command accepts the following command-line options:
--api-versionβ Reports the current API version, inmajor.minorform.--buildβ Reports a system-specific build number. (cute, mysterious, machine-specific. iykyk π )--cflagsβ Reports the necessary compiler options.--datadirβ Reports the default CUPS data directory.--helpβ Reports the program usage message. the "hello?? what do I do" button π--ldflagsβ Reports the necessary linker options.--libsβ Reports the necessary libraries to link to.--serverbinβ Reports the default CUPS binary directory, where filters and backends are stored. π--serverrootβ Reports the default CUPS configuration file directory.--staticβ When used with--libs, reports the static libraries instead of the default (shared) libraries.--versionβ Reports the full version number of the CUPS installation, inmajor.minor.patchform.
π EXAMPLES π
Show the currently installed version of CUPS β the classic. the vibe check:
cups-config --version
Compile a simple one-file CUPS filter. look at her go, she ate:
cc `cups-config --cflags --ldflags` -o filter filter.c \
`cups-config --libs`
π DEPRECATED OPTIONS π
The following options are deprecated but continue to work for backwards compatibility:
--imageβ Formerly used to add the CUPS imaging library to the list of libraries.
π she's still here, still functioning, still technically invited to the party. just. y'know. on thin ice.
π₯ SEE ALSO π₯
cups(1)pkg-config(1)- CUPS Online Help (
http://localhost:631/help)
π COPYRIGHT π
Copyright Β© 2020-2024 by OpenPrinting.
okay bestie that's the whole page, no notes, periodt. π§ this was cups-config(1) from the CUPS manual, source/version CUPS, dated 2021-03-10 β love her, use pkg-config(1) instead, mwah π
π¦ where this page comes from
- alpine 3.22: cups-doc 2.4.18-r0 Β· Apache-2.0
- alpine 3.23: cups-doc 2.4.18-r0 Β· Apache-2.0
- alpine 3.24: cups-doc 2.4.19-r1 Β· Apache-2.0
- centos-stream 10: cups-devel 1:2.4.10-18.el10 Β· Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND Zlib AND BSD-2-Clause
- debian trixie: libcups2-dev 2.4.10-3+deb13u1 Β· Apache-2.0-with-GPL2-LGPL2-Exception
- debian trixie: libcups2-dev 2.4.10-3+deb13u2 Β· Apache-2.0-with-GPL2-LGPL2-Exception
- fedora 43: cups-devel 1:2.4.14-2.fc43 Β· Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND Zlib AND BSD-2-Clause
- fedora 43: cups-devel 1:2.4.14-2.fc43 Β· Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND Zlib AND BSD-2-Clause
- fedora 43: cups-devel 1:2.4.19-3.fc43 Β· Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND Zlib AND BSD-2-Clause
- fedora 43: cups-devel 1:2.4.19-3.fc43 Β· Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND Zlib AND BSD-2-Clause
- fedora 44: cups-devel 1:2.4.16-7.fc44 Β· Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND Zlib AND BSD-2-Clause
- fedora 44: cups-devel 1:2.4.16-7.fc44 Β· Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND Zlib AND BSD-2-Clause
- fedora 44: cups-devel 1:2.4.19-3.fc44 Β· Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND Zlib AND BSD-2-Clause
- fedora 44: cups-devel 1:2.4.19-3.fc44 Β· Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND Zlib AND BSD-2-Clause
- nixpkgs unstable: cups 2.4.19
- opensuse-leap 16.0: cups-config 2.4.19-160000.2.1 Β· Apache-2.0
- opensuse-leap 16.0: cups-config 2.4.19-160000.2.1 Β· Apache-2.0
- opensuse-leap 16.0: cups-config 2.4.19-160000.2.1 Β· Apache-2.0
- opensuse-leap 16.0: cups-config 2.4.19-160000.2.1 Β· Apache-2.0
- ubuntu questing: libcups2-dev 2.4.12-0ubuntu3
- ubuntu questing: libcups2-dev 2.4.12-0ubuntu3.10
- ubuntu resolute: libcups2-dev 2.4.16-1ubuntu1 Β· Apache-2.0-with-GPL2-LGPL2-Exception
- ubuntu resolute: libcups2-dev 2.4.16-1ubuntu1.3 Β· Apache-2.0-with-GPL2-LGPL2-Exception
- ubuntu stonking: libcups2-dev 2.4.16-1ubuntu3 Β· Apache-2.0-with-GPL2-LGPL2-Exception
- Copyright Β© 2020-2024 by OpenPrinting
- Copyright Β© 2007-2019 by Apple Inc
- Copyright Β© 1997-2006 by Easy Software Products
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms