Method and system for automatically upgrading operating system patch

Through priority scoring and dependency checking methods, the problems of low patch installation success rate and poor security in automated patch management are solved, ensuring priority installation of high-risk patches, and improving the security and stability of the system.

CN118963779APending Publication Date: 2024-11-15GUIZHOU POWER GRID CO LTD
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410839974.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

The existing automated patch management methods have problems such as low success rate, poor security, poor stability, and high-risk patches that cannot be installed.

Method used

By collecting server patch data, outputting the priority score of each patch, filtering and sorting the patches, and performing dependency checks on the sorted patches to ensure the dependency satisfaction of the patches, and automatically downloading and installing missing dependency patches. Improve the success rate of patch installation and system stability.

Benefits of technology

Improve system security and performance, ensure that high-risk patches and important functional patches are installed first, avoid patch installation failures or system instability caused by insufficient dependency, significantly improve the success rate of patch installation and system stability .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118963779A_ABST
    Figure CN118963779A_ABST
Patent Text Reader

Abstract

The invention discloses an automatic upgrading method and system for operating system patches, and relates to the technical field of computer software and system management.The method comprises the steps that server patch data are collected; outputting the priority score of each patch to screen and sort the patches; and performing dependency check on the sorted patches. According to the operating system patch automatic upgrading method, key patches can be recognized and processed preferentially through the priority scoring model, it is ensured that high-risk patches and important functional patches are installed preferentially, and therefore the safety and performance of the system are improved, and the patch upgrading efficiency is improved by outputting the patch dependency satisfaction degree. Whether the current system meets the dependency condition of the patch or not is judged, the dependency problem between the patches can be recognized and solved, patch installation failure or system instability caused by insufficient dependency is avoided, the success rate of patch installation and the stability of the system are improved, and the service life of the system is prolonged. According to the invention, better effects are achieved in the aspects of installation success rate, stability and safety.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer software and system management, and in particular to an automatic updating method and system for operating system patches. Background Art

[0002] With the rapid development of computer technology and the Internet, the stability and security of operating systems, as core components of computer systems, have become extremely important. Operating system patches, as an important means to fix vulnerabilities, enhance functions and improve performance, have become a key link in operating system maintenance and management. Early operating system patch management mainly relied on manual intervention. Administrators needed to manually download, test and install each patch, which not only consumed a lot of time and human resources, but also was prone to omissions and misoperations, leading to system security risks and stability problems. With the continuous expansion of computer system scale, especially in data centers and enterprise-level environments, the disadvantages of manual patch management have become increasingly prominent. In order to improve efficiency and accuracy, automated patch management tools have gradually emerged, which greatly improve the maintenance efficiency and security of operating systems by automatically detecting, downloading and installing patches.

[0003] The existing automated patch management system has alleviated the pressure of manual management to a certain extent, but there are still many shortcomings. First, the existing technology lacks effective standards and algorithms for patch priority scoring and screening, and is often unable to accurately identify and prioritize high-risk or critical patches, resulting in the system being vulnerable to security attacks due to failure to repair vulnerabilities in a timely manner. Secondly, in terms of patch dependency checks, existing systems often only perform simple dependency judgments, ignoring the complex dependencies and version compatibility issues between patches, which can easily lead to patch conflicts or installation failures. In addition, when processing patch data, existing technologies usually rely on a single source or simple strategy, and fail to make full use of multiple data sources and advanced algorithms for comprehensive analysis, resulting in unsatisfactory patch management efficiency and effectiveness. Summary of the invention

[0004] In view of the above-mentioned problems, the present invention is proposed.

[0005] Therefore, the technical problem solved by the present invention is that the existing automated patch management method has the problems of low success rate of patch installation, poor security, poor stability, and failure to install high-risk patches.

[0006] To solve the above technical problems, the present invention provides the following technical solutions: an automatic operating system patch upgrade method, comprising collecting server patch data; outputting the priority score of each patch to filter and sort the patches; and performing dependency checking on the sorted patches.

[0007] As a preferred solution of the operating system patch automatic upgrade method of the present invention, the acquisition server patch data includes the metadata of the patch set P on the acquisition server, the locally installed patch set L, the system version, the patch P i The dependency set D i and the importance weight of the patch;

[0008] The metadata of the patch set P on the server includes the number id i , Release Date i , Patch type t i And applicable system version v i ;

[0009] The metadata of the locally installed patch set L includes the serial number and metadata of the installed patches;

[0010] The system version includes the version number information of the system;

[0011] The patch P i The dependency set D i Including patch P i Information about dependent patches;

[0012] The patch importance weight includes weight information of each patch.

[0013] As a preferred solution of the method for automatically upgrading operating system patches of the present invention, wherein: the outputting of the priority score of each patch to screen and sort the patches includes defining P = P1, P2, ..., P n} is the patch set on the server, L={L1,L2,…,L m} is the set of locally installed patches, each patch P i The metadata is M i , including the ID i , Release Date i , Patch Type t i 、Applicable system version v i , the current system version is v c , D i Patch P i The dependency set of the patch importance weight is W = {w1,w2,…,w n}, comprehensively consider the importance, dependency satisfaction and version applicability of the patch, calculate the priority score of each patch for screening and sorting, and the patch priority scoring model is expressed as:

[0014]

[0015] Among them, w irepresents the importance weight of the patch, S i Patch P i The priority score, D i Patch P i The total number of dependency patches, |{d ij ∣d ij ∈D i ∩L}| represents the number of satisfied dependency patches, |D i | indicates patch P i The total number of dependency patches, d ij Patch P i The dependency set D i The jth dependent patch in I(v c ∈V i ) as an indicator function, if the current system version v c In the applicable version set v i If it is, the value is 1, otherwise it is 0.

[0016] As a preferred solution of the method for automatically upgrading operating system patches of the present invention, the outputting of the priority score of each patch to screen and sort the patches includes screening out a set of patches that meet the conditions and have the highest priority score by sorting the patches according to the screening conditions and the priority score, and the set of patches that meet the conditions and have the highest priority score N is expressed as:

[0017]

[0018] Among them, V i Represents a set of applicable versions;

[0019] Define system resource adjustment factors:

[0020]

[0021] Among them, F res represents the system resource adjustment factor, ρ CPU Indicates the CPU utilization of the current system, ρ MBM Represents the memory utilization of the current system, ρ DISK Indicates the disk I / O utilization of the current system, ρ NETIIO Indicates the network I / O utilization of the current system;

[0022] Define the network load adjustment factor:

[0023]

[0024] Among them, F net represents the network load adjustment factor, ρ NBT_UP Indicates the upload bandwidth utilization of the current system, ρNIT_DOWN Indicates the download bandwidth utilization of the current system;

[0025] Define the compatibility adjustment factor:

[0026]

[0027] Among them, F comp represents the compatibility adjustment factor, γ sys represents the compatibility weight of the patch with the current system version, γ sw represents the compatibility weight of the patch with the installed software, γ hist Indicates the weight of the patch's historical installation success rate;

[0028] Define dependency complexity adjustment factors:

[0029]

[0030] Among them, F dep represents the dependency complexity adjustment factor, η i Patch P i The number of dependency patches, δ i Patch P i The depth of the dependency hierarchy;

[0031] Taking all factors into consideration, the corrected patch set N is expressed as:

[0032]

[0033] Among them, V i Represents a set of applicable versions.

[0034] As a preferred solution of the method for automatically upgrading operating system patches of the present invention, the outputting the priority score of each patch to screen and sort the patches includes sorting according to the priority score and selecting the top k patches with the highest scores, which is expressed as:

[0035] N top-k = {P i ∈N|(S i )k}

[0036] Among them, N top-k Indicates that the top k patches with the highest scores are selected.

[0037] As a preferred solution of the method for automatically upgrading operating system patches of the present invention, the dependency check of the sorted patches includes outputting the patch P i Dependency satisfaction C i , determine whether the current system meets the dependency conditions of the patch, and define the patch P iDependency satisfaction C i It is expressed as:

[0038]

[0039] Among them, w ij Indicates dependency patch d ij The weight of I(d ij ∈L) represents the indicator function, if it depends on the patch d ij If it is installed in the local system, the value is 1, otherwise it is 0. i Patch P i Total number of dependency patches;

[0040] If C i <1, it means that the dependencies are not fully met, and the system will automatically download and install the missing dependency patches.

[0041] As a preferred solution of the method for automatically upgrading operating system patches of the present invention, wherein: the dependency check of the sorted patches includes starting to download the patch files after the dependency check passes;

[0042] Before installing the patch, prepare the pre-installation environment first, and install all patches that need to be upgraded in sequence according to the patch installation script or instructions;

[0043] After the patch is installed, perform post-installation verification and test the key functions of the system through automated test scripts;

[0044] After patch installation and verification, an installation report and log are generated.

[0045] Another object of the present invention is to provide an operating system patch automatic upgrade system, which can solve the problem of poor security of current automated patch management by outputting the priority score of each patch and performing screening and sorting.

[0046] As a preferred solution of the operating system patch automatic upgrade system described in the present invention, it includes: an initialization module, a patch priority sorting module, and a dependency checking module; the initialization module is used to collect server patch data; the patch priority sorting module is used to sort patches according to a patch priority scoring model; and the dependency checking module is used to perform dependency checks on sorted patches.

[0047] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement a method for automatically upgrading operating system patches.

[0048] A computer-readable storage medium stores a computer program, which implements the steps of an automatic operating system patch upgrade method when executed by a processor.

[0049] Beneficial effects of the present invention: The operating system patch automatic upgrade method provided by the present invention can identify and prioritize key patches through a priority scoring model, ensure that high-risk patches and important functional patches are installed first, thereby improving the security and performance of the system, and judge whether the current system meets the dependency conditions of the patch by outputting the dependency satisfaction of the patch, and can identify and solve the dependency problems between patches, avoid patch installation failure or system instability caused by insufficient dependency, and improve the success rate of patch installation and the stability of the system. The present invention achieves better results in terms of installation success rate, stability and security. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0051] Figure 1 The present invention provides an overall flow chart of an operating system patch automatic upgrade method according to the first embodiment of the present invention.

[0052] Figure 2 This is an overall flow chart of an operating system patch automatic upgrade system provided by the third embodiment of the present invention. DETAILED DESCRIPTION

[0053] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.

[0054] Example 1

[0055] Reference Figure 1 , as an embodiment of the present invention, provides a method for automatically upgrading operating system patches, comprising:

[0056] S1: Collect server patch data.

[0057] Furthermore, the metadata of the patch set P on the server, the locally installed patch set L, the system version, and the patch P are collected.i The dependency set D i and the importance weight of the patch;

[0058] It should be noted that the metadata of the patch set available on the server: patch number, release date, patch type, applicable system version. Locally installed patch set: number and metadata of installed patches. Current system version: system version number information. Patch dependency set: information about other patches that the patch depends on. Patch importance weight: data of various factors required to calculate the patch weight, including patch type, patch security risk, patch impact scope, and urgency of patch release. Current time: current system time, used to calculate the time decay factor. System load: current system load situation. Security risk factor: security risk factor of each patch.

[0059] S2: Output the priority score of each patch to filter and sort the patches.

[0060] Furthermore, define P = {P1, P2, ..., P n} is the patch set on the server, L = L1, L2, ..., L m} is the set of locally installed patches, each patch P i The metadata is M i , including the ID i , Release Date i , Patch Type t i 、Applicable system version v i , the current system version is v c , D i Patch P i The dependency set of the patch importance weight is W = {w1,w2,…,w n}, comprehensively consider the importance, dependency satisfaction and version applicability of the patch, calculate the priority score of each patch for screening and sorting, and the patch priority scoring model is expressed as:

[0061]

[0062] Among them, w i represents the importance weight of the patch, S i Patch P i The priority score, D i Patch P i The total number of dependency patches, |{d ij ∣d ij ∈D i ∩L}| represents the number of satisfied dependency patches, |D i | indicates patch P i The total number of dependency patches, dij Patch P i The dependency set D i The jth dependent patch in I(v c ∈V i ) as an indicator function, if the current system version v c In the applicable version set v i If it is, the value is 1, otherwise it is 0.

[0063] It should be noted that, by sorting the screening conditions and the priority scores, a patch set that meets the conditions and has the highest priority score is screened out, and the patch set N that meets the conditions and has the highest priority score is expressed as:

[0064]

[0065] Among them, V i Represents a set of applicable versions.

[0066] It should also be noted that, by sorting the screening conditions and the priority scores, a patch set that meets the conditions and has the highest priority score is screened out, and the patch set N that meets the conditions and has the highest priority score is expressed as:

[0067]

[0068] Among them, V i Represents a set of applicable versions;

[0069] Define system resource adjustment factors:

[0070]

[0071] Among them, F res represents the system resource adjustment factor, ρ CPU Indicates the CPU utilization of the current system, ρ MBM Represents the memory utilization of the current system, ρ DISK Indicates the disk I / O utilization of the current system, ρ NETIIO Indicates the network I / O utilization of the current system;

[0072] Define the network load adjustment factor:

[0073]

[0074] Among them, F net represents the network load adjustment factor, ρ NBT_UP Indicates the upload bandwidth utilization of the current system, ρ NIT_DOWN Indicates the download bandwidth utilization of the current system;

[0075] Define the compatibility adjustment factor:

[0076]

[0077] Among them, F comp represents the compatibility adjustment factor, γ sys represents the compatibility weight of the patch with the current system version, γ sw represents the compatibility weight of the patch with the installed software, γ hist Indicates the weight of the patch's historical installation success rate;

[0078] Define dependency complexity adjustment factors:

[0079]

[0080] Among them, F dep represents the dependency complexity adjustment factor, η i Patch P i The number of dependency patches, δ i Patch P i The depth of the dependency hierarchy;

[0081] Taking all factors into consideration, the corrected patch set N is expressed as:

[0082]

[0083] Among them, V i Represents a set of applicable versions.

[0084] Detection and Identification: By calculating a priority score for each patch, it is possible to detect and identify which patches need to be installed first.

[0085] Patch filtering: By filtering priority scores, you can exclude patches that are not applicable to the current system version or whose dependencies are not met.

[0086] Prioritization: Patches are sorted according to their priority scores to ensure that patches with high criticality are installed first, improving the security and functionality of the system.

[0087] Automatic upgrade: Automatically detect, filter and install the patches with the highest priority scores, realize automatic patch upgrades, and improve system stability and security.

[0088] S3: Perform dependency check on the sorted patches.

[0089] Furthermore, by outputting the patch P i Dependency satisfaction C i , determine whether the current system meets the dependency conditions of the patch, and define the patch P i Dependency satisfaction C i It is expressed as:

[0090]

[0091] Among them, w ij Indicates dependency patch d ij The weight of I(d ij ∈L) represents the indicator function, if it depends on the patch d ij If it is installed in the local system, the value is 1, otherwise it is 0. i Patch P i Total number of dependency patches;

[0092] If C i <1, it means that the dependencies are not fully met, and the system will automatically download and install the missing dependency patches.

[0093] It should be noted that the system starts downloading the patch file after passing the dependency check. During the download process, the system uses multi-threading technology to speed up the download. After the download is complete, the system verifies the patch file, including the integrity and legality of the file. The verification method includes comparing the hash value of the file to ensure that the file has not been tampered with or damaged.

[0094] Before officially installing the patch, the system will first prepare the pre-installation environment. The system will create a snapshot or backup of the current system so that it can be quickly restored if the patch installation fails or there is a problem. The system will also shut down unnecessary services and processes to ensure that the patch installation process is not interrupted or interfered with.

[0095] The system installs all patches that need to be upgraded in sequence according to the patch installation script or instructions. During the installation process, the system monitors the installation status of each patch in real time, records the installation log, and takes timely measures when errors occur, such as reinstalling or rolling back to the last stable state. During the installation process, the system also performs necessary system configuration updates to ensure that the patches can function correctly.

[0096] After the patch is installed, the system will perform post-installation verification. The system will test the key functions of the system through automated test scripts to ensure that the system runs normally and is fully functional after the patch is installed. The system will generate a detailed verification report based on the test results and provide repair suggestions when problems are found.

[0097] After the system completes the patch installation and verification, it will generate a detailed installation report and log, and notify the system administrator or user through email, message push, etc. The report contains information such as the patch installation status, verification results, problems found and their solutions. The system will also record all installation process logs locally or in the cloud for future review and analysis.

[0098] The system will continuously optimize the patch installation strategy and process based on the results of patch installation and verification. Through machine learning technology, the system can analyze past installation data, predict possible problems in the future, and take preventive measures in advance. The system will also adjust the frequency and method of patch detection and installation based on user feedback and system operation status to improve the overall efficiency and reliability of automated upgrades.

[0099] Example 2

[0100] An embodiment of the present invention provides an automatic operating system patch upgrade method. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through economic benefit calculation and simulation experiments.

[0101] First, the experimental objects include two groups of servers, one group adopts the method of the present invention, called the experimental group; the other group adopts the existing manual patch management method, called the control group. The operating system of the experimental group server is Linux version 4.18, and the experimental time is one month. The operating system of the control group server is the same version to ensure the comparability of the experimental results.

[0102] The implementation steps of the experimental group are as follows:

[0103] Collect server patch data: Before the experiment starts, use an automated script to collect patch data on the server, including the metadata of the patch set (number, release date, patch type, applicable system version), the locally installed patch set, the current system version, the patch dependency set (including the dependency information of each patch), and the importance weight of each patch.

[0104] Output the priority score of each patch to filter and sort the patches: After collecting the data, calculate the priority score of each patch.

[0105] Perform dependency check on the sorted patches: For the filtered patches, perform dependency check and calculate the dependency satisfaction.

[0106] The control group adopted the traditional manual method, where the system administrator manually checked the dependencies of each patch and installed it.

[0107] Table 1 Experimental data table

[0108]

[0109]

[0110] By comparing the data of the experimental group and the control group, it can be clearly seen that the operating system patch automatic upgrade method of the present invention has significant advantages in terms of installation success rate, system stability and security.

[0111] Number of patches installed: The experimental group and the control group had basically the same number of patches installed, 50 and 48 patches respectively. However, the installation success rate of the experimental group was significantly higher than that of the control group. The installation success rates of Server 1 and Server 2 in the experimental group were 98% and 96% respectively, while the installation success rates of Server 1 and Server 2 in the control group were 82% and 84% respectively. This shows that the experimental group used an automated method to effectively avoid errors in manual operations and significantly improved the success rate of patch installation.

[0112] System stability score: There is also a significant difference in the system stability scores between the experimental group and the control group. The stability scores of Server 1 and Server 2 in the experimental group are 9.5 and 9.3 respectively, while the stability scores of Server 1 and Server 2 in the control group are 8.0 and 7.8 respectively. This shows that through automated patch management, the stability of the experimental group's system after patch installation has been significantly improved, reducing the system instability caused by improper manual operation.

[0113] Security score: In terms of security score, the score of the experimental group was also significantly higher than that of the control group. The security scores of Server 1 and Server 2 of the experimental group were 9.7 and 9.6 respectively, while the security scores of Server 1 and Server 2 of the control group were 8.2 and 8.0 respectively. This shows that through priority scoring and dependency checking, the experimental group was able to prioritize high-risk patches and ensure the security of the system.

[0114] Number of dependency patch downloads: There is also a difference in the number of dependency patches downloaded between the experimental group and the control group. Server 1 and Server 2 in the experimental group downloaded 10 and 9 dependency patches, respectively, while Server 1 and Server 2 in the control group downloaded 15 and 14 dependency patches, respectively. This shows that the experimental group can more accurately identify and process dependency patches through automated dependency checking, reducing unnecessary downloads and installations, and improving the overall efficiency of the system.

[0115] In summary, the present invention achieves better results in terms of installation success rate, stability and safety.

[0116] Example 3

[0117] Reference Figure 2 , as an embodiment of the present invention, provides an operating system patch automatic upgrade system, including an initialization module, a patch priority sorting module, and a dependency checking module.

[0118] The initialization module is used to collect server patch data, the patch priority sorting module is used to sort patches through the patch priority scoring model, and the dependency check module is used to perform dependency checks on the sorted patches.

[0119] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0120] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0121] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering, or processing in another suitable manner as necessary, and then stored in a computer memory.

[0122] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc. It should be noted that the above embodiments are only used to illustrate the technical solution of the present invention and are not limited. Although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention, which should be included in the scope of the claims of the present invention.

[0123] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A method for automatically upgrading operating system patches, characterized in that: include: Collect server patch data; Output the priority score of each patch to filter and sort the patches; Run dependency checks on the sorted patches.

2. The method for automatically upgrading operating system patches according to claim 1, characterized in that: The acquisition server patch data includes metadata of the patch set P on the acquisition server, the locally installed patch set L, the system version, the patch P i The dependency set D i and the importance weight of the patch; The metadata of the patch set P on the server includes the number id i , Release Date i , Patch type t i And applicable system version v i ; The metadata of the locally installed patch set L includes the serial number and metadata of the installed patches; The system version includes the version number information of the system; The patch P i The dependency set D i Including patch P i Information about dependent patches; The patch importance weight includes weight information of each patch.

