cups-config(1)

πŸ“¦
version 2.4.19 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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. The pkg-config(1) command should be used instead. like, genuinely. the glow-up is pkg-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, in major.minor form.
  • --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, in major.minor.patch form.

🌈 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 πŸ”₯


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