Software installation methods, devices, electronic equipment and storage media

By obtaining software configuration files and modifying kernel files using target adaptation tools, the dependency problem in porting custom software to different operating systems was solved, achieving automated adaptation, shortening the development cycle, and reducing costs.

CN114879982BActive Publication Date: 2025-11-14CHINA FAW CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210602581.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-30
Publication Date
2025-11-14
Estimated Expiration
2042-05-30

AI Technical Summary

Technical Problem

When custom software is ported from one operating system to another, developers often lack understanding of the operating system structure, leading to repeated modifications and exploratory development, making it difficult to grasp the relevant hardware principles.

Method used

By obtaining the software configuration file of the software to be installed, performing pre-installation processing, and using target adaptation tools to modify the kernel file, the automatic adaptation of custom software to different operating systems can be achieved.

Benefits of technology

This reduces the dependence of the porting and adaptation process on the operating system kernel structure, enables automated adaptation of custom software in different operating systems, shortens the development cycle, and saves software development costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114879982B_ABST
    Figure CN114879982B_ABST
Patent Text Reader

Abstract

This invention discloses a software installation method, apparatus, electronic device, and storage medium. The method includes: obtaining a software configuration file of the software to be installed in a first operating system; performing pre-installation processing on the software based on a second operating system and the software configuration file; obtaining a target adaptation tool to modify the kernel file of the software to be installed, thereby enabling the software to be installed normally in the second operating system; wherein the target adaptation tool includes a script file for at least one operating system and a corresponding code trimming tool. The technical solution of this invention, by employing a target adaptation tool, reduces the dependence of the porting and adaptation process on structures such as the operating system kernel, and achieves automated adaptation of custom software in different operating systems, significantly shortening the development cycle and saving software development costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of software development technology, and in particular to a software installation method, apparatus, electronic device, and storage medium. Background Technology

[0002] In recent years, numerous new Linux-based operating systems have emerged in the automotive R&D field. Besides common distributions like CentOS, Ubuntu, and Red Hat, other operating systems developed based on the Linux kernel mechanism have also appeared. In the actual development of basic software, due to limitations and requirements of device environments and development tools, it is necessary to port certain custom software from one system environment to another.

[0003] In existing development methods, porting custom software from one operating system to another is often exploratory, as developers lack understanding of the operating system architecture and have difficulty grasping the relevant hardware principles. This leads to repeated modifications and program runs. Summary of the Invention

[0004] This invention provides a software installation method, apparatus, electronic device, and storage medium to enable custom software to support operation in multiple system environments.

[0005] According to one aspect of the present invention, a software installation method is provided, the method comprising:

[0006] Obtain the software configuration file of the software to be installed in the first operating system;

[0007] Based on the second operating system and software configuration files, the software to be installed is pre-installed.

[0008] Obtain a target adaptation tool to modify the kernel file of the software to be installed, so as to enable the software to be installed normally on the second operating system; wherein, the target adaptation tool includes script files of at least one operating system and corresponding code trimming tools.

[0009] According to another aspect of the present invention, a software installation apparatus is provided, the apparatus comprising:

[0010] The software configuration file acquisition module is used to acquire the software configuration file of the software to be installed in the first operating system.

[0011] The software pre-installation module is used to pre-install software based on a second operating system and software configuration files;

[0012] The kernel file modification module is used to obtain the target adaptation tool, and to modify the kernel file of the software to be installed based on the target adaptation tool, so as to enable the software to be installed to be installed normally in the second operating system; wherein, the target adaptation tool includes script files of at least one operating system and corresponding code trimming tools.

[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0014] At least one processor; and

[0015] A memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the software installation method according to any embodiment of the present invention.

[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the software installation method described in any embodiment of the present invention.

[0018] The technical solution of this invention first obtains the software configuration file of the software to be installed in the first operating system. Further, based on the second operating system and the software configuration file, pre-installation processing is performed on the software to be installed. Finally, a target adaptation tool is obtained, and the kernel file of the software to be installed is modified based on the target adaptation tool to enable the software to be installed to be installed normally in the second operating system. This solves the problem in the prior art where developers lack understanding of the operating system structure and have difficulty mastering hardware-related principles, leading to repeated modifications and exploratory development. By using a target adaptation tool, the dependence of the porting and adaptation process on the operating system kernel and other structures is reduced, and the effect of automated adaptation of custom software in different operating systems is achieved, greatly shortening the development cycle and saving software development costs.

[0019] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0020] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 This is a flowchart of a software installation method provided according to Embodiment 1 of the present invention;

[0022] Figure 2 This is a flowchart of a software installation method provided according to Embodiment 2 of the present invention;

[0023] Figure 3 This is a schematic diagram of the structure of a software installation device according to Embodiment 3 of the present invention;

[0024] Figure 4 This is a schematic diagram of the structure of an electronic device that implements the software installation method of this invention. Detailed Implementation

[0025] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0026] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0027] Example 1

[0028] Figure 1This is a flowchart of a software installation method according to Embodiment 1 of the present invention. This embodiment is applicable to situations where software is ported from one operating system to another. The method can be executed by a software installation device, which can be implemented in hardware and / or software, and can be configured in a terminal and / or server. Figure 1 As shown, the method includes:

[0029] S110: Obtain the software configuration file of the software to be installed in the first operating system.

[0030] In this embodiment, the software to be installed can be custom software that needs to be installed on another operating system, or software that developers intend to install on another operating system. For example, the software to be installed can be the AOS application infrastructure platform software. The first operating system can be the original operating system on which the software to be installed resides. An operating system is system software composed of a kernel, drivers, interface libraries, and peripheral devices. The kernel is the core of an operating system, a first-layer software extension based on hardware, providing the most basic functions of the operating system and determining its performance and stability. In the file system, it generally exists as a kernel folder, containing kernel file information. For example, the first operating system can be CentOS, Ubuntu, or Red Hat. The software configuration file can be all files in the software project package to be installed. For example, the software configuration file can be a software package, an image file, or a Board Support Package (BSP), etc., and this embodiment does not limit this.

[0031] It should be noted that in the actual development of basic software, due to the limitations and requirements of equipment environment and development tools, it is often necessary to port a certain type of custom software from one operating system to another. When porting software, it is necessary to package the software to be ported in the existing operating system so that it can run normally on the other operating system.

[0032] Optionally, the software configuration file of the software to be installed in the first operating system can be obtained, including: packaging the software to be ported based on the first operating system and extracting the software configuration file.

[0033] In practice, a first operating system is run, and the software to be installed on the first operating system is packaged to obtain a software package containing all configuration files in the software project package. Furthermore, this software package is extracted so that it can be applied to another operating system.

[0034] It should also be noted that extracting the software configuration file can be done by storing the software configuration file on a mobile storage device, such as a USB flash drive or a portable hard drive, or by uploading the software configuration file to a cloud storage platform. This embodiment does not specifically limit this method.

[0035] S120 performs pre-installation processing on the software to be installed based on the second operating system and software configuration files.

[0036] In this embodiment, the second operating system can be the operating system that will support the software to be installed. For example, the second operating system can also be CentOS, Ubuntu, or Red Hat. Pre-installation can involve installing the software to be installed on the second operating system according to a pre-set installation method, wherein the pre-set installation method is the same as the installation method used for the software in the first operating system.

[0037] It should be noted that both the first and second operating systems are based on the Linux kernel mechanism.

[0038] In practical applications, when it is necessary to port the software to be installed from the first operating system to the second operating system, the software configuration file of the software to be installed in the first operating system can be downloaded to the second operating system, so that the second operating system can install the software engineering package of the software to be installed in the system.

[0039] Optionally, based on a second operating system and a software configuration file, pre-installation processing of the software to be installed can be performed, including: running the software configuration file based on the second operating system to achieve pre-installation of the software to be installed.

[0040] In practice, after extracting the software configuration file of the software to be installed, the second operating system is run, the software configuration file is uploaded to the second operating system, and the software configuration file is run to install the software to be installed in the second operating system in the same way as it is installed in the first operating system, thus completing the pre-installation process of the software to be installed in the second operating system.

[0041] S130. Obtain the target adapter tool, and modify the kernel file of the software to be installed based on the target adapter tool so that the software to be installed can be installed normally in the second operating system.

[0042] In this embodiment, the target adaptation tool can be a pre-written piece of program code used to enable the software to be installed to automatically switch systems across different operating systems without requiring porting and adaptation. Optionally, the target adaptation tool includes a script file for at least one operating system and a corresponding code trimming tool. The code trimming tool can be a pre-written piece of program code used to modify the kernel code. For example, the target adaptation tool can be a third-party plugin or an application programming interface (API), etc., and this embodiment does not specifically limit its application to this. The kernel file is the core of the software to be installed and is the foundation for its normal operation.

[0043] In practical applications, after the pre-installation of the software to be installed is completed, since the kernel configurations of the first operating system and the second operating system are different, the software to be installed still needs to be further adapted according to the kernel configuration of the second operating system. Based on this, the kernel code of the software to be installed can be modified by the target adaptation tool so that it can be modified to be recognizable by the second operating system.

[0044] Optionally, obtaining a target adaptation tool and modifying the kernel file of the software to be installed based on the target adaptation tool to enable the software to be installed to be installed normally in the second operating system includes: when it is detected that the target user calls the target adaptation tool based on the target terminal, obtaining the first system name of the first operating system and the second system name of the second operating system; modifying the kernel file of the software to be installed based on the first system name, the second system name and the corresponding code trimming tool to enable the software to be installed to be installed and run normally in the second operating system.

[0045] In this embodiment, the target user can be a software developer or software integrator. The target terminal is a smart terminal device capable of running a Linux operating system, such as a personal computer or desktop computer. The first system name is used to identify the first operating system. The second system name is used to identify the second operating system.

[0046] In practice, after pre-installing the software to be installed on the second operating system, to ensure the software runs correctly on the second operating system, a target adaptation tool can be run. When the target user calls the target adaptation tool on the target terminal, the first system name of the first operating system associated with the software to be installed and the second system name of the second operating system are obtained. This allows the target adaptation tool to determine the appropriate code trimming tool based on the first and second system names, modifying the code in the kernel file of the software to support the first operating system to be recognizable by the second operating system, thereby enabling the software to be installed and run normally on the second operating system.

[0047] It should be noted that the advantages of using target adaptation tools are: they can eliminate the process of repeated adaptation and debugging, shorten the software development cycle, and eliminate the need to gather developers from different disciplines to exchange and learn from each other's experiences before clarifying the problems and developing adaptation tools. This allows custom software to achieve automated porting and system switching on different operating systems.

[0048] Based on the above technical solutions, it also includes: checking and modifying the modified kernel file based on preset code checking instructions.

[0049] Among them, the preset code inspection instructions can be pre-written instructions used to perform code inspection and modify code that has errors.

[0050] Specifically, after modifying the kernel code of the software to be installed using the target adaptation tool, you can further input preset code check commands to check the modified kernel code in the software to be installed and modify any erroneous code to ensure the complete operation of the software to be installed.

[0051] It should also be noted that the target adaptation tool includes several operating systems developed based on the Linux kernel mechanism, as well as corresponding code trimming tools for each operating system. Therefore, before applying the target adaptation tool to an operating system, it is necessary to integrate each operating system into the tool file in advance to achieve its corresponding functions.

[0052] Based on the above technical solution, the method further includes: for each operating system, obtaining the system name of the operating system to be set, and determining whether the operating system to be set exists; if not, obtaining the character encoding of the operating system to be set, and determining whether the target format exists; if not, installing and setting the target format based on the operating system to be set, and saving the operating system to be set to a script file.

[0053] The operating system to be configured can be the operating system that needs to be integrated into the target adaptation tool. The character encoding can be the program execution code of the operating system to be configured. The target format can be the locale format of the operating system to be configured. For example, the target format can be en_US.UTF-8 or zh_CN.UTF-8, etc. In this embodiment, the target format is en_US.UTF-8, which means that the system menu, program toolbar language, and input method default language are all English. The script file can be a batch file that combines different instructions and executes them automatically in a predetermined order.

[0054] In practice, when setting up the target adaptation tool, first obtain the system name of the operating system to be configured and determine whether the system exists in the target adaptation tool. If it does, select the operating system and exit. If not, the operating system to be configured needs to be added to the target adaptation tool. Obtain the character encoding of the operating system to be configured and check whether the target format exists, such as en_US.UTF-8 format. If not, the target format needs to be installed in the operating system to be configured and set as the default format through the preset format setting command. Finally, save the configured operating system to be configured in the script file of the target adaptation tool.

[0055] It should be noted that the above procedures apply to operating systems based on the Linux kernel mechanism. Any operating system must undergo the above procedures when integrated into the target adaptation tool.

[0056] It should also be noted that, based on the above technical solutions, a visual interface can be further developed for the target adaptation tool to achieve one-click system adaptation. That is, when running the target adaptation tool, the system selection process will be displayed on the target terminal's display interface in the form of a pop-up window, so that developers can select the corresponding operating system with one click and achieve rapid adaptation.

