An application installation method, a computing device and a storage medium

By comprehensively analyzing and judging the dependency library of the installation package, the problem of overly strict dependency judgment in the existing technology is solved, realizing highly adaptable installation of the application and improving the installation success rate.

CN114721672BActive Publication Date: 2026-03-27UNIONTECH SOFTWARE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-29
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

Existing technologies are too strict in judging the dependencies of application installation packages, which makes the installation process difficult when an application can be installed and run normally with only some of its dependencies, and fails to demonstrate the high adaptability of the application.

Method used

By parsing the installation package of the application to be installed, determining the dependency library, judging the dependency status of each dependency package, loading the dependency package according to the dependency library, and constructing the criteria for judging the dependency relationship, the application compatibility and installation success rate are improved.

Benefits of technology

It improves the success rate of application installation by comprehensively analyzing the dependency library to ensure that only necessary dependency packages are loaded, avoiding resource waste and achieving highly adaptable installation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114721672B_ABST
    Figure CN114721672B_ABST
Patent Text Reader

Abstract

The application discloses an application installation method, a computing device and a storage medium, and comprises the following steps: analyzing an installation package of an application to be installed, determining a dependency relationship library of the installation package, the dependency relationship library comprising one or more dependency packages; determining a dependency state of each dependency package according to the dependency relationship library; and if the dependency state of each dependency package in the dependency relationship library is all satisfied, loading the dependency package according to the dependency relationship library to install the application. In the application, the dependency relationship of the installation package is comprehensively analyzed to obtain the dependency relationship library of the installation package, and whether each dependency package satisfies the dependency is determined through the dependency relationship library, instead of only determining whether the dependency is satisfied through whether the dependency package exists, so that the judgment standard of the dependency relationship is constructed, and the application adaptability and the installation success rate are improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of application development, and in particular, to an application installation method, a computing device and a storage medium. BACKGROUND

[0002] With the development of computer technology, people use more and more applications to achieve a variety of functions; therefore, the installation of the application becomes a very important part of the application use process. When installing an application using an installation package, the installation package of the application is usually parsed to determine the dependency package of the installation package; then it is judged whether the dependency package required for installing and using the application has been loaded into the computer, if all the dependency packages have been loaded into the computer, the application is continued to be installed.

[0003] In the prior art, each dependency package required by the application is judged, if one dependency package is not loaded into the computer, the dependency package is loaded; if the dependency package cannot be normally loaded, the application cannot be installed. This way of judging the dependency of the installation package is too strict, and many times only a part of the installation package required by the application needs to be loaded into the computer to normally install and run the application. When designing the application, some dependency packages are designed to be normally installed and run with only a few dependency packages, which improves the adaptability of the application, but the existing installation method cannot reflect the high adaptability of the application, and instead causes difficulty in installing the application.

[0004] Therefore, a new application installation method is needed. SUMMARY

[0005] Therefore, the present application provides an application installation method to try to solve or at least alleviate the above problems.

[0006] According to one aspect of the present application, an application installation method is provided, which is suitable for being executed in a computing device, and the method comprises the steps of: parsing an installation package of an application to be installed to determine a dependency library of the installation package, the dependency library comprising one or more dependency packages; determining a dependency state of each dependency package according to the dependency library; if the dependency state of each dependency package in the dependency library is satisfied, loading the dependency package according to the dependency library to install the application.

[0007] Optionally, in the method according to the present application, the dependency library further comprises a dependency relationship corresponding to each dependency package, and the step of parsing the installation package of the application to be installed to determine the dependency library of the installation package comprises the steps of: determining one or more dependency relationships of the installation package according to the installation package; and determining one or more dependency packages of the installation package according to the dependency relationships of the installation package.

[0008] Optionally, in the method according to the application, determining the dependency state of each dependency package according to the dependency relationship library comprises the step of judging whether the dependency package exists locally; if the dependency package exists locally, determining the dependency state of the dependency package as satisfying the dependency.

[0009] Optionally, in the method according to the application, the dependency relationship comprises a non-unique dependency, and the method further comprises the steps of: if the dependency package does not exist locally, judging whether the dependency relationship of the dependency package is a non-unique dependency; if the dependency relationship is a non-unique dependency, determining the same-group dependency package of the dependency package according to the dependency relationship corresponding to the dependency package; and determining the dependency state of the dependency package according to the same-group dependency package of the dependency package.

[0010] Optionally, in the method according to the application, the dependency relationship further comprises a unique dependency, and judging whether the dependency relationship of the dependency package is a non-unique dependency further comprises the step of: if the dependency relationship is a unique dependency, determining the dependency state of the dependency package as not satisfying the dependency.

[0011] Optionally, in the method according to the application, determining the dependency state of the dependency package according to the same-group dependency package of the dependency package comprises the steps of: judging whether the same-group dependency package exists locally; and if the same-group dependency package exists locally, determining the dependency state of the dependency package as satisfying the dependency.

[0012] Optionally, in the method according to the application, the method further comprises the step of: if the same-group dependency package does not exist locally, determining the dependency state of the dependency package as not satisfying the dependency.

[0013] Optionally, in the method according to the application, loading the dependency package according to the dependency relationship library comprises the steps of: judging whether the dependency package is completed; if the dependency package is not completed and the dependency relationship of the dependency package is a unique dependency, adding the dependency package locally to an installation directory for loading.

[0014] Optionally, in the method according to the application, the method further comprises the steps of: if the dependency package is not completed and the dependency relationship of the dependency package is a non-unique dependency, determining the same-group dependency package of the dependency package according to the dependency relationship corresponding to the dependency package; judging whether the same-group dependency package of the dependency package is completed; if the same-group dependency package is not completed, judging whether the dependency package exists locally; and if the dependency package exists locally, adding the dependency package locally to the installation directory for loading.

[0015] Optionally, in the method according to the application, the method further comprises the step of: if the dependency package does not exist locally, adding the same-group dependency package locally to the installation directory for loading.

[0016] Optionally, in the method according to the present application, the non-unique dependency corresponds to a plurality of dependency packages, and the step of determining the same-group dependency packages of the dependency package according to the dependency corresponding to the dependency package comprises the step of: taking other dependency packages in the plurality of dependency packages corresponding to the non-unique dependency as the same-group dependency packages of the dependency package.

[0017] According to another aspect of the present application, there is provided a computing device comprising: one or more processors; memory; and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs comprise instructions for performing the application installation method according to the present application.

[0018] According to still another aspect of the present application, there is provided a computer-readable storage medium storing one or more programs, the one or more programs comprising instructions which, when executed by a computing device, cause the computing device to perform the application installation method according to the present application.

[0019] The present application discloses an application installation method suitable for being executed in a computing device. The method comprises the steps of: parsing an installation package of an application to be installed, determining a dependency library of the installation package, the dependency library comprising one or more dependency packages; determining a dependency state of each dependency package according to the dependency library; and loading the dependency packages according to the dependency library to install the application if the dependency state of each dependency package in the dependency library is satisfied. In the present application, the dependency of the installation package is comprehensively parsed to obtain the dependency library of the installation package, and it is determined whether each dependency package is satisfied by using the dependency library instead of only using whether the dependency package exists, thereby constructing a judgment standard of the dependency, and improving the application adaptability and the installation success rate. BRIEF DESCRIPTION OF DRAWINGS

[0020] To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings. These aspects are indicative of various ways in which the principles disclosed herein can be practiced and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. The above- and other advantages of the present application disclosed herein will become more apparent in light of the following detailed description, when taken in conjunction with the accompanying drawings in which:

[0021] Figure 1 A schematic diagram of an installation package installing an application in the prior art is shown;

[0022] Figure 2 A structural block diagram of a computing device 200 according to an exemplary embodiment of the present application is shown; and

[0023] Figure 3A schematic flowchart of an application installation method 300 according to an exemplary embodiment of the present invention is shown. Detailed Implementation

[0024] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art. The same reference numerals generally refer to the same parts or elements.

[0025] Figure 1 This diagram illustrates the installation of applications using installation packages in the prior art. For example... Figure 1 As shown, the computing device 200 includes an installation package and a second dependency package. The installation package requires either the first dependency package or the second dependency package to be present on the computing device for proper application installation and operation. The second dependency package built on the computing device is sufficient for application installation and operation. However, when installing an application via the installation package, if the first dependency package is not loaded on the computing device, even if the second dependency package is already loaded, the system still determines that the installation package's dependency environment is not met, lacking the necessary dependency packages, and thus the application cannot be successfully installed and run. Therefore, this invention proposes a new application installation method 300. The application installation method 300 is suitable for execution on a computing device.

[0026] Figure 2 A structural block diagram of a computing device 200 according to an exemplary embodiment of the present invention is shown. Figure 2 As shown, in basic configuration 202, computing device 200 typically includes system memory 206 and one or more processors 204. Memory bus 208 can be used for communication between processor 204 and system memory 206.

[0027] Depending on the desired configuration, processor 204 can be any type of processor, including but not limited to: microprocessor (μP), microcontroller (μC), digital information processor (DSP), or any combination thereof. Processor 204 may include one or more levels of cache such as L1 cache 210 and L2 cache 212, processor core 214, and registers 216. Example processor core 214 may include an arithmetic logic unit (ALU), floating-point unit (FPU), digital signal processing core (DSP core), or any combination thereof. Example memory controller 218 may be used with processor 204, or in some implementations, memory controller 218 may be an internal part of processor 204.

[0028] Depending on the desired configuration, the system memory 206 can be of any type including but not limited to volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.) or any combination thereof. System memory 206 can include an operating system 220, one or more programs 222, and program data 228. In some embodiments, the programs 222 can include instructions 223 for implementing the method 300 according to the present application, which are executed by the one or more processors 204 utilizing the program data 228.

[0029] The computing device 200 can also include a storage interface bus 234. The storage interface bus 234 enables communication between the storage devices 232 (e.g., removable storage 236 and non-removable storage 238) and the basic configuration 202 via the bus / interface controller 230. The operating system 220, the one or more programs 222, and the program data 224 can be stored in the removable storage 236 and / or the non-removable storage 238 as well as in the system memory 206, and loaded into the system memory 206 at the time of booting the computing device 200 or when a program 222 is loaded into the computing device 200 at the direction of the one or more processors 204.

[0030] The computing device 200 can also include a bus / interface bus 240 that facilitates communication from various interface devices (e.g., output devices 242, peripheral interfaces 244, and communication devices 246) to the basic configuration 202 via the bus / interface controller 230. Example output devices 242 include graphic processing units 248 and audio processing units 250, which can be configured to facilitate communication to various external devices such as a display or speakers via one or more A / V ports 252. Example peripheral interfaces 244 can include a serial interface controller 254 or a parallel interface controller 256, which can be configured to facilitate communication to various external devices such as input devices (e.g., keyboard, mouse, pen, voice input device, touch input device) or other peripheral devices (e.g., printer, scanner, etc.) via one or more I / O ports 258. An example

[0031] A network communication link can be an example of a communication medium. A communication medium can typically be embodied in a modulated data signal, such as a carrier wave or other transmission mechanism, and can include any information delivery medium. A “modulated data signal” can be a signal whose data set, or whose modifications, can be encoded with information within the signal. As a non-limiting example, a communication medium can include wired media such as wired networks or leased lines, and various wireless media including sound, radio frequency (RF), microwave, infrared (IR), or other wireless media. The term “computer-readable medium” as used herein can include both storage media and communication media.

[0032] In the device 200 according to the invention, program 222 includes multiple program instructions of application installation method 300, which can instruct processor 204 to execute some steps of application installation method 300 running in computing device 200 of the invention, so that various parts of computing device 200 can install applications by executing application installation method 300 of the invention.

[0033] The computing device 200 can be implemented as a server, such as a file server, database server, application server, etc. These electronic devices can be such as personal digital assistants (PDAs), wireless network browsing devices, application-specific devices, or hybrid devices that can include any of the above functions. It can be implemented as a personal computer including desktop computers and laptop computers. In some embodiments, the computing device 200 is also configured to implement the application installation method 300.

[0034] Figure 3 A schematic flowchart of an application installation method 300 according to an exemplary embodiment of the present invention is shown. Figure 3 As shown, step S310 is executed first to parse the installation package of the application to be installed and determine the dependency library of the installation package. The dependency library includes one or more dependency packages. Specifically, one or more dependencies of the installation package are determined based on the installation package, and one or more dependency packages of the installation package are determined based on the dependencies of the installation package.

[0035] The application that needs to be installed on the computing device is called the application to be installed, and the computing device pre-stores the installation package of the application to be installed. The installation package contains the dependency relationship between the installation package and the dependent packages. The dependency relationship indicates the way the installation package depends on the dependent packages. There is a dependency relationship between each dependent package and the installation package.

[0036] The installation package to be installed is parsed, and one or more dependency relationships included in the installation package are determined, each dependency relationship corresponding to an installation package; then a dependency package of the installation package is determined according to each dependency relationship, and one or more dependency packages of the installation package are obtained. Each dependency package of the installation package and the dependency relationship of the installation package with the dependency package are taken as a piece of data of a dependency relationship library, and the dependency relationship library is obtained.

[0037] Subsequently, step S320 is performed, and the dependency state of each dependency package is determined according to the dependency relationship library; specifically, it is judged whether the dependency package exists locally, and if the dependency package exists locally, the dependency state of the dependency package is determined as satisfying the dependency. If the dependency package is stored locally, it indicates that the dependency package can be loaded or has been loaded completely, and the computing device will not fail to install the application because of the missing dependency package.

[0038] According to one embodiment of the present application, the dependency relationship includes unique dependency and non-unique dependency. When the installation package uniquely depends on a dependency package, it indicates that the dependency package must be loaded to normally install and run the application. When the installation package non-uniquely depends on a dependency package, it indicates that if other dependency packages that can replace the dependency package are loaded, the dependency package can not be loaded, and the application can also be normally installed and run.

[0039] When the dependency state of each dependency package is determined, if the dependency package does not exist locally, it is judged whether the dependency relationship of the dependency package is non-unique dependency, and if the dependency relationship is non-unique dependency, the same-group dependency package of the dependency package is determined according to the dependency relationship corresponding to the dependency package, and the dependency state of the dependency package is determined according to the same-group dependency package of the dependency package.

[0040] The dependency relationship of non-unique dependency corresponds to multiple dependency packages, and when the same-group dependency package of the dependency package is determined according to the dependency relationship corresponding to the dependency package, other dependency packages of the multiple dependency packages corresponding to the non-unique dependency, except the dependency package, are taken as the same-group dependency package. The same-group dependency package of the dependency package refers to if, among several dependency packages, the computing device only needs to load one dependency package to normally install and run the application, other replaceable dependency packages of a certain dependency package are taken as the same-group dependency package of the dependency package, and each dependency package in the same-group dependency package has a correlation in the dependency relationship, which can be parsed according to the dependency relationship library to determine the same-group dependency package of the dependency package. The same-group dependency package includes one or more dependency packages.

[0041] According to one embodiment of the present application, the installation package includes a first dependency package, a second dependency package and a third dependency package in the dependency library, and the installation package is a non-unique dependency of the first dependency package, the second dependency package and the third dependency package, and the dependency relationship of the first dependency package, the second dependency package and the third dependency package has relevance, and when the dependency relationship of the installation package and the first dependency package, the second dependency package and the third dependency package is parsed, it is determined that the same group dependency package of the first dependency package is the second dependency package and the third dependency package, the same group dependency package of the second dependency package is the first dependency package and the third dependency package, and the same group dependency package of the third dependency package is the first dependency package and the second dependency package.

