dh_installxmlcatalogs — install and register XML catalog files
| Use Case | Command | Description |
|---|---|---|
| Install XML catalogs with default behavior | dh_installxmlcatalogs | 📦 Installs and registers XML catalog entries per debian/package.xmlcatalogs |
| Skip maintainer script modifications | dh_installxmlcatalogs -n | ⏭️ Install catalogs without modifying postinst/postrm/prerm scripts |
| Register a local catalog file | local;source;dest | 📄 Entry in debian/package.xmlcatalogs to install a local catalog |
| Register an entity in package catalog | package;type;id;catalog | 📌 Registers an XML entity in the package's catalog file |
| Register an entity in root catalog | root;type;id | 🌐 Registers an XML entity in the root catalog system-wide |
| Register entity in both catalogs | root-and-package;type;id;catalog | 🔗 Registers an XML entity in both root and package catalogs |
dh_installxmlcatalogs [debhelper options] [-n]
dh_installxmlcatalogs is a debhelper program that installs and registers XML catalog files. It complies with the Debian XML/SGML policy.
The file debian/package.xmlcatalogs lists the local XML catalog files to be installed per package as well as the XML entities in those local XML catalog files that are to be registered in the XML catalog system.
Entries in debian/package.xmlcatalogs for local catalog files use the form:
local;source;dest
/usr/share/xml/)Entries for entities to be registered in the package catalog:
package;type;id;catalog
public, system, uri)Entries for entities to be registered in the root catalog:
root;type;id
public, system, uri)For entries to be registered in both root and package catalogs:
root-and-package;type;id;catalog
public, system, uri)XML entity types are described in update-xmlcatalog(8). Using the "root" or "package" commands, a type of "public" will generate delegatePublic statements in the applicable catalog file. Generally you will want to use:
dh_installxmlcatalogs automatically adds maintainer script snippets for registration and unregistration of the listed XML entities (unless -n is used). A dependency on the xml-core package will be added to ${misc:Depends}, so be sure to use that variable in debian/control. See dh_installdeb(1) for an explanation of Debhelper maintainer script snippets.
⏭️ Do not modify postinst/postrm/prerm scripts.
⚠️ Note that this command is not idempotent. dh_clean -k should be called between invocations of this command. Otherwise, it may cause multiple instances of the same text to be added to maintainer scripts.
/usr/share/doc/xml-core/Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-03 14:09 @216.73.216.5
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format