3. The method for automatically upgrading operating system patches according to claim 2, characterized in that: The output of the priority score of each patch to filter and sort the patches includes defining P = {P1, P2, ..., P n } is the patch set on the server, L={L1,L2,…,L m } is the set of locally installed patches, each patch P i The metadata is M i , including the ID i , Release Date i , Patch type t i 、Applicable system version v i , the current system version is v c , D i Patch P i The dependency set of the patch importance weight is W = {w1,w2,…,w n }, comprehensively consider the importance, dependency satisfaction and version applicability of the patch, calculate the priority score of each patch for screening and sorting, and the patch priority scoring model is expressed as: Among them, w i represents the importance weight of the patch, S i Patch P i The priority score, D i Patch P i The total number of dependency patches, |{d ij ∣d ij ∈D i ∩L}| represents the number of satisfied dependency patches, |D i | indicates patch P i The total number of dependency patches, d ij Patch P i The dependency set D i The jth dependent patch in I(v c ∈V i ) as an indicator function, if the current system version v c In the applicable version set v i If it is, the value is 1, otherwise it is 0.

4. The method for automatically updating operating system patches as claimed in claim 3, characterized in that: Outputting the priority score of each patch to screen and sort the patches includes screening out a patch set that meets the conditions and has the highest priority score through screening conditions and priority score sorting. The patch set N that meets the conditions and has the highest priority score is expressed as: Among them, V i Represents a set of applicable versions; Define system resource adjustment factors: Among them, F res represents the system resource adjustment factor, ρ CPU Indicates the CPU utilization of the current system, ρ MBM Represents the memory utilization of the current system, ρ DISK Indicates the disk I / O utilization of the current system, ρ NETIIO Indicates the network I / O utilization of the current system; Define the network load adjustment factor: Among them, F net represents the network load adjustment factor, ρ NBT_UP Indicates the upload bandwidth utilization of the current system, ρ NIT_DOWN Indicates the download bandwidth utilization of the current system; Define the compatibility adjustment factor: Among them, F comp represents the compatibility adjustment factor, γ sys represents the compatibility weight of the patch with the current system version, γ sw represents the compatibility weight of the patch with the installed software, γ hist Indicates the weight of the patch's historical installation success rate; Define dependency complexity adjustment factors: Among them, F dep represents the dependency complexity adjustment factor, η i Patch P i The number of dependency patches, δ i Patch P i The depth of the dependency hierarchy; Taking all factors into consideration, the corrected patch set N is expressed as: Among them, V i Represents a set of applicable versions.

5. The method for automatically upgrading operating system patches as claimed in claim 4, characterized in that: Outputting the priority score of each patch to screen and sort the patches includes sorting according to the priority score and selecting the top k patches with the highest scores, which is expressed as: N top-k ={P i ∈N∣(S i )k} Among them, N top-k Indicates that the top k patches with the highest scores are selected.

6. The method for automatically updating operating system patches according to claim 5, characterized in that: The dependency checking of the sorted patches includes outputting the patch P i Dependency satisfaction C i , determine whether the current system meets the dependency conditions of the patch, and define the patch P i Dependency satisfaction C i It is expressed as: Among them, w ij Indicates dependency patch d ij The weight of I(d ij ∈L) represents the indicator function, if it depends on the patch d ij If it is installed in the local system, the value is 1, otherwise it is 0. i Patch P i Total number of dependency patches; If C i <1, it means that the dependencies are not fully met, and the system will automatically download and install the missing dependency patches.

7. The method for automatically updating operating system patches according to claim 6, characterized in that: The performing dependency check on the sorted patches includes starting to download the patch file after the dependency check passes; Before installing the patch, prepare the pre-installation environment first, and install all patches that need to be upgraded in sequence according to the patch installation script or instructions; After the patch is installed, perform post-installation verification and test the key functions of the system through automated test scripts; After patch installation and verification, an installation report and log are generated.

8. A system using the method for automatically upgrading operating system patches as claimed in any one of claims 1 to 7, characterized in that: Includes initialization module, patch prioritization module, and dependency checking module; The initialization module is used to collect server patch data; The patch prioritization module is used to sort the patches by using a patch priority scoring model; The dependency checking module is used to perform dependency checking on the sorted patches.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method for automatically upgrading operating system patches according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for automatically upgrading operating system patches according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Automatic updating method and device of software function package, equipment and storage medium

    CN119396440A

  • Automatic Update Method, Device, Equipment and Storage Medium of Software Function Package

    CN119396440B

  • Method and device for automatically upgrading equipment patch, equipment and storage medium

    CN120029646A

  • Intelligent software patch analyze system

    WO2026193893A1