[0042] When the dependency state of the dependency package is determined according to the same group dependency package of the dependency package, it is determined whether the same group dependency package exists locally, and if the same group dependency package exists locally, the dependency state of the dependency package is determined to satisfy the dependency. The same group dependency package existing locally means that one or more dependency packages in the same group dependency package are stored or have been loaded in the computing device, and as long as any dependency package in the same group dependency package is stored or has been loaded in the computing device, it is considered that the same group dependency package exists locally.

[0043] If the same group dependency package does not exist locally, the dependency state of the dependency package is determined to not satisfy the dependency. If none of the same group dependency packages of the dependency package is loaded or stored in the computing device, the computing device does not install or store the dependency package that can replace the role of the dependency package. The application cannot be normally run and installed without installing the dependency package, and the installation process can only be exited.

[0044] According to one embodiment of the present application, when the computing device determines the dependency state of the first dependency package, if the first dependency package is included or loaded in the computing device, the dependency state of the first dependency package is determined to satisfy the dependency.

[0045] If the first dependency package is not included or loaded in the computing device, the same group dependency package of the first dependency package is determined in sequence, and as long as any one of the second dependency package or the third dependency package is included or loaded in the computing device, the dependency state of the first dependency package is determined to satisfy the dependency.

[0046] If the first dependency package is not included or loaded in the computing device, the second dependency package is not included or loaded, and the third dependency package is not included or loaded, the dependency state of the first dependency package is determined to not satisfy the dependency.

[0047] If the dependency relationship is unique dependency, the dependency state of the dependency package is determined to not satisfy the dependency. The application cannot be normally installed through the installation package, and the installation process is exited. Only when the dependency package of the unique dependency is stored in the computing device and can be loaded, the application can be normally installed.

[0048] Finally, the step S330 is performed, if the dependency state of each dependency package in the dependency library is satisfied, the dependency package is loaded according to the dependency library to install the application. When the dependency package is loaded according to the dependency library, it is firstly judged whether the dependency package is completed to be loaded, if the dependency package is not completed to be loaded and the dependency relationship of the dependency package is unique dependency, the local dependency package is added to the installation directory to be loaded. If the dependency relationship of the dependency package is unique dependency and is completed to be loaded, the dependency package can only be loaded to install and run the application.

[0049] If the dependency package is not completed to be loaded and the dependency relationship of the dependency package is non-unique dependency, the same group dependency package of the dependency package is determined according to the corresponding dependency relationship of the dependency package, it is judged whether there is a same group dependency package of the dependency package which is completed to be loaded, if there is no same group dependency package which is completed to be loaded, it is judged whether there is a dependency package in the local, if there is a dependency package in the local, the local dependency package is added to the installation directory to be installed.

[0050] When the dependency package in the same group dependency package is loaded, even if the current judged dependency package is not loaded, it is also limited to judge whether the other dependency package in the same group dependency package has been loaded, if the other dependency package has been loaded, the current judged dependency package does not need to be loaded, which avoids the waste of computer resources caused by repeated loading of the required dependency package. Only when the other dependency package in the same group dependency package is not loaded, the current judged dependency package is loaded.

[0051] If there is no dependency package in the local, the same group dependency package in the local is added to the installation directory to be installed. If there is no current judged dependency package in the local, the same group dependency package in the local is loaded to realize the corresponding function instead of the current judged dependency package. The same group dependency package is loaded to be completed to be loaded as the current judged dependency package.

[0052] According to one embodiment of the application, when the first dependency package is loaded, if the first dependency package is not loaded in the computing device, it is judged whether the second dependency package or the third dependency package has been loaded, if the second dependency package or the third dependency package has been loaded in the computing device, the computing device has loaded the dependency package which plays the same role as the first dependency package, the first dependency package is not loaded any more, the first dependency package is considered to be completed to be loaded, and other installation packages can be continuously loaded to load and run the application.