[0057] In addition to the above technical solutions, the software installation method is also implemented based on the Linux operating system.

[0058] The technical solution of this invention first obtains the software configuration file of the software to be installed in the first operating system. Further, based on the second operating system and the software configuration file, pre-installation processing is performed on the software to be installed. Finally, a target adaptation tool is obtained, and the kernel file of the software to be installed is modified based on the target adaptation tool to enable the software to be installed to be installed normally in the second operating system. This solves the problem in the prior art where developers lack understanding of the operating system structure and have difficulty mastering hardware-related principles, leading to repeated modifications and exploratory development. By using a target adaptation tool, the dependence of the porting and adaptation process on the operating system kernel and other structures is reduced, and the effect of automated adaptation of custom software in different operating systems is achieved, greatly shortening the development cycle and saving software development costs.

[0059] Example 2

[0060] Figure 2 This is a flowchart of a software installation method according to Embodiment 2 of the present invention. This embodiment is a preferred embodiment of the above embodiments. Figure 2 As shown, the method includes:

[0061] 1. Enter the first operating system, package and extract the software to be installed;

[0062] 2. Enter the second operating system and pre-install the software to be installed;

[0063] 3. Run the target adaptation tool in the second operating system and select the corresponding operating system option;

[0064] 4. Run the software to be installed and verify its functionality and performance.

[0065] The technical solution of this invention first obtains the software configuration file of the software to be installed in the first operating system. Further, based on the second operating system and the software configuration file, pre-installation processing is performed on the software to be installed. Finally, a target adaptation tool is obtained, and the kernel file of the software to be installed is modified based on the target adaptation tool to enable the software to be installed to be installed normally in the second operating system. This solves the problem in the prior art where developers lack understanding of the operating system structure and have difficulty mastering hardware-related principles, leading to repeated modifications and exploratory development. By using a target adaptation tool, the dependence of the porting and adaptation process on the operating system kernel and other structures is reduced, and the effect of automated adaptation of custom software in different operating systems is achieved, greatly shortening the development cycle and saving software development costs.

[0066] Example 3

[0067] Figure 3 This is a schematic diagram of a software installation device according to Embodiment 3 of the present invention. Figure 3 As shown, the device includes: a software configuration file acquisition module 310, a software pre-installation module 320, and a kernel file modification module 330.

[0068] Among them, the software configuration file acquisition module 310 is used to acquire the software configuration file of the software to be installed in the first operating system;

[0069] The software pre-installation module 320 is used to pre-install the software to be installed based on a second operating system and software configuration files;

[0070] The kernel file modification module 330 is used to obtain a target adaptation tool, and to modify the kernel file of the software to be installed based on the target adaptation tool, so as to enable the software to be installed to be installed normally in the second operating system; wherein, the target adaptation tool includes script files of at least one operating system and corresponding code trimming tools.

[0071] The technical solution of this invention first obtains the software configuration file of the software to be installed in the first operating system. Further, based on the second operating system and the software configuration file, pre-installation processing is performed on the software to be installed. Finally, a target adaptation tool is obtained, and the kernel file of the software to be installed is modified based on the target adaptation tool to enable the software to be installed to be installed normally in the second operating system. This solves the problem in the prior art where developers lack understanding of the operating system structure and have difficulty mastering hardware-related principles, leading to repeated modifications and exploratory development. By using a target adaptation tool, the dependence of the porting and adaptation process on the operating system kernel and other structures is reduced, and the effect of automated adaptation of custom software in different operating systems is achieved, greatly shortening the development cycle and saving software development costs.

[0072] Optionally, the software configuration file acquisition module 310 is also used to package the software to be ported based on the first operating system and extract the software configuration file.

[0073] Optionally, the software pre-installation module 320 is also used to run a software configuration file based on a second operating system to achieve the pre-installation of the software to be installed.

[0074] Optionally, the kernel file modification module 330 is further configured to, when detecting that a target user calls the target adaptation tool based on the target terminal, obtain the first system name of the first operating system and the second system name of the second operating system; and modify the kernel file of the software to be installed according to the first system name, the second system name and the corresponding code trimming tool, so as to enable the software to be installed to be installed and run normally in the second operating system.

[0075] Optionally, the device further includes a kernel file detection module, used to check and modify the modified kernel file based on preset code inspection instructions.

