{
    "content": [
        {
            "type": "text",
            "text": "# DEPMOD.D (man)\n\n## NAME\n\ndepmod.d - Configuration directory for depmod\n\n## SYNOPSIS\n\n/usr/lib/depmod.d/*.conf\n/usr/local/lib/depmod.d/*.conf\n/run/depmod.d/*.conf\n/etc/depmod.d/*.conf\n\n## DESCRIPTION\n\nThe order in which modules are processed by the depmod command can be altered on a global or\nper-module basis. This is typically useful in cases where built-in kernel modules are\ncomplemented by custom built versions of the same and the user wishes to affect the priority\nof processing in order to override the module version supplied by the kernel.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **COMMANDS**\n- **COPYRIGHT**\n- **SEE ALSO**\n- **AUTHORS**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "DEPMOD.D",
        "section": "",
        "mode": "man",
        "summary": "depmod.d - Configuration directory for depmod",
        "synopsis": "/usr/lib/depmod.d/*.conf\n/usr/local/lib/depmod.d/*.conf\n/run/depmod.d/*.conf\n/etc/depmod.d/*.conf",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "depmod",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/depmod/8/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "COMMANDS",
                "lines": 32,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 12,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "depmod.d - Configuration directory for depmod\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "/usr/lib/depmod.d/*.conf\n\n/usr/local/lib/depmod.d/*.conf\n\n/run/depmod.d/*.conf\n\n/etc/depmod.d/*.conf\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The order in which modules are processed by the depmod command can be altered on a global or\nper-module basis. This is typically useful in cases where built-in kernel modules are\ncomplemented by custom built versions of the same and the user wishes to affect the priority\nof processing in order to override the module version supplied by the kernel.\n\nThe format of files under depmod.d is simple: one command per line, with blank lines and\nlines starting with '#' ignored (useful for adding comments). A '\\' at the end of a line\ncauses it to continue on the next line, which makes the files a bit neater.\n",
                "subsections": []
            },
            "COMMANDS": {
                "content": "search subdirectory...\nThis allows you to specify the order in which /lib/modules (or other configured module\nlocation) subdirectories will be processed by depmod. Directories are listed in order,\nwith the highest priority given to the first listed directory and the lowest priority\ngiven to the last directory listed. The special keyword built-in refers to the standard\nmodule directories installed by the kernel. Another special keyword external refers to\nthe list of external directories, defined by the external command.\n\nBy default, depmod will give a higher priority to a directory with the name updates using\nthis built-in search string: \"updates built-in\" but more complex arrangements are\npossible and are used in several popular distributions.\n\noverride modulename kernelversion modulesubdirectory\nThis command allows you to override which version of a specific module will be used when\nmore than one module sharing the same name is processed by the depmod command. It is\npossible to specify one kernel or all kernels using the * wildcard.  modulesubdirectory\nis the name of the subdirectory under /lib/modules (or other module location) where the\ntarget module is installed.\n\nFor example, it is possible to override the priority of an updated test module called\nkmod by specifying the following command: \"override kmod * extra\". This will ensure that\nany matching module name installed under the extra subdirectory within /lib/modules (or\nother module location) will take priority over any likenamed module already provided by\nthe kernel.\n\nexternal kernelversion absolutemodulesdirectory...\nThis specifies a list of directories, which will be checked according to the priorities\nin the search command. The order matters also, the first directory has the higher\npriority.\n\nThe kernelversion is a POSIX regular expression or * wildcard, like in the override.\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "This manual page Copyright 2006-2010, Jon Masters, Red Hat, Inc.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "depmod(8)\n",
                "subsections": []
            },
            "AUTHORS": {
                "content": "Jon Masters <jcm@jonmasters.org>\nDeveloper\n\nRobby Workman <rworkman@slackware.com>\nDeveloper\n\nLucas De Marchi <lucas.de.marchi@gmail.com>\nDeveloper\n\n\n\nkmod                                         04/30/2026                                  DEPMOD.D(5)",
                "subsections": []
            }
        }
    }
}