[0053] If the second dependency package or the third dependency package is not loaded in the computing device, the first dependency package is loaded. If the first dependency package is not included in the computing device, the second dependency package or the third dependency package is loaded to load and run the application.

[0054] The application discloses an application installation method suitable for being executed in a computing device. The method comprises the following steps: analyzing an installation package of an application to be installed, determining a dependency library of the installation package, the dependency library comprising one or more dependency packages; determining a dependency state of each dependency package according to the dependency library; if the dependency state of each dependency package in the dependency library is that the dependency is met, loading the dependency package according to the dependency library to install the application. In the application, the dependency relationship of the installation package is comprehensively analyzed to obtain the dependency library of the installation package, and whether each dependency package meets the dependency is determined through the dependency library, instead of determining whether the dependency is met only through whether the dependency package exists, so that the judgment standard of the dependency relationship is constructed, and the application adaptability and the installation success rate are improved.

[0055] In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the application can be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been described in detail in order to not obscure the understanding of this description.

[0056] Similarly, it is to be understood that the various features of the inventive aspects sometimes described in the specification in the context of separate embodiments, figures, or descriptions of embodiments, can be provided in any combination.

[0057] Those skilled in the art will understand that the modules, or units, or groups of the devices in the examples disclosed herein can be arranged in a device as described in the examples, or alternatively can be located in one or more devices different from the devices in the examples. The modules in the foregoing examples can be combined into one module or further divided into multiple sub-modules.

[0058] Those skilled in the art will understand that the modules in the devices in the examples can be adaptively changed and arranged in one or more devices different from the examples. The modules or units or groups in the examples can be combined into one module or unit or group, and further divided into multiple sub-modules or sub-units or sub-groups. Except that at least some of such features and / or processes or units are mutually exclusive, any combination of all the features disclosed in the specification and all the processes or units of any method or device disclosed thus can be adopted. Unless explicitly stated otherwise, each feature disclosed in the specification can be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0059] In addition, those skilled in the art will understand that although some of the examples described herein include certain features included in other examples but not others, the combination of features of different examples means within the scope of the application and forms different examples.

[0060] Furthermore, some of the embodiments described herein are described in terms of methods or method elements being performed by a processor of a computer system or other device, or in terms of a method or method elements being performed by an apparatus. Such descriptions are for purposes of clarity and are not meant to limit the scope of the application. The methods or method elements described herein can be performed by one or more processors of a computer system or other device, or by an apparatus, alone or in combination with other devices. The apparatus can be specially constructed for performing the methods or method elements, or can include a general-purpose computer or other device selectively activated or reconfigured by a computer program stored in the computer or other device.

[0061] Various techniques described herein can be implemented in connection with hardware or software or, where appropriate, with a combination of both. Thus, the methods and apparatus of the application, or certain aspects or portions thereof, can take the form of program code (i.e., instructions) embodied in tangible media, such as floppy diskettes, CD-ROMs, hard drives, or any other machine-readable storage medium wherein, when the program code is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the application.