[0076] Optionally, the device further includes: a system name acquisition module, a character encoding acquisition module, and a target format installation module.

[0077] The system name acquisition module is used to acquire the system name of the operating system to be set for each operating system, and to determine whether the operating system to be set exists.

[0078] The character encoding acquisition module is used to acquire the character encoding of the operating system to be set if no, and to determine whether the target format exists;

[0079] The target format installation module is used to install and configure the target format based on the operating system to be configured, if not otherwise specified, and save the operating system to be configured to a script file.

[0080] Optionally, the method is implemented based on the Linux operating system.

[0081] The software installation apparatus provided in this embodiment of the invention can execute the software installation method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0082] Example 4

[0083] Figure 4 A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0084] like Figure 4 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0085] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0086] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as software installation methods.

[0087] In some embodiments, the software installation method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the software installation method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the software installation method by any other suitable means (e.g., by means of firmware).

[0088] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0089] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0090] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0091] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0092] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0093] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through a communication network. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0094] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0095] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A software installation method, characterized in that, include: Obtain the software configuration file of the software to be installed in the first operating system; Based on the second operating system and the software configuration file, the software to be installed is pre-installed; wherein the kernel configurations of the first operating system and the second operating system are different. Obtain a target adaptation tool, and modify the kernel file of the software to be installed based on the target adaptation tool, so as to enable the software to be installed to be installed normally in the second operating system; The target adaptation tool includes script files for at least one operating system and corresponding code trimming tools; the modification of the kernel file of the software to be installed refers to adapting the software to be installed according to the kernel configuration of the second operating system. The step of obtaining the target adaptation tool and modifying the kernel file of the software to be installed based on the target adaptation tool to enable the software to be installed to be installed normally in the second operating system includes: When it is detected that a target user calls the target adaptation tool based on the target terminal, the first system name of the first operating system and the second system name of the second operating system are obtained; wherein, the target adaptation tool includes at least two operating systems developed based on the Linux kernel mechanism, and code trimming tools corresponding to each operating system; Based on the first system name, the second system name, and the corresponding code trimming tool, the kernel file of the software to be installed is modified so that the software to be installed can be installed and run normally in the second operating system.

2. The method according to claim 1, characterized in that, The step of obtaining the software configuration file of the software to be installed in the first operating system includes: Based on the first operating system, the software to be installed is packaged and the software configuration file is extracted.

3. The method according to claim 1, characterized in that, The pre-installation process for the software to be installed, based on the second operating system and the software configuration file, includes: Based on the second operating system, the software configuration file is run to achieve the pre-installation of the software to be installed.

4. The method according to claim 1, characterized in that, Also includes: Based on preset code inspection instructions, the modified kernel file is inspected and modified.

5. The method according to claim 1, characterized in that, Also includes: For each operating system, obtain the system name of the operating system to be set, and determine whether the operating system to be set exists; If not, obtain the character encoding of the operating system to be set to determine whether the target format exists; If not, then based on the operating system to be set, install the target format and set it, and save the operating system to be set to the script file.

6. The method according to claim 1, characterized in that, It also includes the fact that the method is implemented based on the Linux operating system.

7. A software installation device, characterized in that, include: The software configuration file acquisition module is used to acquire the software configuration file of the software to be installed in the first operating system. A software pre-installation module is used to pre-install the software to be installed based on a second operating system and the software configuration file; wherein the kernel configurations of the first operating system and the second operating system are different. A kernel file modification module is used to obtain a target adaptation tool, and modify the kernel file of the software to be installed based on the target adaptation tool, so as to enable the software to be installed to be installed normally in the second operating system; wherein, the target adaptation tool includes at least one operating system script file and a corresponding code trimming tool; the modification of the kernel file of the software to be installed refers to the adaptation development of the software to be installed according to the kernel configuration of the second operating system; The kernel file modification module is further configured to: When it is detected that a target user calls the target adaptation tool based on the target terminal, the first system name of the first operating system and the second system name of the second operating system are obtained; wherein, the target adaptation tool includes at least two operating systems developed based on the Linux kernel mechanism, and code trimming tools corresponding to each operating system; Based on the first system name, the second system name, and the corresponding code trimming tool, the kernel file of the software to be installed is modified so that the software to be installed can be installed and run normally in the second operating system.

8. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the software installation method according to any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that are used to cause a processor to execute the software installation method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Software installation method and device

    CN111198694A

  • Operating system automated application porting tool

    US20080127180A1