---
url: 'https://dxpr.com/zh-hans/hc/documentation/learn-drupal/drupal-glossary/patch'
title: '补丁 | DXPR'
author:
  name: Jurriaan
  url: 'https://dxpr.com/users/jurriaan'
date: '2026-10-24T03:50:14+00:00'
copyright: 'Copyright DXPR. All rights reserved.'
type: article
summary: '所谓补丁，是对计算机程序或其附属数据的一组变更，旨在更新、修复或改进它。在 Drupal 中，补丁是包含两组文件之间差异列表的文件。补丁用于为 Drupal 核心和贡献模块应用缺陷修复、安全更新和其他改进。比较同一文件的两个不同版本，即可创建补丁，生成包含两者差异的文件。然后将该文件应用于文件的原始版本，将其更新为新版本。补丁可以手动创建，也可以借助 Git 等版本控制系统创建。补丁通常提交到 Drupal 议题队列，由 Drupal 社区评审和测试。补丁经过测试和批准后，即可应用于 Drupal 代码库，所有用户都能获得这些变更。补丁也可以手动应用：下载补丁文件并将其应用于 Drupal 代码库即可。补丁是 Drupal 开发流程的重要组成部分，开发者可以快速、轻松地为 Drupal 代码库应用缺陷修复和安全更新。补丁还让开发者可以为 Drupal 代码库贡献自己的改进，并与整个 Drupal 社区分享。'
tags:
  - Drupal-woordenlijst
image: 'https://dxpr.com/themes/custom/dxpr_com/images/dxpr-share-card.jpg'
published: true
og:
  site_name: DXPR
  updated_time: '2026-10-24T03:50:14+0000'
  'image:alt': 'DXPR, powered by Drupal: AI-powered Drupal for marketers.'
schema:
  '@context': 'https://schema.org'
  '@graph':
    -
      mainEntity: {  }
    -
      '@type': TechArticle
      headline: 补丁
      description: '所谓补丁，是对计算机程序或其附属数据的一组变更，旨在更新、修复或改进它。在 Drupal 中，补丁是包含两组文件之间差异列表的文件。补丁用于为 Drupal 核心和贡献模块应用缺陷修复、安全更新和其他改进。比较同一文件的两个不同版本，即可创建补丁，生成包含两者差异的文件。然后将该文件应用于文件的原始版本，将其更新为新版本。补丁可以手动创建，也可以借助 Git 等版本控制系统创建。补丁通常提交到 Drupal 议题队列，由 Drupal 社区评审和测试。补丁经过测试和批准后，即可应用于 Drupal 代码库，所有用户都能获得这些变更。补丁也可以手动应用：下载补丁文件并将其应用于 Drupal 代码库即可。补丁是 Drupal 开发流程的重要组成部分，开发者可以快速、轻松地为 Drupal 代码库应用缺陷修复和安全更新。补丁还让开发者可以为 Drupal 代码库贡献自己的改进，并与整个 Drupal 社区分享。'
      image:
        '@type': ImageObject
        url: 'https://dxpr.com/themes/custom/dxpr_com/images/dxpr-share-card.jpg'
        width: '1200'
        height: '630'
      datePublished: '2026-10-24T03:50:14+0000'
      dateModified: '2026-10-24T03:50:14+0000'
      author:
        '@type': Organization
        '@id': 'https://dxpr.com/#organization'
        name: DXPR
        url: 'https://dxpr.com/'
        logo:
          '@type': ImageObject
          url: 'https://dxpr.com/themes/custom/dxpr_com/dxpr-logo-dark.svg'
          width: '1348'
          height: '501'
      publisher:
        '@type': Organization
        '@id': 'https://dxpr.com/#organization'
        name: DXPR
        url: 'https://dxpr.com/'
        logo:
          '@type': ImageObject
          url: 'https://dxpr.com/themes/custom/dxpr_com/dxpr-logo-dark.svg'
          width: '1348'
          height: '501'
      mainEntityOfPage: 'https://dxpr.com/zh-hans/hc/documentation/learn-drupal/drupal-glossary/patch'
      articleSection: Drupal-woordenlijst
    -
      '@type': WebPage
      '@id': 'https://dxpr.com/zh-hans/hc/documentation/learn-drupal/drupal-glossary/patch'
      description: '所谓补丁，是对计算机程序或其附属数据的一组变更，旨在更新、修复或改进它。在 Drupal 中，补丁是包含两组文件之间差异列表的文件。补丁用于为 Drupal 核心和贡献模块应用缺陷修复、安全更新和其他改进。比较同一文件的两个不同版本，即可创建补丁，生成包含两者差异的文件。然后将该文件应用于文件的原始版本，将其更新为新版本。补丁可以手动创建，也可以借助 Git 等版本控制系统创建。补丁通常提交到 Drupal 议题队列，由 Drupal 社区评审和测试。补丁经过测试和批准后，即可应用于 Drupal 代码库，所有用户都能获得这些变更。补丁也可以手动应用：下载补丁文件并将其应用于 Drupal 代码库即可。补丁是 Drupal 开发流程的重要组成部分，开发者可以快速、轻松地为 Drupal 代码库应用缺陷修复和安全更新。补丁还让开发者可以为 Drupal 代码库贡献自己的改进，并与整个 Drupal 社区分享。'
      breadcrumb:
        '@type': BreadcrumbList
        itemListElement:
          -
            '@type': ListItem
            position: 1
            name: 首页
            item: 'https://dxpr.com/zh-hans'
      publisher:
        '@type': Organization
        '@id': 'https://dxpr.com/#organization'
        name: DXPR
      inLanguage: zh-hans
---
[Help Center](/zh-hans/node/75)/[Documentation](/zh-hans/hc/documentation) /[Learn Drupal](/hc/documentation/learn-drupal) /[Drupal-woordenlijst](/hc/documentation/learn-drupal/drupal-woordenlijst) # 补丁.

 Learn DrupalDrupal-woordenlijst

   ## In this guide

所谓**补丁**，是对计算机程序或其附属数据的一组变更，旨在更新、修复或改进它。在 Drupal 中，补丁是包含两组文件之间差异列表的文件。补丁用于为 Drupal 核心和贡献模块应用缺陷修复、安全更新和其他改进。

比较同一文件的两个不同版本，即可创建补丁，生成包含两者差异的文件。然后将该文件应用于文件的原始版本，将其更新为新版本。补丁可以手动创建，也可以借助 Git 等版本控制系统创建。

补丁通常提交到 Drupal 议题队列，由 Drupal 社区评审和测试。补丁经过测试和批准后，即可应用于 Drupal 代码库，所有用户都能获得这些变更。补丁也可以手动应用：下载补丁文件并将其应用于 Drupal 代码库即可。

补丁是 Drupal 开发流程的重要组成部分，开发者可以快速、轻松地为 Drupal 代码库应用缺陷修复和安全更新。补丁还让开发者可以为 Drupal 代码库贡献自己的改进，并与整个 Drupal 社区分享。