[0062] Where a program code is executed on a programmable computer, the computing device generally includes a processor, a processor readable storage medium (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device. The storage medium is configured to store program code which is readable by the processor; the processor is configured to execute instructions in the program code stored in the storage medium to perform the application installation method.

[0063] In a typical computer system, the computer system includes a processor, a memory, a storage device, and input and output devices. The memory stores program code which is readable by the processor; the processor is configured to execute instructions in the program code stored in the memory to perform the application installation method.

[0064] As used herein, unless otherwise specified, the use of the ordinal adjectives "first", "second", "third", etc., to describe a common object, merely indicate that different instances of like objects are being referred to, and are not intended to imply that the objects so described must be in a given sequence, either temporally, spatially, in ranking, or in any other manner.

[0065] While the application has been described in terms of several embodiments, it will be apparent to those of ordinary skill in the art that many modifications, additions, substitutions, and deletions can be made to the disclosed embodiments without departing from the scope of the application. Accordingly, many modifications, additions, substitutions, and deletions can be made by those skilled in the art without departing from the scope of the application. Accordingly, the disclosure is intended to embrace all such alternatives, modifications, and variations.

Claims

1. A method for installing an application, adapted to be executed in a computing device, the method comprising the steps of: resolving an installation package of an application to be installed to determine a dependency library of the installation package, the dependency library comprising one or more dependency packages; determining a dependency status of each dependency package according to the dependency library, the dependencies including non-unique dependencies, wherein, if the dependency package does not exist locally, determining whether the dependency relationship of the dependency package is a non-unique dependency, if the dependency relationship is a non-unique dependency, determining a same-group dependency package of the dependency package according to the dependency relationship corresponding to the dependency package, and determining a dependency state of the dependency package according to the same-group dependency package of the dependency package, wherein the same-group dependency package refers to a plurality of dependency packages, and the computing device only needs to load one of the dependency packages to normally install and run the application, and other replaceable dependency packages of the one dependency package are taken as the same-group dependency package of the dependency package; if the dependency state of each dependency package in the dependency library is satisfied, loading the dependency package according to the dependency library to install the application.

2. The method of claim 1, wherein, The dependency library further comprises a dependency relationship corresponding to each dependency package, and the step of resolving the installation package of the application to be installed to determine the dependency library of the installation package comprises the steps of: determining one or more dependency relationships of the installation package according to the installation package; determining one or more dependency packages of the installation package according to the dependency relationship of the installation package.

3. The method of claim 1 or 2, wherein, The step of determining the dependency state of each dependency package according to the dependency library comprises the steps of: determining whether the dependency package exists locally; if the dependency package exists locally, determining that the dependency state of the dependency package is satisfied.

4. The method of claim 1, wherein, The dependency relationship further comprises a unique dependency, and the step of determining whether the dependency relationship of the dependency package is a non-unique dependency comprises the steps of: if the dependency relationship is a unique dependency, determining that the dependency state of the dependency package is not satisfied.

5. The method of claim 1 or 4, wherein, The step of determining the dependency state of the dependency package according to the same-group dependency package of the dependency package comprises the steps of: determining whether the same-group dependency package exists locally; if the same-group dependency package exists locally, determining that the dependency state of the dependency package is satisfied.

6. The method of claim 5, wherein, The method further comprises the step of: if the same-group dependency package does not exist locally, determining that the dependency state of the dependency package is not satisfied.

7. The method of claim 4, wherein, The step of loading the dependency package according to the dependency library comprises the steps of: determining whether the dependency package is completed; if the dependency package is not completed and the dependency relationship of the dependency package is a unique dependency, adding the dependency package locally to an installation directory for loading.

8. The method of claim 7, further comprising the steps of: if the dependency package is not completed and the dependency relationship of the dependency package is a non-unique dependency, determining the same-group dependency package of the dependency package according to the dependency relationship corresponding to the dependency package; determining whether the same-group dependency package of the dependency package is completed; if the same-group dependency package is not completed, determining whether the dependency package exists locally; if the dependency package exists locally, adding the dependency package locally to the installation directory for installation.

9. The method of claim 8, further comprising the step of: if the dependency package does not exist locally, adding the same-group dependency package locally to the installation directory for installation.

10. The method of claim 1, wherein, The non-unique dependency corresponds to multiple dependency packages, and the determining the same-group dependency packages of the dependency package according to the dependency relationship corresponding to the dependency package comprises the steps of: Among the multiple dependency packages corresponding to the non-unique dependency, other dependency packages excluding the dependency package are not included as the same-group dependency packages.

11. A computing device comprising: one or more processors; memory; and one or more means for performing any of the methods of claims 1-10, the one or more means comprising instructions to perform the methods.

12. A computer-readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform any of the methods of claims 1-10. ​

Citation Information

Patent Citations

  • Method for installing software installation packet

    CN101000548A

  • Parallel processing method and device of block chain data, equipment and storage medium

    CN108537543A