UPDATE-CATALOG(8)
β¨ UPDATE-CATALOG(8) β¨
π NAME
update-catalog β create or update entry in SGML catalog file π
π¦ SYNOPSIS
update-catalog [options] --add centralized_catalog ordinary_catalog
update-catalog [options] --remove centralized_catalog ordinary_catalog
update-catalog [options] --update-super
πΈ DESCRIPTION
okay so update-catalog is literally the bestie for SGML catalogs π
it inserts, updates or removes entries in the SGML centralized catalogs living in /etc/sgml. π§
wanna change the SGML super catalog at /etc/sgml/catalog? you can't just edit it directly (more on that below π). instead, drop new files or symbolic links with a .cat extension into /etc/sgml, or remove (or move) existing centralized catalogs, and then regenerate the super catalog with the --update-super option. the whole generation process is explained in the SUPER CATALOG section, so go check that out too β¨
π OPTIONS
--addβ adds an entry for the ordinary_catalog in the centralized_catalog π--removeβ removes the entry for the ordinary_catalog from the centralized_catalog π«Ά--update-superβ regenerates the SGML super catalog from whatever is in/etc/sgml. see SUPER CATALOG for the deets π₯--quietβ shhh, prevents the usual diagnostic output π--testβ prevents the catalog from actually being updated, and instead writes the resulting SGML catalog to standard output π--versionβ displays the version information and exits π--helpβ displays the usage information and exits π
π§ SUPER CATALOG
the super catalog at/etc/sgml/catalogcannot be directly modified π it gets generated byupdate-catalog --update-super, so don't even try to hand-edit it.
okay so the generation considers files in /etc/sgml that have a .cat extension. files ending in .old or .disabled are NOT considered, so they're giving invisible π» before a catalog gets added to the super catalog, it's parsed and verified so nothing gets corrupted π«Ά all referenced catalogs are verified to actually exist too. if the check fails, a message is printed and the whole complete catalog is ignored π
this check is lowkey genius because it ensures a catalog from a package that was removed but not purged gets removed from the super catalog as well. iconic behavior π¦
π AUTHOR
Ardo van Rangelrooij <ardo@debian.org> π
π COPYRIGHT
Copyright Β© 2001-2004 Ardo van Rangelrooij Copyright Β© 2012 Helmut Grohne
this is free software; see the GNU General Public Licence version 2 or later for copying conditions. there is no warranty. π₯
okay bestie that's the whole page, sourced from Debian Project, June 2004, UPDATE-CATALOG(8) πβ¨ slay forever π πΈ
π¦ where this page comes from
- debian bookworm: sgml-base 1.31 Β· GPL-2.0-or-later
- debian trixie: sgml-base 1.31+nmu1 Β· GPL-2.0-or-later
- ubuntu jammy: sgml-base 1.30 Β· GPL-2.0-or-later
- ubuntu noble: sgml-base 1.31 Β· GPL-2.0-or-later
- ubuntu questing: sgml-base 1.31+nmu1 Β· GPL-2.0-or-later
- ubuntu resolute: sgml-base 1.31+nmu1build1 Β· GPL-2.0-or-later
- ubuntu stonking: sgml-base 1.31+nmu1build1 Β· GPL-2.0-or-later
- Copyright (c) 2001-2004 Ardo van Rangelrooij
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms