Movatterモバイル変換


[0]ホーム

URL:


CN114296747B - Software installation package installation method and device - Google Patents

Software installation package installation method and device
Download PDF

Info

Publication number
CN114296747B
CN114296747BCN202111638355.XACN202111638355ACN114296747BCN 114296747 BCN114296747 BCN 114296747BCN 202111638355 ACN202111638355 ACN 202111638355ACN 114296747 BCN114296747 BCN 114296747B
Authority
CN
China
Prior art keywords
hardware architecture
installation package
kernel
software installation
storage space
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111638355.XA
Other languages
Chinese (zh)
Other versions
CN114296747A (en
Inventor
王洪飞
齐向东
吴云坤
李常坤
屈梦梦
胡伟平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Secworld Information Technology Beijing Co Ltd
Qax Technology Group Inc
Original Assignee
Secworld Information Technology Beijing Co Ltd
Qax Technology Group Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Secworld Information Technology Beijing Co Ltd, Qax Technology Group IncfiledCriticalSecworld Information Technology Beijing Co Ltd
Priority to CN202111638355.XApriorityCriticalpatent/CN114296747B/en
Publication of CN114296747ApublicationCriticalpatent/CN114296747A/en
Application grantedgrantedCritical
Publication of CN114296747BpublicationCriticalpatent/CN114296747B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本申请公开了一种软件安装包的安装方法以及装置,涉及计算机技术领域,主要目的在于改善现有在安装软件安装包时,需要基于内核文件对每个内核版本进行适配,导致安装包中所包含的内核文件越来越多,导致安装包越来越大,从而造成交付成本增高的技术问题。包括:获取目标软件安装包的安装指令,所述目标软件安装包中不包含内核文件;获取本地操作系统的硬件架构参数,并从预设存储空间下载与所述硬件架构参数匹配的内核文件,所述预设存储空间中存储有不同操作系统的硬件架构参数分别对应的内核文件;基于所述内核文件安装所述目标软件安装包。主要用于软件安装包的安装。

The present application discloses a method and device for installing a software installation package, which relates to the field of computer technology. The main purpose is to improve the existing technical problem that when installing a software installation package, each kernel version needs to be adapted based on the kernel file, resulting in an increasing number of kernel files contained in the installation package, resulting in an increasing size of the installation package, thereby increasing the delivery cost. It includes: obtaining the installation instructions of the target software installation package, the target software installation package does not contain the kernel file; obtaining the hardware architecture parameters of the local operating system, and downloading the kernel file matching the hardware architecture parameters from the preset storage space, the preset storage space stores the kernel files corresponding to the hardware architecture parameters of different operating systems; installing the target software installation package based on the kernel file. It is mainly used for the installation of software installation packages.

Description

Method and device for installing software installation package
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for installing a software installation package.
Background
In the field of network security technology, terminal security management and control software generally needs to rely on a kernel of a system to realize corresponding functions. Currently, most versions of domestic operating systems are different in kernel, and sometimes even the need for kernel customization occurs, resulting in the simultaneous occurrence of many kernel versions in the market. Because of the installation package of the terminal security management and control software, each kernel version needs to be adapted based on kernel files, so that the number of kernel files contained in the installation package is increased, and the delivery cost is increased. Therefore, how to reduce the capacity of the installation package and adapt to the requirements of different cores becomes a technical problem to be solved in industry.
Disclosure of Invention
In view of this, the present application provides a method and an apparatus for installing a software installation package, which are mainly aimed at improving the technical problem that when installing a software installation package, each kernel version needs to be adapted based on kernel files, so that the number of kernel files contained in the installation package is increased, and the installation package is increased, thereby increasing the delivery cost.
According to one aspect of the present application, there is provided an installation method of a software installation package, including:
Acquiring an installation instruction of a target software installation package, wherein the target software installation package does not contain a kernel file;
Acquiring hardware architecture parameters of a local operating system, and downloading kernel files matched with the hardware architecture parameters from a preset storage space, wherein the preset storage space stores kernel files respectively corresponding to the hardware architecture parameters of different operating systems;
And installing the target software installation package based on the kernel file.
Preferably, before downloading the kernel file matched with the hardware architecture parameter from the preset storage space, the method further includes:
Respectively determining hardware architecture parameters of different operating systems, and acquiring corresponding kernel files;
determining a path of a preset storage space, and storing kernel files corresponding to hardware architecture parameters of each operating system in the preset storage space according to the path.
Preferably, the preset storage space is a cloud software package manager, the hardware architecture parameters include a hardware architecture category and a hardware architecture version, and the downloading of the kernel file matched with the hardware architecture parameters from the preset storage space specifically includes:
and downloading corresponding kernel files from the cloud software package manager based on the hardware architecture type and the hardware architecture version in the hardware architecture parameters.
Preferably, the kernel file is stored in the form of a drive installation package, and the downloading of the kernel file matched with the hardware architecture parameter from a preset storage space includes:
downloading a drive installation package matched with the hardware architecture parameters from the cloud software package manager;
the installing the target installation package based on the kernel file specifically comprises the following steps:
Decompressing the drive installation package to obtain the kernel file;
Releasing the kernel file to the catalog of the target software installation package based on a preset storage path to obtain a combined software installation package;
And installing the combined software installation package.
Preferably, the acquiring the hardware architecture parameter of the local operating system specifically includes:
The local operating system is instructed to execute the specified command, and an execution result is generated;
acquiring the execution result, and matching the execution result with an expected execution result, wherein the expected execution result is used for representing the expected execution result obtained by executing the specified command based on the hardware architecture of different operating systems;
and determining hardware architecture parameters of the local operating system based on the expected execution result matched with the execution result.
Preferably, before releasing the kernel file of the driver installation package into the directory of the target installation package, the method further includes:
Acquiring a first signing key of the drive installation package, and matching the first signing key with a second signing key, wherein the second signing key is stored in the local operating system;
If the first signature key is matched with the second signature key, determining that the driving installation package is in a legal state so as to release a kernel file in the driving installation package;
And if the first signature key is not matched with the second signature key, outputting warning information to prompt the driver installation package to be in an illegal state.
Preferably, the method further comprises:
and if the kernel file matched with the hardware architecture parameters does not exist in the preset storage space, outputting a prompt of failure in adaptation.
According to another aspect of the present application, there is provided an installation apparatus of a software installation package, comprising:
The system comprises an acquisition module, a storage module and a storage module, wherein the acquisition module is used for acquiring an installation instruction of a target software installation package, and the target software installation package does not contain a kernel file;
the downloading module is used for acquiring hardware architecture parameters of the local operating system, downloading kernel files matched with the hardware architecture parameters from a preset storage space, and storing the kernel files respectively corresponding to the hardware architecture parameters of different operating systems in the preset storage space;
And the installation module is used for installing the target software installation package based on the kernel file.
Preferably, before the downloading module, the apparatus further includes:
The determining device is used for respectively determining hardware architecture parameters of different operating systems and acquiring corresponding kernel files;
The storage module is used for determining a path where a preset storage space is located, and storing kernel files corresponding to hardware architecture parameters of each operating system in the preset storage space according to the path.
Preferably, the preset storage space is a cloud software package manager, the hardware architecture parameters include a hardware architecture type and a hardware architecture version, and the downloading module is specifically configured to:
and downloading corresponding kernel files from the cloud software package manager based on the hardware architecture type and the hardware architecture version in the hardware architecture parameters.
Preferably, the kernel file is stored in the form of a drive installation package, and the download module is specifically configured to:
downloading a drive installation package matched with the hardware architecture parameters from the cloud software package manager;
The installation module specifically comprises:
The decompression unit is used for decompressing the drive installation package to obtain the kernel file;
The releasing unit is used for releasing the kernel file to the catalog of the target software installation package based on a preset storage path to obtain a combined software installation package;
and the installation unit is used for installing the combined software installation package.
Preferably, the downloading module specifically further includes:
The execution unit is used for indicating the local operating system to execute the specified command and generating an execution result;
The matching unit is used for acquiring the execution result and matching the execution result with an expected execution result, and the expected execution result is used for representing the expected execution result obtained by executing the specified command based on the hardware architecture of different operating systems;
and the determining unit is used for determining hardware architecture parameters of the local operating system based on the expected execution result matched with the execution result.
Preferably, before the release unit, the module further comprises:
the matching unit is used for acquiring a first signing key of the drive installation package, matching the first signing key with a second signing key, and storing the second signing key in the local operating system;
the determining unit is used for determining that the driving installation package is in a legal state if the first signing key is matched with the second signing key so as to release the kernel file in the driving installation package;
and the warning unit is used for outputting warning information to prompt that the drive installation package is in an illegal state if the first signing key is not matched with the second signing key.
Preferably, the apparatus further comprises:
And the output module is used for outputting a prompt of failure in adaptation if the kernel file matched with the hardware architecture parameter does not exist in the preset storage space.
According to still another aspect of the present application, there is provided a storage medium having stored therein at least one executable instruction for causing a processor to perform operations corresponding to the installation method of the software installation package described above.
According to still another aspect of the present application, there is provided a terminal including a processor, a memory, a communication interface, and a communication bus through which the processor, the memory, and the communication interface complete communication with each other;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the installation method of the software installation package.
By means of the technical scheme, the technical scheme provided by the embodiment of the application has at least the following advantages:
The application provides a method and a device for installing a software installation package, wherein an installation instruction of a target software installation package is firstly obtained, the target software installation package does not contain a kernel file, secondly, hardware architecture parameters of a local operating system are obtained, kernel files matched with the hardware architecture parameters are downloaded from a preset storage space, kernel files respectively corresponding to the hardware architecture parameters of different operating systems are stored in the preset storage space, and finally, the target software installation package is installed based on the kernel files. Compared with the prior art, the method for eliminating the kernel files in the software installation package reduces the capacity of the software installation package, so that the delivery cost of the software installation package is reduced, and meanwhile, when the software installation package is installed, the matched kernel files are downloaded to a preset storage space, so that the adaptation between the software installation package and kernels of different operating systems is realized, and the installation requirement of the software installation package is further met.
The foregoing description is only an overview of the present application, and is intended to be implemented in accordance with the teachings of the present application in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present application more readily apparent.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 shows a flowchart of an installation method of a software installation package according to an embodiment of the present application;
fig. 2 shows an overall flowchart in an application scenario provided by an embodiment of the present application;
FIG. 3 is a block diagram showing an installation apparatus of a software installation package according to an embodiment of the present application;
Fig. 4 shows a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below 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 embodied 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.
Meanwhile, it should be understood that the sizes of the respective parts shown in the drawings are not drawn in actual scale for convenience of description.
The following description of at least one exemplary embodiment is merely exemplary in nature and is in no way intended to limit the application, its application, or uses.
Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail, but are intended to be part of the specification where appropriate.
It should be noted that like reference numerals and letters refer to like items in the following figures, and thus once an item is defined in one figure, no further discussion thereof is necessary in subsequent figures.
Embodiments of the application are operational with numerous other general purpose or special purpose computing system environments or configurations. Examples of well known computing systems, environments, and/or configurations that may be suitable for use with the computer system/server include, but are not limited to, personal computer systems, server computer systems, thin clients, thick clients, hand-held or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, minicomputers systems, mainframe computer systems, and distributed cloud computing environments that include any of the above systems, and the like.
A computer system/server may be described in the general context of computer-system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc., that perform particular tasks or implement particular abstract data types. The computer system/server may be implemented in a distributed cloud computing environment in which tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computing system storage media including memory storage devices.
The embodiment of the application provides an installation method of a software installation package, as shown in fig. 1, comprising the following steps:
101. and acquiring an installation instruction of the target software installation package.
In the embodiment of the application, the current execution end acquires the installation instruction for the target software installation package, wherein the current execution end can be a local operating system of the target software installation package to be installed, for example, an operating system of the mobile terminal device and the like. The target software installation package does not contain kernel files, namely, the lightweight software installation package.
It should be noted that, in the embodiment of the application, the kernel file for adapting the system in the software installation package is removed, so as to reduce the capacity of the software installation package, and further achieve the purpose of reducing the delivery cost of the software installation package.
102. And acquiring hardware architecture parameters of the local operating system, and downloading a kernel file matched with the hardware architecture parameters from a preset storage space.
In the embodiment of the application, the preset storage space stores kernel files respectively corresponding to hardware architecture parameters of different operating systems, and the current execution end firstly acquires the hardware architecture parameters of the local operating system and then downloads the kernel files matched with the hardware architecture parameters of the local operating system from the preset storage space. The method and the device for the software installation of the local operating system are used for representing the operating system of the current installation target software installation package, the hardware architecture parameters can comprise parameters such as hardware architecture types, hardware architecture versions and the like, the embodiment of the application is not particularly limited, the preset storage space can be a storage space in the pre-designated local operating system, for example, a storage space in terminal equipment, a pre-designated cloud storage space, for example, a cloud software package manager and the like, the embodiment of the application is not particularly limited, and the kernel file is used for representing a driving file for realizing the adaptation of the software installation package and the local operating system.
It should be noted that, because there are differences between hardware architecture parameters of different operating systems, when the software installation package is installed, the software installation package needs to be adapted to the local operating system based on the kernel file matched with the local operating system, and the software installation package is further installed. It will be appreciated that the software installation package to be installed is already defined in step 101 as a lightweight software installation package that does not include a kernel file, and therefore, when installing this lightweight software installation package, it is necessary to download a matching kernel file from a preset storage space so that the installation is successful.
103. And installing the target software installation package based on the kernel file.
In the embodiment of the present application, the target software installation package is adapted to the local operating system based on the kernel file downloaded in step 102, and the software installation package is further installed.
Compared with the prior art, the method for eliminating the kernel files in the software installation package reduces the capacity of the software installation package, so that the delivery cost of the software installation package is reduced, and meanwhile, when the software installation package is installed, the matched kernel files are downloaded to a preset storage space, so that the adaptation between the software installation package and kernels of different operating systems is realized, and the installation requirement of the software installation package is further met.
In order to quickly and accurately obtain the kernel files matched with the local operating system, the method further comprises the steps of respectively determining hardware architecture parameters of different operating systems and obtaining corresponding kernel files before downloading the kernel files matched with the hardware architecture parameters from a preset storage space, determining a path where the preset storage space is located, and respectively storing the kernel files corresponding to the hardware architecture parameters of each operating system in the preset storage space according to the path.
Specifically, the hardware architecture parameters of each operating system may be collected and determined respectively, and include a class, a version, etc. of the hardware architecture, which is not specifically limited in the embodiment of the present application. And secondly, obtaining kernel files matched with various hardware architecture parameters, and downloading according to the hardware architecture parameters of the operating system when the operating system installs the lightweight software installation package. And finally determining the path of the preset storage space, and storing all the kernel files in the preset storage space according to the path. The preset storage space can be a storage space in a local operating system or a storage space in a cloud. Based on the method, when the corresponding kernel file is searched according to the hardware architecture parameters, the matched kernel file can be quickly and accurately searched without increasing the capacity of the software installation package.
It should be noted that, when the kernel file is stored in the preset storage space, the hardware architecture parameter may be used as an index, and the kernel file and the hardware architecture parameter are stored in a one-to-one corresponding manner, so that when searching, the hardware architecture parameter may be used as a keyword, so that the required kernel file may be quickly searched to improve the searching efficiency and accuracy.
In the embodiment of the application, for further explanation and limitation, the preset storage space is a cloud software package manager, the hardware architecture parameters comprise hardware architecture types and hardware architecture versions, and the downloading of the kernel files matched with the hardware architecture parameters from the preset storage space specifically comprises the downloading of the corresponding kernel files from the cloud software package manager based on the hardware architecture types and the hardware architecture versions in the hardware architecture parameters.
In order not to increase the capacity of the software installation package and occupy the memory of the local system, the storage space can be preset as a cloud software package manager. The hardware architecture parameters comprise hardware architecture categories and hardware architecture versions, wherein the hardware architecture categories comprise arm, mips, X, SW, loongArch and other category models, and the hardware architecture versions are used for classifying the hardware architecture more finely. It can be understood that, due to the continuous update of the technology, the hardware architecture of the same category is also continuously updated, and even if there is a difference between different versions of the hardware architecture of the same category, the adaptation degree of the downloaded kernel file can be effectively improved by taking the hardware architecture category and the hardware architecture version in the hardware architecture parameters as the standard for screening the kernel file.
Optionally, when the kernel files are stored in the cloud software package manager, the kernel files may be classified according to hardware architecture categories, where each hardware architecture category includes kernel files of all versions under the category. And when the software installation package is installed, the matched kernel files are further screened based on the hardware architecture version.
In the embodiment of the application, for further explanation and limitation, the kernel file is stored in a form of a drive installation package, and the kernel file matched with the hardware architecture parameters is downloaded from a preset storage space, wherein the method comprises the steps of downloading the drive installation package matched with the hardware architecture parameters from a cloud software package manager; the method comprises the steps of installing a target installation package based on a kernel file, namely decompressing the driving installation package to obtain the kernel file, releasing the kernel file to a catalog of the target software installation package based on a preset storage path to obtain a combined software installation package, and installing the combined software installation package.
Specifically, in order to save storage resources and facilitate downloading, the kernel file may be stored in the cloud software package manager in the form of a drive installation package. When the software installation package is installed, a driver installation package matched with the software installation package is downloaded from a cloud software package manager based on hardware architecture parameters of a local operating system, decompression operation is carried out on the driver installation package to obtain a kernel file contained in the kernel file, the kernel file is released to a directory of a target software installation package to be installed according to a preset storage path, and a combined installation package containing the kernel file is obtained. At this time, the software installation package includes the kernel file, so that the adaptation with the local operating system can be realized, and the combined installation package can be successfully installed.
In order to accurately acquire hardware architecture parameters of a local operating system, the method specifically comprises the steps of instructing the local operating system to execute a specified command to generate an execution result, acquiring the execution result, matching the execution result with an expected execution result, wherein the expected execution result is used for representing expected execution results obtained by executing the specified command based on hardware architectures of different operating systems, and determining the hardware architecture parameters of the local operating system based on the expected execution result matched with the execution result.
The method comprises the steps of determining a specific command, wherein the specific command is used for representing commands which enable operating systems of different hardware architectures to generate different execution results, the execution results are used for representing the execution results generated by the local operating system executing the specific command, and the expected execution results are used for representing expected execution results obtained by executing the specific command based on the hardware architectures of different operating systems. Specifically, first, the expected execution results obtained by executing the same specified command based on the hardware architecture of different operating systems are obtained respectively, and the mapping relation between the hardware architecture of different operating systems and the expected execution results is generated. And then the current execution end instructs the local operating system to execute the same specified command to generate an execution result. And finally, matching an execution result generated by the local operating system with an expected execution result, and determining hardware architecture parameters of the local operating system based on the mapping relation.
Compared with the prior art, the method can accurately and rapidly acquire the hardware architecture parameters of the local operating system.
In order to prevent a driver installation package stored in a cloud software manager from being maliciously implanted with illegal files, so that a local operating system is attacked, before a kernel file of the driver installation package is released into a directory of a target installation package, the method further comprises the steps of obtaining a first signature key of the driver installation package, matching the first signature key with a second signature key, storing the second signature key in the local operating system, determining that the driver installation package is legal to release the kernel file in the driver installation package if the first signature key is matched with the second signature key, and outputting warning information to prompt the driver installation package to be illegal.
The first signing key and the second signing key are pre-generated signing key pairs, the first signing key is used for representing the unique identity of the drive installation package, and the second signing key is stored in the local operating system and used as a verification signing key matched with the first signing key. Specifically, when a driver installation package matched with hardware architecture parameters of a local operating system is matched, a first signature key carried by the driver installation package is obtained, and the first signature key is matched with a second signature key stored in the local operating system. If the two are matched, the current drive installation package is in legal state so as to further release the kernel file, if the two are not matched, the current drive file is modified or replaced, and if the release is continued, the attack risk possibly exists. Optionally, the current executing end may output a warning message to prompt that the current driving installation package is in an illegal state.
In the embodiment of the application, in order to make the installation method of the software installation package more perfect, the embodiment method further comprises outputting a prompt of failure in adaptation if a kernel file matched with the hardware architecture parameters does not exist in the preset storage space.
Specifically, if the kernel file matched with the current hardware architecture parameter is not matched, the fact that the target software installation package lacks the kernel file matched with the local operating system is indicated, if the target software installation package cannot be continuously installed, a prompt of failure in adaptation is output, and therefore the target software installation package cannot be installed is prompted.
In a specific application scenario, as shown in fig. 2. Firstly acquiring an installation instruction of a client, secondly judging the type of a hardware architecture of a local operating system, downloading a corresponding drive installation package according to the type of the hardware architecture, releasing a kernel file therein, and finally loading the corresponding kernel file according to a hardware architecture version by a product client to finish installation and operation.
The application provides an installation method of a software installation package, which comprises the steps of firstly obtaining an installation instruction of a target software installation package, wherein the target software installation package does not contain a kernel file, secondly obtaining hardware architecture parameters of a local operating system, downloading the kernel files matched with the hardware architecture parameters from a preset storage space, storing the kernel files respectively corresponding to the hardware architecture parameters of different operating systems in the preset storage space, and finally installing the target software installation package based on the kernel files. Compared with the prior art, the method for eliminating the kernel files in the software installation package reduces the capacity of the software installation package, so that the delivery cost of the software installation package is reduced, and meanwhile, when the software installation package is installed, the matched kernel files are downloaded to a preset storage space, so that the adaptation between the software installation package and kernels of different operating systems is realized, and the installation requirement of the software installation package is further met.
Further, as an implementation of the method shown in fig. 1, an embodiment of the present application provides an apparatus, as shown in fig. 3, where the apparatus includes:
the acquisition module 21, the download module 22, the installation module 23.
An obtaining module 21, configured to obtain an installation instruction of a target software installation package, where the target software installation package does not include a kernel file;
the downloading module 22 is configured to obtain hardware architecture parameters of a local operating system, and download kernel files matched with the hardware architecture parameters from a preset storage space, where kernel files corresponding to the hardware architecture parameters of different operating systems are stored in the preset storage space;
an installation module 23, configured to install the target software installation package based on the kernel file.
In a specific application scenario, before the downloading module, the apparatus further includes:
The determining device is used for respectively determining hardware architecture parameters of different operating systems and acquiring corresponding kernel files;
The storage module is used for determining a path where a preset storage space is located, and storing kernel files corresponding to hardware architecture parameters of each operating system in the preset storage space according to the path.
In a specific application scenario, the preset storage space is a cloud software package manager, the hardware architecture parameters include a hardware architecture category and a hardware architecture version, and the downloading module is specifically configured to:
and downloading corresponding kernel files from the cloud software package manager based on the hardware architecture type and the hardware architecture version in the hardware architecture parameters.
In a specific application scenario, the kernel file is stored in a form of a drive installation package, and the download module is specifically configured to:
downloading a drive installation package matched with the hardware architecture parameters from the cloud software package manager;
The installation module specifically comprises:
The decompression unit is used for decompressing the drive installation package to obtain the kernel file;
The releasing unit is used for releasing the kernel file to the catalog of the target software installation package based on a preset storage path to obtain a combined software installation package;
and the installation unit is used for installing the combined software installation package.
In a specific application scenario, the downloading module specifically further includes:
The execution unit is used for indicating the local operating system to execute the specified command and generating an execution result;
The matching unit is used for acquiring the execution result and matching the execution result with an expected execution result, and the expected execution result is used for representing the expected execution result obtained by executing the specified command based on the hardware architecture of different operating systems;
and the determining unit is used for determining hardware architecture parameters of the local operating system based on the expected execution result matched with the execution result.
In a specific application scenario, before the releasing unit, the module further includes:
the matching unit is used for acquiring a first signing key of the drive installation package, matching the first signing key with a second signing key, and storing the second signing key in the local operating system;
the determining unit is used for determining that the driving installation package is in a legal state if the first signing key is matched with the second signing key so as to release the kernel file in the driving installation package;
and the warning unit is used for outputting warning information to prompt that the drive installation package is in an illegal state if the first signing key is not matched with the second signing key.
In a specific application scenario, the apparatus further includes:
And the output module is used for outputting a prompt of failure in adaptation if the kernel file matched with the hardware architecture parameter does not exist in the preset storage space.
The application provides an installation device of a software installation package, which comprises the steps of firstly obtaining an installation instruction of a target software installation package, wherein the target software installation package does not contain a kernel file, secondly obtaining hardware architecture parameters of a local operating system, downloading the kernel files matched with the hardware architecture parameters from a preset storage space, storing the kernel files respectively corresponding to the hardware architecture parameters of different operating systems in the preset storage space, and finally installing the target software installation package based on the kernel files. Compared with the prior art, the method for eliminating the kernel files in the software installation package reduces the capacity of the software installation package, so that the delivery cost of the software installation package is reduced, and meanwhile, when the software installation package is installed, the matched kernel files are downloaded to a preset storage space, so that the adaptation between the software installation package and kernels of different operating systems is realized, and the installation requirement of the software installation package is further met.
According to one embodiment of the present application, there is provided a storage medium storing at least one executable instruction for performing the installation method of the software installation package in any of the above-described method embodiments.
Based on such understanding, the technical solution of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.), and includes several instructions for causing a computer device (may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective implementation scenario of the present application.
Fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present application, and the specific embodiment of the present application is not limited to the specific implementation of the terminal.
As shown in FIG. 4, the terminal may include a processor 302, a communication interface (Commun i cat i ons I NTERFACE) 304, a memory 306, and a communication bus 308.
Wherein the processor 302, the communication interface 304, and the memory 306 communicate with each other via a communication bus 308.
A communication interface 304 for communicating with network elements of other devices, such as clients or other servers.
The processor 302 is configured to execute the program 310, and may specifically perform relevant steps in an embodiment of an installation method of the software installation package of the interface.
In particular, program 310 may include program code including computer-operating instructions.
Processor 302 may be a central processing unit CPU or a specific integrated circuit AS ic (APP L I CAT I on SPEC I F I C I NTEGRATED CI rcu it) or one or more integrated circuits configured to implement embodiments of the present application. The one or more processors included in the terminal may be the same type of processor, such AS one or more CPUs, or different types of processors, such AS one or more CPUs and one or more AS ics.
Memory 306 for storing programs 310. Memory 306 may comprise high-speed RAM memory or may also include non-volatile memory (non-vo l at i l e memory), such as at least one disk memory.
Program 310 may be specifically operable to cause processor 302 to:
Acquiring an installation instruction of a target software installation package, wherein the target software installation package does not contain a kernel file;
Acquiring hardware architecture parameters of a local operating system, and downloading kernel files matched with the hardware architecture parameters from a preset storage space, wherein the preset storage space stores kernel files respectively corresponding to the hardware architecture parameters of different operating systems;
And installing the target software installation package based on the kernel file.
The storage medium may also include an operating system, a network communication module. The operating system is a program that manages the installation entity device hardware and software resources of the software installation package described above, supporting the execution of information handling programs and other software and/or programs. The network communication module is used for realizing communication among all components in the storage medium and communication with other hardware and software in the information processing entity equipment.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different manner from other embodiments, so that the same or similar parts between the embodiments are mutually referred to. For system embodiments, the description is relatively simple as it essentially corresponds to method embodiments, and reference should be made to the description of method embodiments for relevant points.
The method and system of the present application may be implemented in a number of ways. For example, the methods and systems of the present application may be implemented by software, hardware, firmware, or any combination of software, hardware, firmware. The above-described sequence of steps for the method is for illustration only, and the steps of the method of the present application are not limited to the sequence specifically described above unless specifically stated otherwise. Furthermore, in some embodiments, the present application may also be embodied as programs recorded in a recording medium, the programs including machine-readable instructions for implementing the methods according to the present application. Thus, the present application also covers a recording medium storing a program for executing the method according to the present application.
It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (9)

CN202111638355.XA2021-12-292021-12-29 Software installation package installation method and deviceActiveCN114296747B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202111638355.XACN114296747B (en)2021-12-292021-12-29 Software installation package installation method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202111638355.XACN114296747B (en)2021-12-292021-12-29 Software installation package installation method and device

Publications (2)

Publication NumberPublication Date
CN114296747A CN114296747A (en)2022-04-08
CN114296747Btrue CN114296747B (en)2025-03-21

Family

ID=80970947

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202111638355.XAActiveCN114296747B (en)2021-12-292021-12-29 Software installation package installation method and device

Country Status (1)

CountryLink
CN (1)CN114296747B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114780259B (en)*2022-04-182025-08-29杭州义益钛迪信息技术有限公司 Kernel matching method, server and storage medium
CN115437696B (en)*2022-08-042023-04-18北京海联捷讯科技股份有限公司Self-adaptive configuration method and device for trusted platform
CN118708235A (en)*2024-08-282024-09-27芯瞳半导体技术(山东)有限公司 Software installation package construction method, system, device, equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112527336A (en)*2020-12-242021-03-19深圳市科力锐科技有限公司Operating system software installation method, device, equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US8843739B2 (en)*2012-04-042014-09-23Lockheed Martin CorporationAnti-tamper device, system, method, and computer-readable medium
CN106126256B (en)*2016-07-012019-11-12武汉深之度科技有限公司A kind of driven management method, apparatus and system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112527336A (en)*2020-12-242021-03-19深圳市科力锐科技有限公司Operating system software installation method, device, equipment and storage medium

Also Published As

Publication numberPublication date
CN114296747A (en)2022-04-08

Similar Documents

PublicationPublication DateTitle
CN114296747B (en) Software installation package installation method and device
US9075693B2 (en)Methods for updating applications
US9507581B2 (en)Systems and methods of device firmware delivery for pre-boot updates
US8645942B2 (en)Software update syndication
US8640119B2 (en)Determining compatibility of a software package update using a version identifier
US8281298B2 (en)Evaluating computer driver update compliance
US10216580B1 (en)System and method for mainframe computers backup and restore on object storage systems
US8799890B2 (en)Generating a version identifier for a computing system based on software packages installed on the computing system
US10929115B2 (en)Distribution and execution of instructions in a distributed computing environment
US10452615B2 (en)Mixing software based compression requests with hardware accelerated requests
CN103745158A (en)Method and device for repairing system bugs
US11586430B2 (en)Distribution and execution of instructions in a distributed computing environment
WO2017157178A1 (en)Mobile terminal application update method and device
CN114296835B (en) Methods and devices for launching applications
US10365910B2 (en)Systems and methods for uninstalling or upgrading software if package cache is removed or corrupted
CN113806009A (en)Automatic Docker container reconstruction method, terminal device and storage medium
CN110704025A (en)Method and device for generating coding specification tool, storage medium and electronic equipment
US20120066669A1 (en)Creating a superseding software release
US20190317747A1 (en)Binary restoration in a container orchestration system
CN105912596B (en) A method and device for operating a database
US10776132B1 (en)System and method for preboot device driver provisioning for remotely-staged operating system
US8615751B2 (en)Seeding product information
CN106383703A (en)Hard disk driver loading method and apparatus for linux operation system
EP2680135A1 (en)Methods for updating applications
US20180341475A1 (en)Just In Time Deployment with Package Managers

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
CB02Change of applicant information

Country or region after:China

Address after:100032 NO.332, 3rd floor, Building 102, 28 xinjiekouwai street, Xicheng District, Beijing

Applicant after:QAX Technology Group Inc.

Applicant after:Qianxin Wangshen information technology (Beijing) Co.,Ltd.

Address before:100032 NO.332, 3rd floor, Building 102, 28 xinjiekouwai street, Xicheng District, Beijing

Applicant before:QAX Technology Group Inc.

Country or region before:China

Applicant before:LEGENDSEC INFORMATION TECHNOLOGY (BEIJING) Inc.

CB02Change of applicant information
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp