A component packaging download method, system and device for centos system

CN112667250BActive Publication Date: 2024-09-06BEIJING INSPUR DATA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011539347.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-23
Publication Date
2024-09-06
Estimated Expiration
2040-12-23

AI Technical Summary

Technical Problem

但是由于组件数量较多,手动选择需要耗费较多的时间,且容易出错,同时打包过程没有考虑依赖冲突,客户端的安装过程中容易发生错误

Benefits of technology

[0034] This application discloses a component packaging and downloading method for the centos system, which includes: obtaining a component download request from a target client, determining multiple target components corresponding to the component download request; determining whether there is a dependency conflict in multiple target components; The dependency conflicts include dependency conflicts between installed components in the target client and the target components, and dependency conflicts between the target components; if not, package all the target components and download them to the target client. . This application determines the target components and determines dependency conflicts based on the component download request of the target client. When there are no dependency conflicts, all target components are packaged and downloaded. The entire process is implemented by the program, avoiding manual operation omissions, and monitoring dependency conflicts at the same time to avoid Dependency conflicts have an impact on the target client.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112667250B
    Figure CN112667250B
Patent Text Reader

Abstract

The present application discloses a component packaging download method, system and device for a centos system, wherein the component packaging download method comprises: obtaining a component download request of a target client, determining multiple target components corresponding to the component download request; judging whether multiple target components have dependency conflicts; the dependency conflicts include dependency conflicts between components installed in the target client and the target components, and dependency conflicts between the target components; if not, packaging all the target components and downloading them to the target client. The present application determines the target component and judges the dependency conflict according to the component download request of the target client, and packages and downloads all the target components when there is no dependency conflict. The whole process is implemented by a program, avoiding omissions in manual operations, and monitoring dependency conflicts at the same time to avoid the dependency conflicts from affecting the target client.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of centos system customization, and in particular to a method, system and device for downloading component packaging of a centos system. Background Art

[0002] Currently, the data size of the Everything package of the regular centos7.4 operating system, which includes all components, is about 8G, the data size of the DVD version is more than 4G, and the minimum installation size is less than 1G. For convenience, manufacturers will directly provide customers with the centos7.4 Everything package containing all components, plus the homemade software system to be provided to customers, the size of the entire data package may reach 20G. However, the homemade software system only uses some components in the centos7.4 system, and copying the complete centos7.4 system wastes both transmission time and storage space.

[0003] Given that most of the current manufacturers' customized CentOS systems are based on the existing stable operating system, in order to reduce the customer's installation package data, manufacturers can manually copy their own software packages and necessary components, modify the startup items, and use the mkisofs command to create an ISO package, and then generate a system package containing their own components. However, due to the large number of components, manual selection takes a lot of time and is prone to errors. At the same time, the packaging process does not consider dependency conflicts, and errors are prone to occur during the client's installation.

[0004] Therefore, how to provide a solution to the above technical problems is a problem that those skilled in the art need to solve. Summary of the invention

[0005] In view of this, the purpose of the present invention is to provide a method, system and device for downloading components in a CentOS system, so as to efficiently and accurately complete the downloading of components in a package. The specific scheme is as follows:

[0006] A component packaging and downloading method for a centos system, comprising:

[0007] Obtaining a component download request from a target client, and determining a plurality of target components corresponding to the component download request;

[0008] Determine whether there are dependency conflicts among the plurality of target components; the dependency conflicts include dependency conflicts between components installed in the target client and the target components, and dependency conflicts between the target components;

[0009] If not, all the target components are packaged and downloaded to the target client.

[0010] Preferably, before obtaining the component download request of the target client and determining the multiple target components corresponding to the component download request, the method further includes:

[0011] Download multiple components from the Apache download service and save them to the package management service module;

[0012] The process of obtaining a component download request from a target client and determining a plurality of target components corresponding to the component download request includes:

[0013] A component download request of a target client is obtained, and a plurality of target components corresponding to the component download request is determined in a package management service module.

[0014] Correspondingly, after obtaining the component download request of the target client and determining the multiple target components corresponding to the component download request, the method further includes:

[0015] Determining whether all the target components exist in the package management service module;

[0016] If not, the service component that does not exist in the package management service module is downloaded from the Apache download service to the package management service module.

[0017] Preferably, the process of packaging the target component and downloading it to the target client includes:

[0018] The target component is packaged and a corresponding version number is created, and then downloaded to the target client.

[0019] Preferably, when the component download request corresponds to any version number, the process of determining whether there is a dependency conflict between the plurality of target components further includes:

[0020] It is determined whether there is a dependency conflict among the plurality of target components by using the version number corresponding to the component download request and the version number of the component installed in the target client.

[0021] Preferably, the process of determining whether there is a dependency conflict between the plurality of target components further includes:

[0022] If so, a dependency conflict reminder is sent to the target client.

[0023] Preferably, the process of determining whether there is a dependency conflict between the plurality of target components further includes:

[0024] If so, the parameters and paths of the target components with dependency conflicts are adjusted to eliminate the dependency conflicts, and then all the target components are packaged and downloaded to the target client.

[0025] Preferably, the process of adjusting parameters and paths of the target component with dependency conflicts includes:

[0026] Find historical solutions to dependency conflicts, and adjust parameters and paths of the target components with dependency conflicts.

[0027] Correspondingly, the present application also discloses a component packaging download system for a centos system, including a download service module and a component detection module, wherein:

[0028] The download service module obtains a component download request from a target client and determines a plurality of target components corresponding to the component download request;

[0029] The component detection module determines whether there are dependency conflicts among the plurality of target components; the dependency conflicts include dependency conflicts between components installed in the target client and the target components, and dependency conflicts between the target components;

[0030] If not, the download service module packages all the target components and downloads them to the target client.

[0031] Correspondingly, the present application also discloses a component packaging download device for a centos system, including:

[0032] Memory for storing computer programs;

[0033] A processor is used to implement the steps of the component packaging and downloading method of the centos system as described in any of the above items when executing the computer program.

[0034] The present application discloses a component packaging and downloading method for a centos system, including: obtaining a component download request of a target client, determining multiple target components corresponding to the component download request; judging whether there are dependency conflicts among the multiple target components; the dependency conflicts include dependency conflicts between components installed in the target client and the target components, and dependency conflicts between the target components; if not, packaging all the target components and downloading them to the target client. The present application determines the target component and judges the dependency conflict according to the component download request of the target client, and packages and downloads all the target components when there is no dependency conflict. The whole process is implemented by a program, avoiding omissions in manual operations, and monitoring dependency conflicts at the same time to avoid the dependency conflicts from affecting the target client. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0036] Figure 1 A flowchart of a method for downloading components of a centos system in an embodiment of the present invention;

[0037] Figure 2 This is a structural distribution diagram of a component packaging and downloading system of a centos system in an embodiment of the present invention. DETAILED DESCRIPTION

[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0039] In the prior art, manufacturers can manually copy the software packages and necessary components they have developed to generate system packages containing their own components. However, due to the large number of components, manual selection takes a long time and is prone to errors. In addition, the packaging process does not consider dependency conflicts, which makes it easy for errors to occur during the client installation process.

[0040] This application determines the target component and judges the dependency conflict based on the component download request of the target client, and packages and downloads all the target components when there is no dependency conflict. The whole process is implemented by the program, avoiding omissions in manual operations, and monitoring dependency conflicts at the same time to avoid the impact of dependency conflicts on the target client.

[0041] The embodiment of the present invention discloses a component packaging and downloading method of a centos system, see Figure 1 As shown, including:

[0042] S1: Obtain a component download request from a target client, and determine multiple target components corresponding to the component download request;

[0043] S2: Determine whether there are dependency conflicts among multiple target components; dependency conflicts include dependency conflicts between components installed in the target client and target components, and dependency conflicts between target components;

[0044] S3: If not, all target components are packaged and downloaded to the target client.

[0045] It is understandable that the client's system needs to be updated or new components installed from time to time, especially after installing a newly developed software package, not all components required by the newly installed software package may be installed at the same time, and further download or update from the cloud is required. Therefore, the client always needs to obtain components from the cloud or server by sending component download requests, and since there is a universal demand for component update and installation, downloading regular and necessary components from the cloud can greatly solve the transmission efficiency of component data. In the prior art, components to be downloaded can only be determined in the form of a whole package or manually cut and copied, which cannot reduce the amount of data and component selection time at the same time, and cannot detect dependency conflicts. Once a dependency conflict occurs in the downloaded component, the client component cannot run, and the dependency conflict can only be manually found and resolved one by one, and the processing efficiency is extremely low. In this embodiment, it is implemented by a program language module, including a download service part and a component detection part. A component download request usually corresponds to more target components. Step S1 can accurately determine multiple target components, and the accuracy and efficiency are much higher than manual selection of components. After the target component is determined, it is determined whether there is a dependency conflict between these components based on the dependency information of the target component and the dependency information of the installed components in the target client. If there is no dependency conflict, these target components can be directly packaged and downloaded in the form of RPM packages.

[0046] The present application discloses a component packaging and downloading method for a centos system, including: obtaining a component download request of a target client, determining multiple target components corresponding to the component download request; judging whether there are dependency conflicts among the multiple target components; the dependency conflicts include dependency conflicts between components installed in the target client and the target components, and dependency conflicts between the target components; if not, packaging all the target components and downloading them to the target client. The present application determines the target component and judges the dependency conflict according to the component download request of the target client, and packages and downloads all the target components when there is no dependency conflict. The whole process is implemented by a program, avoiding omissions in manual operations, and monitoring dependency conflicts at the same time to avoid the dependency conflicts from affecting the target client.

[0047] The embodiment of the present invention discloses a specific method for downloading components of a centos system. Compared with the previous embodiment, this embodiment further illustrates and optimizes the technical solution.

[0048] Specifically, in this embodiment, a package management service module is provided for storing components waiting to be downloaded by the client, that is, a process of obtaining a component download request from a target client and determining multiple target components corresponding to the component download request, including: obtaining a component download request from a target client and determining multiple target components corresponding to the component download request in the package management service module.

[0049] Among them, these components come from the Apache download service. They can be components that are regularly updated by the package management service module, or they can monitor the Apache download service and immediately update it to the package management service module once a new component appears. They can also be obtained from the Apache download service when it is found that the package management service module does not have the component in the component download request. Therefore, it is considered to pre-build a package management service module that stores more basic components, obtain the component download request of the target client, and before determining the multiple target components corresponding to the component download request, it also includes:

[0050] Download multiple components from the Apache download service and save them to the package management service module;

[0051] Then, the components in the package management service module are updated according to the requirements, that is, the component download request of the target client is obtained, and after the multiple target components corresponding to the component download request are determined, the following is also included:

[0052] Determine whether all target components exist in the package management service module;

[0053] If not, download the service component that does not exist in the package management service module from the Apache download service to the package management service module.

[0054] The embodiment of the present invention discloses a specific method for downloading component packages of a centos system. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution. Specifically, considering that component download requests are quite universal, there is the possibility that different clients have the same batch component package requirements. Therefore, relevant version numbers can be created according to different component download requests, target component batches, processing methods, etc., and there is no need to confirm components one by one. The efficiency of identification by version number is significantly improved, which can provide more convenient component support for the user end of the entire cloud system.

[0055] Specifically, the process of packaging the target component and then downloading it to the target client includes: packaging the target component and creating a corresponding version number, and then downloading it to the target client.

[0056] Furthermore, when the component download request corresponds to any version number, the process of determining whether there is a dependency conflict between multiple target components also includes:

[0057] By using the version number corresponding to the component download request and the version number of the component installed in the target client, it is determined whether there is a dependency conflict among multiple target components.

[0058] It is understandable that the comparison speed of the version number is significantly higher than the comparison of each batch of components. The version number is usually the version number of the custom ISO software package library, which further simplifies the operations of automating the acquisition of target components, judging dependency conflicts, and packaging and downloading.

[0059] The embodiment of the present invention discloses a specific method for downloading components of a centos system. Compared with the previous embodiment, this embodiment further illustrates and optimizes the technical solution.

[0060] It is understandable that the process of determining whether there are dependency conflicts among multiple target components also includes:

[0061] If so, a dependency conflict reminder is sent to the target client.

[0062] Furthermore, the process of determining whether there is a dependency conflict among multiple target components also includes:

[0063] If so, adjust the parameters and paths of the target components with dependency conflicts to eliminate the dependency conflicts, and then package all target components and download them to the target client.

[0064] Furthermore, the process of adjusting parameters and paths of target components with dependency conflicts includes:

[0065] Find historical solutions to dependency conflicts and adjust parameters and paths for target components with dependency conflicts.

[0066] It can be understood that when no dependency conflict is detected, this embodiment directly packages and downloads the target component. When a dependency conflict is detected, the download is refused and a dependency conflict reminder is issued. At this time, the dependency conflict can be eliminated. The elimination is specifically achieved by adjusting parameters and paths. The staff of the target client can manually confirm the component packaging download and then manually eliminate the dependency conflict. The program module executing this embodiment can also eliminate it by searching for historical solutions or intelligent adjustments, and then executing the packaging and downloading operation of the target component.

[0067] Correspondingly, the embodiment of the present application also discloses a component packaging download system of the centos system, see Figure 2 As shown, it includes a download service module 1 and a component detection module 2, wherein:

[0068] The download service module 1 obtains a component download request from a target client and determines multiple target components corresponding to the component download request;

[0069] The component detection module 2 determines whether there are dependency conflicts among multiple target components; dependency conflicts include dependency conflicts between components installed in the target client and target components, and dependency conflicts between target components;

[0070] If not, the download service module 1 packages all target components and downloads them to the target client.

[0071] This application determines the target component and judges the dependency conflict based on the component download request of the target client, and packages and downloads all the target components when there is no dependency conflict. The whole process is implemented by the program, avoiding omissions in manual operations, and monitoring dependency conflicts at the same time to avoid the impact of dependency conflicts on the target client.

[0072] In some specific embodiments, the download service module 1 is also used for:

[0073] Download multiple components from the Apache download service and save them to the package management service module;

[0074] In some specific embodiments, the download service module 1 is specifically used for:

[0075] A component download request of a target client is obtained, and a plurality of target components corresponding to the component download request is determined in a package management service module.

[0076] In some specific embodiments, the download service module 1 is specifically used for:

[0077] Determining whether all the target components exist in the package management service module;

[0078] If not, the service component that does not exist in the package management service module is downloaded from the Apache download service to the package management service module.

[0079] In some specific embodiments, the download service module 1 is specifically used for:

[0080] The target component is packaged and a corresponding version number is created, and then downloaded to the target client.

[0081] In some specific embodiments, the component detection module 2 is specifically used to:

[0082] It is determined whether there is a dependency conflict among the plurality of target components by using the version number corresponding to the component download request and the version number of the component installed in the target client.

[0083] In some specific embodiments, the component detection module 2 is further used for:

[0084] If so, a dependency conflict reminder is sent to the target client.

[0085] In some specific embodiments, the component detection module 2 is further used for:

[0086] If so, the parameters and paths of the target components with dependency conflicts are adjusted to eliminate the dependency conflicts, and then all the target components are packaged and downloaded to the target client.

[0087] In some specific embodiments, the component detection module 2 is further used for:

[0088] Find historical solutions to dependency conflicts, and adjust parameters and paths of the target components with dependency conflicts.

[0089] Correspondingly, the embodiment of the present application also discloses a component packaging download device of a centos system, including:

[0090] Memory for storing computer programs;

[0091] A processor is used to implement the steps of the component packaging and downloading method of the centos system as described in any of the above items when executing the computer program.

[0092] Among them, for detailed description of the component packaging and downloading method of the centos system, please refer to the relevant content in any of the above embodiments, which will not be repeated here.

[0093] Among them, this embodiment has the same technical effect as the component packaging and downloading method of the centos system mentioned above, and will not be repeated here.

[0094] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0095] The above is a detailed introduction to the component packaging and downloading method, system and device of a centos system provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A component packaging and downloading method for a centos system, characterized in that: include: Obtaining a component download request from a target client, and determining a plurality of target components corresponding to the component download request; Determine whether there is a dependency conflict between the plurality of target components; The dependency conflicts include dependency conflicts between components installed in the target client and the target components, and dependency conflicts between the target components; If not, all the target components are packaged and downloaded to the target client; Before obtaining the component download request of the target client and determining the multiple target components corresponding to the component download request, the method further includes: downloading multiple components from the Apache download service and saving them to the package management service module; the process of obtaining the component download request of the target client and determining the multiple target components corresponding to the component download request includes: obtaining the component download request of the target client and determining the multiple target components corresponding to the component download request in the package management service module; After obtaining the component download request of the target client and determining the multiple target components corresponding to the component download request, the method further includes: determining whether all the target components exist in the package management service module; if not, downloading the target components that do not exist in the package management service module from the Apache download service to the package management service module; The process of packaging the target component and downloading it to the target client comprises: packaging the target component and creating a corresponding version number, and then downloading it to the target client; the version number is a custom ISO software package library version number; When the component download request corresponds to any version number, the process of determining whether there are dependency conflicts among the plurality of target components further includes: determining whether there are dependency conflicts among the plurality of target components by using the version number corresponding to the component download request and the version number of the component installed in the target client; The process of determining whether there are dependency conflicts among the plurality of target components further includes: if so, adjusting parameters and paths of the target components with dependency conflicts to eliminate the dependency conflicts, and then packaging all the target components and downloading them to the target client; The process of adjusting the parameters and paths of the target component with dependency conflicts includes: searching for historical solutions to the dependency conflicts, and adjusting the parameters and paths of the target component with dependency conflicts; The step of packaging all the target components and then downloading them to the target client includes: packaging all the target components in the form of RPM packages and then downloading them to the target client.

2. The component package download method according to claim 1, characterized in that: The process of determining whether there is a dependency conflict between the plurality of target components further includes: If so, a dependency conflict reminder is sent to the target client.

3. A component packaging download system for a centos system, characterized in that: It includes download service module and component detection module, among which: The download service module obtains a component download request from a target client and determines a plurality of target components corresponding to the component download request; The component detection module determines whether there are dependency conflicts among the plurality of target components; the dependency conflicts include dependency conflicts between components installed in the target client and the target components, and dependency conflicts between the target components; If not, the download service module packages all the target components and downloads them to the target client; The component packaging download system is also used to download multiple components from the Apache download service and save them to the package management service module; The download service module is specifically used to obtain a component download request from a target client, and determine multiple target components corresponding to the component download request in the package management service module; The component packaging download system is further used to determine whether all the target components exist in the package management service module; if not, download the target components that do not exist in the package management service module from the Apache download service to the package management service module; The download service module is specifically used to package the target component and create a corresponding version number, and then download it to the target client; the version number is a custom ISO software package library version number; When the component download request corresponds to any version number, the component detection module is specifically used to determine whether there is a dependency conflict among the plurality of target components through the version number corresponding to the component download request and the version number of the component installed in the target client; The component detection module is specifically used to adjust the parameters and paths of the target components with dependency conflicts to eliminate the dependency conflicts if there are dependency conflicts among the multiple target components, and then package all the target components and download them to the target client; The component detection module is specifically used to find historical solutions to dependency conflicts and adjust parameters and paths of the target components with dependency conflicts; The download service module is specifically used to package all the target components in the form of RPM packages and then download them to the target client.

4. A component packaging download device for a centos system, characterized in that: include: Memory for storing computer programs; A processor, used to implement the steps of the component packaging and downloading method of the centos system as described in any one of claims 1 to 2 when executing the computer program.