CN111880781A - Generation method, device, equipment and storage medium of RPM (revolution speed limit) installation package - Google Patents

Generation method, device, equipment and storage medium of RPM (revolution speed limit) installation package Download PDF

Info

Publication number
CN111880781A
CN111880781A CN202010745201.XA CN202010745201A CN111880781A CN 111880781 A CN111880781 A CN 111880781A CN 202010745201 A CN202010745201 A CN 202010745201A CN 111880781 A CN111880781 A CN 111880781A
Authority
CN
China
Prior art keywords
target
rpm
installation package
component
generating
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.)
Pending
Application number
CN202010745201.XA
Other languages
Chinese (zh)
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.)
Beijing Inspur Data Technology Co Ltd
Original Assignee
Beijing Inspur Data Technology Co Ltd
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 Beijing Inspur Data Technology Co Ltd filed Critical Beijing Inspur Data Technology Co Ltd
Priority to CN202010745201.XA priority Critical patent/CN111880781A/en
Publication of CN111880781A publication Critical patent/CN111880781A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6209Protecting access to data via a platform, e.g. using keys or access control rules to a single file or object, e.g. in a secure envelope, encrypted and accessed using a key, or with access control rules appended to the object itself
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a method, a device, equipment and a storage medium for generating an RPM (revolution speed) installation package, wherein the method comprises the following steps: acquiring a target function component corresponding to a target function module from all pre-stored function components according to the target function module selected by a target user; and inputting the common component and the target functional component for generating the RPM installation package into the RPM package generating component to obtain the target RPM installation package. The method can generate the corresponding target RPM installation package according to the target function module selected by the target user, the target RPM installation package can meet the actual requirement of the target user, and a configuration file is not required to be additionally arranged for supplement, so that the convenience of generating the RPM installation package can be improved; the target RPM installation package generated by the method is generated according to the target function module selected by the target user, so that the volume redundancy caused by redundant function modules is avoided, the performance consumption is avoided, and the stability of the system and software can be improved.

Description

Generation method, device, equipment and storage medium of RPM (revolution speed limit) installation package
Technical Field
The invention relates to the field of information software, in particular to a method, a device and equipment for generating an RPM (revolution speed) installation package and a computer readable storage medium.
Background
The RPM installation package is a software installation package for Linux system, and is widely used in CentOS/reddat and other systems. In a traditional application scenario, an RPM installation package needs to be generated on a special computer, and after the RPM installation package is generated, the content of the RPM installation package is fixed and cannot be edited for the second time, that is, an RPM installation package subsequently acquired by a user is selected from RPM installation packages provided during factory shipment.
However, when software is actually installed, various parameters which need to be configured correspondingly according to different functional requirements are different, that is, in actual application, situations that a functional module of an RPM installation package cannot meet user requirements and the functional module of the RPM installation package includes a functional module which is not needed by a user may occur, and for the first situation, because the content of the RPM installation package is already fixed, a user generally sets a corresponding configuration file according to the actual requirements in the prior art, and then installs the set configuration file in or after the process of installing the RPM installation package, but in this way, not only is the operation cumbersome, but also errors are easily caused in the process of setting the configuration file; for the second case, also because the content of the RPM installation package is already fixed, the RPM installation package will be installed with functional modules that are not needed by the user, resulting in redundant volume of the RPM installation package, and unnecessary functional modules increase the consumption of performance, reducing the stability of the system and software.
Therefore, how to improve the convenience of generating the RPM installation package, and make the generated RPM installation package more conform to the actual requirements of the user, reduce the consumption of performance, and improve the stability of the system and software is a technical problem that needs to be solved by those skilled in the art at present.
Disclosure of Invention
In view of this, the present invention provides a method for generating an RPM installation package, which can improve the convenience of generating the RPM installation package, make the generated RPM installation package more conform to the actual requirements of users, reduce the consumption of performance, and improve the stability of a system and software; another object of the present invention is to provide an RPM installation package generation apparatus, device and computer readable storage medium, all of which have the above advantages.
In order to solve the above technical problem, the present invention provides a method for generating an RPM installation package, including:
according to a target function module selected by a target user, acquiring a target function component corresponding to the target function module from all pre-stored function components;
inputting the common component for generating the RPM installation package and the target functional component into an RPM package generating component to obtain a target RPM installation package.
Preferably, further comprising:
acquiring an IP address of a cloud management platform, and updating the target function component by using the IP address;
correspondingly, the process of inputting the common component for generating the RPM installation package and the target function component into the RPM package generation component to obtain the target RPM installation package specifically includes:
inputting the common component used for generating an RPM installation package and the updated target functional component into the RPM package generation component to obtain the target RPM installation package.
Preferably, before the obtaining, according to the target function module selected by the target user, the target function component corresponding to the target function module from the pre-stored function components, the method further includes:
judging whether a target RPM (revolution speed) installation package corresponding to the target function module and the IP address exists in stored RPM installation packages of the cloud management platform or not;
if yes, sending the target RPM installation package to an agent end;
and if the target function module does not exist, entering the step of acquiring the target function component corresponding to the target function module from the pre-stored function components according to the target function module selected by the target user, inputting the common component for generating the RPM installation package and the target function component into an RPM package generation component to obtain a target RPM installation package, and then sending the target RPM installation package to the proxy terminal.
Preferably, after inputting the common component for generating an RPM installation package and the target function component into an RPM package generating component to obtain a target RPM installation package, further comprising:
and recording the generation time of the target RPM installation package and a target function module corresponding to the target RPM installation package.
Preferably, before the obtaining, according to the target function module selected by the target user, the target function component corresponding to the target function module from the pre-stored function components, the method further includes:
and performing identity authentication on the target user, entering the target function module selected according to the target user under the condition that the identity authentication is passed, and acquiring the target function component corresponding to the target function module from all pre-stored function components.
Preferably, after inputting the common component for generating an RPM installation package and the target function component into an RPM package generating component to obtain a target RPM installation package, further comprising:
and sending out corresponding prompt information.
Preferably, after inputting the common component for generating an RPM installation package and the target function component into an RPM package generating component to obtain a target RPM installation package, further comprising:
and carrying out encryption operation on the target RPM installation package.
In order to solve the above technical problem, the present invention further provides an RPM installation package generating apparatus, including:
the acquisition module is used for acquiring a target function component corresponding to the target function module from each pre-stored function component according to the target function module selected by a target user;
and the generating module is used for inputting the common component for generating the RPM installation package and the target functional component into the RPM package generating component to obtain the target RPM installation package.
In order to solve the above technical problem, the present invention further provides an RPM installation package generation apparatus, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of any RPM installation package generation method when the computer program is executed.
In order to solve the above technical problem, the present invention further provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements the steps of any one of the RPM installation package generation methods.
The invention provides a method for generating an RPM (revolution speed) installation package, which comprises the steps of acquiring a target function component corresponding to a target function module from all pre-stored function components according to the target function module selected by a target user; and then inputting the common component and the target functional component for generating the RPM installation package into the RPM package generating component to obtain the target RPM installation package. Therefore, the method can generate the corresponding target RPM installation package according to the target function module selected by the target user, on one hand, the target RPM installation package can meet the actual requirement of the target user, and a configuration file is not required to be additionally arranged for supplement, so that the convenience of generating the RPM installation package can be improved; on the other hand, the target RPM installation package generated by the method is generated according to the target function module selected by the target user, so that volume redundancy caused by redundant function modules is avoided, performance consumption is avoided, and the stability of the system and software can be improved.
In order to solve the technical problem, the invention also provides a device and equipment for generating the RPM installation package and a computer readable storage medium, which have the beneficial effects.
Drawings
In order to more clearly illustrate the embodiments or technical solutions of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for generating an RPM installation package according to an embodiment of the present invention;
fig. 2 is a block diagram of an RPM installation package generation apparatus according to an embodiment of the present invention;
fig. 3 is a block diagram of an RPM installation package generation apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The core of the embodiment of the invention is to provide a method for generating an RPM (revolution speed) installation package, which can improve the convenience of generating the RPM installation package, ensure that the generated RPM installation package better meets the actual requirement of a user, reduce the consumption of performance and improve the stability of a system and software; another core of the present invention is to provide an RPM installation package generation apparatus, device and computer readable storage medium, all having the above-mentioned advantages.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a flowchart of a method for generating an RPM installation package according to an embodiment of the present invention. As shown in fig. 1, a method for generating an RPM installation package includes:
s10: acquiring a target function component corresponding to a target function module from all pre-stored function components according to the target function module selected by a target user;
s20: and inputting the common component and the target functional component for generating the RPM installation package into the RPM package generating component to obtain the target RPM installation package.
Specifically, in actual operation, the agent generally downloads the RPM installation package in the cloud management platform in a Web manner, so that the function corresponding to the function module included in the RPM installation package can be realized at the agent. The corresponding operating system comprises at least one cloud management platform and an agent end, and the operating system can complete specific business logic, such as management of cloud hosts, cloud security, cloud audit and the like. The technical scheme of the embodiment mainly lies in how the cloud management platform generates the RPM installation package so that the agent side can download the application.
Firstly, according to a target function module selected by a target user and the corresponding relation between each function module and each function component, determining the target function component corresponding to the target function module. Specifically, the correspondence between the function module and the function component, that is, the function component required to implement the function requirement corresponding to the function module, for example, FUNCA of the function module needs to be implemented by a function component a and a function component B, and when the target function module selected by the target user is the function module FUNCA, it means that the generated target RPM installation package needs to include the function component a and the function component B.
It should be noted that, in actual operation, when generating the target RPM installation package, some functional components are necessary in addition to the target functional components, that is, the functional components are required for generating all RPM installation packages, that is, common components for generating RPM installation packages; therefore, the common component and the target function component are obtained and input into the RPM package generation component, and the target RPM installation package is obtained.
It should be noted that, in this embodiment, the type of each component may be defined by using a type configuration file built in the cloud management platform, and it is determined whether each component is specifically a functional component or a related component; the components comprise program files, configuration files and library files; that is, in the present embodiment, the functional components and the related components each include a program file, a configuration file, and a library file.
It should be noted that, in actual operation, if the cloud management platform is a platform developed by using Java, the RPM packet generation component may be specifically red _ line, and the specific type of the RPM packet generation component is not limited in this embodiment.
The method for generating the RPM installation package comprises the steps of obtaining target function components corresponding to target function modules from all pre-stored function components according to the target function modules selected by target users; and then inputting the common component and the target functional component for generating the RPM installation package into the RPM package generating component to obtain the target RPM installation package. Therefore, the method can generate the corresponding target RPM installation package according to the target function module selected by the target user, on one hand, the target RPM installation package can meet the actual requirement of the target user, and a configuration file is not required to be additionally arranged for supplement, so that the convenience of generating the RPM installation package can be improved; on the other hand, the target RPM installation package generated by the method is generated according to the target function module selected by the target user, so that volume redundancy caused by redundant function modules is avoided, performance consumption is avoided, and the stability of the system and software can be improved.
On the basis of the above embodiments, the present embodiment further describes and optimizes the technical solution, and specifically, the present embodiment further includes:
acquiring an IP address of the cloud management platform, and updating the target function component by using the IP address;
correspondingly, the process of inputting the common component and the target functional component for generating the RPM installation package into the RPM package generating component to obtain the target RPM installation package specifically comprises the following steps:
and inputting the common component for generating the RPM installation package and the updated target functional component into an RPM package generation component to obtain the target RPM installation package.
Specifically, in this embodiment, when a target function module selected by a target user is received, an IP address of the cloud management platform is acquired, and then a corresponding configuration file is generated according to the acquired IP address, that is, the target configuration file in the target function component corresponding to the target function module is updated; correspondingly, when the target RPM installation package is generated, the common component and the updated target function component are input into the RPM package generation component, and the target RPM installation package is obtained.
It can be seen that, in this embodiment, the IP address of the cloud management platform is further set in the configuration file, and the target RPM installation package is generated by using the configuration file, and correspondingly, after the target RPM installation package is downloaded, when the target RPM installation package is used for installation, the proxy does not need to manually input the IP address of the cloud management platform, so that the information completeness of the generated target RPM installation package is further improved, and the convenience of installing the RPM installation package is improved.
On the basis of the foregoing embodiment, this embodiment further describes and optimizes the technical solution, and specifically, before acquiring, from the pre-stored functional components, a target functional component corresponding to a target functional module according to the target functional module selected by the target user, the embodiment further includes:
judging whether a target RPM installation package corresponding to the target function module and the IP address exists in the stored RPM installation package of the cloud management platform;
if yes, sending a target RPM installation package to the agent end;
and if the target function module does not exist, the step of acquiring the target function component corresponding to the target function module from the pre-stored function components according to the target function module selected by the target user is carried out, inputting the common component and the target function component for generating the RPM installation package into the RPM package generating component to obtain the target RPM installation package, and then sending the target RPM installation package to the agent terminal.
Specifically, in this embodiment, after the cloud management platform generates the RPM installation package each time, the cloud management platform stores the RPM installation package. Correspondingly, after the target function module selected by the target user is received, before the target function module corresponding to the target function module is acquired from the pre-stored function components according to the target function module selected by the target user, whether a target RPM installation package corresponding to the target function module and the IP address exists in the stored RPM installation package of the cloud management platform is further judged; if the target RPM installation package exists, namely the target RPM installation package which is completely the same as the current target function module and the IP address is generated in advance, the generated target RPM installation package can be directly obtained and provided for a target user in a mode of sending the target RPM installation package to an agent end; otherwise, the step of acquiring the target function component corresponding to the target function module from the pre-stored function components according to the target function module selected by the target user is carried out, namely, the corresponding target RPM installation package is generated according to the step, and the target RPM installation package is provided for the target user in a mode of sending the target RPM installation package to the agent terminal.
Therefore, in the embodiment, whether the RPM installation package consistent with the current requirement of the target user exists in the pre-generated RPM installation package is inquired in advance, and when the RPM installation package exists, the previously generated target RPM installation package is directly fed back to the target user, so that the RPM installation package with the same requirement is prevented from being repeatedly generated, the efficiency of feeding back the target RPM installation package to the target user can be relatively improved, and system resources are relatively saved.
In order to make those skilled in the art better understand the technical solutions in the present application, the following describes the technical solutions in the embodiments of the present application in detail with reference to practical application scenarios. The method comprises the following specific steps:
after the cloud management platform is installed, the cloud management platform is preset with all components for generating an agent-side RPM installation package, where the components include program files, configuration files, library files, and the like, and the components are divided into two types: the method comprises the steps of determining common components and functional components, and specifically determining the component type (common component/functional component) of each component through a type configuration file built in a cloud management platform. The common component is used for generating components necessary for an RPM (revolution speed) installation package, and all the RPM installation packages contain the class files; functional components, i.e., components related to functional modules, such as program file a, may be associated with both functional module FUNCA and functional module FUNCB, and thus when the target functional module selected by the target user is a FUNCA functional module, it is necessary to include program file a when generating the target RPM install package.
Specifically, the target user sends the purchased target function module set FUNCS1 to the cloud management platform through the agent, that is, the target function module set FUNCS1 selected by the target user is obtained; the cloud management platform acquires the current IP address IP1 of the cloud management platform, and checks whether an RPM installation packet corresponding to FUNCS1 and IP1 exists in the generated RPM installation packet list; if the target RPM installation package exists, determining the target RPM installation package, and sending the target RPM installation package to the agent side, namely, enabling the agent side to download the target RPM installation package from the cloud management platform in a web mode; if the target function module does not exist in the set, reading a type configuration file built in the cloud management platform, and obtaining a common component set C1 for generating a target RPM installation package and a target function component set C2 corresponding to a target function module set FUNCS1 according to the type of each component and the target function module selected by a target user; generating a corresponding IP configuration file according to the IP address IP1 of the current cloud management platform, and updating the corresponding target function component, namely updating a target function component set C2; and then, taking the common component set C1 and the updated target function component set C2 as input, generating a target RPM installation package through an RPM package generation component red _ line, and sending the target RPM installation package to the agent side, namely, enabling the agent side to download the target RPM installation package from the cloud management platform in a web mode. And after the target RPM installation package is generated, storing the target RPM installation package, that is, adding an RPM installation package corresponding to the function module set FUNCS1 and the IP address IP1, so that when a subsequent target user requests to acquire the target RPM installation package corresponding to the function module FUNCS1 and the IP address IP1, the RPM installation package can be directly utilized without repeatedly generating a new RPM installation package.
After receiving the target RPM installation package, the agent end runs installation on a compatible Linux operating system, automatically releases related components and functional components during installation, and releases a target configuration file comprising an IP address IP1 of the cloud management platform; after the installation is finished, the agent end main program is automatically started, a target configuration file comprising an IP address is read, and the IP address of the cloud management platform is obtained; and if the number of the IP addresses is multiple, the IP addresses are sequentially used for connection until the agent end is successfully connected with the cloud management platform.
The method for generating the RPM installation package comprises the steps of obtaining target function components corresponding to target function modules from all pre-stored function components according to the target function modules selected by target users; and then inputting the common component and the target functional component for generating the RPM installation package into the RPM package generating component to obtain the target RPM installation package. Therefore, the method can generate the corresponding target RPM installation package according to the target function module selected by the target user, on one hand, the target RPM installation package can meet the actual requirement of the target user, and a configuration file is not required to be additionally arranged for supplement, so that the convenience of generating the RPM installation package can be improved; on the other hand, the target RPM installation package generated by the method is generated according to the target function module selected by the target user, so that volume redundancy caused by redundant function modules is avoided, performance consumption is avoided, and the stability of the system and software can be improved.
On the basis of the foregoing embodiment, the present embodiment further describes and optimizes the technical solution, and specifically, after inputting the common component and the target function component for generating the RPM installation package into the RPM package generation component to obtain the target RPM installation package, the present embodiment further includes:
and recording the generation time of the target RPM installation package and the target function module corresponding to the target RPM installation package.
Specifically, in this embodiment, the common component and the target function component for generating the RPM installation package are input into the RPM package generation component, after the target RPM installation package is obtained, the generation time for generating the target RPM installation package and the target function module corresponding to the target RPM installation package are further obtained, and then the generation time and the target function module are correspondingly recorded.
It should be noted that, in actual operation, a specific recording manner may be recorded in a form of text, an excel table, or a database table, which is not limited in this embodiment and is selected according to actual requirements. More specifically, the information may be stored and recorded in a Memory bank, a hard disk, a TF (Trans-flash Card) Card, an sd (secure Digital Memory Card) Card, or the like, and the information is specifically selected according to actual requirements, which is not limited in this embodiment.
In this embodiment, by further recording the generation time of the generated target RPM installation package and the target function module corresponding to the target RPM installation package, the specific situation of each generated target RPM installation package can be conveniently checked according to the recorded information, so that the use experience of the user is further improved.
On the basis of the foregoing embodiment, this embodiment further describes and optimizes the technical solution, and specifically, before acquiring, from the pre-stored functional components, a target functional component corresponding to a target functional module according to the target functional module selected by the target user, the embodiment further includes:
and performing identity authentication on the target user, entering a target function module selected according to the target user under the condition that the identity authentication is passed, and acquiring the target function component corresponding to the target function module from each pre-stored function component.
Specifically, in this embodiment, after receiving a download request (information of a target function module selected corresponding to the download RPM installation package) for downloading the RPM installation package sent by the target user through the proxy, the target user is authenticated first, and then enters the target function module selected according to the target user subsequently if the authentication is passed, and a step of acquiring the target function component corresponding to the target function module from each pre-stored function component is performed.
It should be noted that, in this embodiment, the way of performing identity verification on the target user may be to require the target user to input a corresponding user name and password or biometric information, and the cloud management platform determines whether the identity verification on the target user passes by verifying whether information matched with the user name and password input by the target user or information matched with the biometric information of the target user exists in the pre-stored authentication information; or, the digital signature of the agent end may be acquired, and whether the identity verification of the target user passes or not may be determined by verifying whether the digital signature is valid or not.
Therefore, the safety of the generated target RPM installation package can be guaranteed by further performing identity authentication on the target user.
On the basis of the foregoing embodiment, the present embodiment further describes and optimizes the technical solution, and specifically, after inputting the common component and the target function component for generating the RPM installation package into the RPM package generation component to obtain the target RPM installation package, the present embodiment further includes:
and sending out corresponding prompt information.
Specifically, in this embodiment, the common component and the target function component for generating the RPM installation package are input into the RPM package generation component, and after the target RPM installation package is obtained, the prompting device is further triggered to send out corresponding prompting information. It should be noted that the prompting device may specifically be a buzzer and/or an indicator light and/or a display, and the prompting device such as the buzzer, the indicator light, the display, and the like is triggered to send out corresponding prompting information, such as a buzzer sound, a flashing light, displayed text or images, and the like, so as to intuitively prompt that the target RPM installation package corresponding to the target function module is generated currently, and therefore, other operations can be performed in time, and the use experience of the user can be further improved.
On the basis of the foregoing embodiment, the present embodiment further describes and optimizes the technical solution, and specifically, after inputting the common component and the target function component for generating the RPM installation package into the RPM package generation component to obtain the target RPM installation package, the present embodiment further includes:
and carrying out encryption operation on the target RPM installation package.
In this embodiment, after the common component and the target functional component for generating the RPM installation package are input into the RPM package generation component to obtain the target RPM installation package, the target RPM installation package is further encrypted. Specifically, the target RPM installation package is converted into a meaningless ciphertext through an Encryption key (Encryption key) and an Encryption function, and correspondingly, the target RPM installation package is downloaded by the proxy end after being encrypted, so that the security in the process of transmitting the target RPM installation package can be guaranteed. And after receiving the encrypted target RPM installation package, the proxy end firstly restores the encrypted target RPM installation package into the target RPM installation package through a Decryption function and a Decryption key (Decryption key), and then uses the target RPM installation package for installation operation.
As can be seen, in the present embodiment, after the common component and the target functional component for generating the RPM installation package are input into the RPM package generation component to obtain the target RPM installation package, the target RPM installation package is further encrypted, so that the security during transmission of the target RPM installation package can be further improved.
The above detailed description is made on the embodiment of the method for generating an RPM installation package according to the present invention, and the present invention further provides an apparatus, a device, and a computer-readable storage medium for generating an RPM installation package corresponding to the method.
Fig. 2 is a structural diagram of an RPM installation package generation apparatus according to an embodiment of the present invention, and as shown in fig. 2, the RPM installation package generation apparatus includes:
an obtaining module 21, configured to obtain, according to a target function module selected by a target user, a target function component corresponding to the target function module from among pre-stored function components;
and the generating module 22 is used for inputting the common component and the target functional component for generating the RPM installation package into the RPM package generating component to obtain the target RPM installation package.
The device for generating the RPM installation package has the beneficial effects of the method for generating the RPM installation package.
As a preferred implementation manner, the apparatus for generating an RPM installation package provided in this embodiment further includes:
the updating module is used for acquiring the IP address of the cloud management platform and updating the target function component by utilizing the IP address;
correspondingly, the generating module specifically includes:
and the generation submodule is used for inputting the common component used for generating the RPM installation package and the updated target functional component into the RPM package generation component to obtain the target RPM installation package.
As a preferred implementation manner, the apparatus for generating an RPM installation package provided in this embodiment further includes:
the judging module is used for judging whether a target RPM installation package corresponding to the target function module and the IP address exists in the stored RPM installation packages of the cloud management platform; if yes, calling a first execution module; if the first execution module does not exist, the acquisition module is called, and the first execution module is called after the generation module is executed;
and the first execution module is used for sending the target RPM installation package to the agent end.
As a preferred implementation manner, the apparatus for generating an RPM installation package provided in this embodiment further includes:
and the recording module is used for recording the generation time of the target RPM installation package and the target function module corresponding to the target RPM installation package.
As a preferred implementation manner, the apparatus for generating an RPM installation package provided in this embodiment further includes:
and the identity authentication module is used for performing identity authentication on the target user and calling the acquisition module under the condition that the identity authentication is passed.
As a preferred implementation manner, the apparatus for generating an RPM installation package provided in this embodiment further includes:
and the prompting module is used for inputting the common component and the target functional component for generating the RPM installation package into the RPM package generating component, and sending out corresponding prompting information after the target RPM installation package is obtained.
As a preferred implementation manner, the apparatus for generating an RPM installation package provided in this embodiment further includes:
and the encryption module is used for carrying out encryption operation on the target RPM installation package.
Fig. 3 is a block diagram of an RPM installation package generation apparatus according to an embodiment of the present invention, and as shown in fig. 3, the RPM installation package generation apparatus includes:
a memory 31 for storing a computer program;
and a processor 32 for implementing the steps of the method for generating an RPM installation package as described above when executing the computer program.
The equipment for generating the RPM installation package has the beneficial effects of the method for generating the RPM installation package.
In order to solve the above technical problem, the present invention further provides a computer readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the method for generating an RPM installation package as described above.
The computer-readable storage medium provided by the embodiment of the invention has the beneficial effects of the RPM installation package generation method.
The method, apparatus, device and computer readable storage medium for generating RPM installation package provided by the present invention are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are set forth only to help understand the method and its core ideas of the present invention. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.

Claims (10)

1. A method for generating an RPM installation package, comprising:
according to a target function module selected by a target user, acquiring a target function component corresponding to the target function module from all pre-stored function components;
inputting the common component for generating the RPM installation package and the target functional component into an RPM package generating component to obtain a target RPM installation package.
2. The method of claim 1, further comprising:
acquiring an IP address of a cloud management platform, and updating the target function component by using the IP address;
correspondingly, the process of inputting the common component for generating the RPM installation package and the target function component into the RPM package generation component to obtain the target RPM installation package specifically includes:
inputting the common component used for generating an RPM installation package and the updated target functional component into the RPM package generation component to obtain the target RPM installation package.
3. The method according to claim 2, before the obtaining, according to the target function module selected by the target user, the target function component corresponding to the target function module from the pre-stored function components, further comprising:
judging whether a target RPM (revolution speed) installation package corresponding to the target function module and the IP address exists in stored RPM installation packages of the cloud management platform or not;
if yes, sending the target RPM installation package to an agent end;
and if the target function module does not exist, entering the step of acquiring the target function component corresponding to the target function module from the pre-stored function components according to the target function module selected by the target user, inputting the common component for generating the RPM installation package and the target function component into an RPM package generation component to obtain a target RPM installation package, and then sending the target RPM installation package to the proxy terminal.
4. The method of claim 1, wherein after inputting the common component for generating an RPM installation package and the target functional component into an RPM package generating component, resulting in a target RPM installation package, further comprising:
and recording the generation time of the target RPM installation package and a target function module corresponding to the target RPM installation package.
5. The method according to claim 1, before the obtaining, according to the target function module selected by the target user, the target function component corresponding to the target function module from the pre-stored function components, further comprising:
and performing identity authentication on the target user, entering the target function module selected according to the target user under the condition that the identity authentication is passed, and acquiring the target function component corresponding to the target function module from all pre-stored function components.
6. The method of claim 1, wherein after inputting the common component for generating an RPM installation package and the target functional component into an RPM package generating component, resulting in a target RPM installation package, further comprising:
and sending out corresponding prompt information.
7. The method of any of claims 1 to 6, wherein after inputting the common component for generating an RPM installation package and the target functional component into an RPM package generating component, deriving a target RPM installation package, further comprising:
and carrying out encryption operation on the target RPM installation package.
8. An apparatus for generating an RPM installation package, comprising:
the acquisition module is used for acquiring a target function component corresponding to the target function module from each pre-stored function component according to the target function module selected by a target user;
and the generating module is used for inputting the common component for generating the RPM installation package and the target functional component into the RPM package generating component to obtain the target RPM installation package.
9. An RPM installation package generation apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the RPM installation package generation method of any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements the steps of the RPM installation package generation method of any one of claims 1 to 7.
CN202010745201.XA 2020-07-29 2020-07-29 Generation method, device, equipment and storage medium of RPM (revolution speed limit) installation package Pending CN111880781A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010745201.XA CN111880781A (en) 2020-07-29 2020-07-29 Generation method, device, equipment and storage medium of RPM (revolution speed limit) installation package

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010745201.XA CN111880781A (en) 2020-07-29 2020-07-29 Generation method, device, equipment and storage medium of RPM (revolution speed limit) installation package

Publications (1)

Publication Number Publication Date
CN111880781A true CN111880781A (en) 2020-11-03

Family

ID=73201041

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010745201.XA Pending CN111880781A (en) 2020-07-29 2020-07-29 Generation method, device, equipment and storage medium of RPM (revolution speed limit) installation package

Country Status (1)

Country Link
CN (1) CN111880781A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113254965A (en) * 2021-06-04 2021-08-13 统信软件技术有限公司 Software package encryption method, computing device and storage medium
CN113467790A (en) * 2021-06-22 2021-10-01 龙芯中科(太原)技术有限公司 Software packaging method and device and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102053831A (en) * 2010-12-10 2011-05-11 浪潮(北京)电子信息产业有限公司 Linux operating system customizing method and system
CN105446759A (en) * 2014-08-28 2016-03-30 阿里巴巴集团控股有限公司 Rpm package updating method and equipment
US10007501B1 (en) * 2017-05-19 2018-06-26 Central South University Method of deploying applications rapidly based on customized android platform
CN108614701A (en) * 2016-12-26 2018-10-02 中移(苏州)软件技术有限公司 A kind of (SuSE) Linux OS method for customizing and device
CN110244977A (en) * 2019-05-21 2019-09-17 深圳壹账通智能科技有限公司 Customized software generation method, system, electronic equipment and storage medium
CN110377314A (en) * 2019-07-19 2019-10-25 苏州浪潮智能科技有限公司 A kind of method for upgrading system of distributed memory system, device, equipment and medium
CN110908859A (en) * 2019-10-17 2020-03-24 平安科技(深圳)有限公司 Application service processing method, device, terminal and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102053831A (en) * 2010-12-10 2011-05-11 浪潮(北京)电子信息产业有限公司 Linux operating system customizing method and system
CN105446759A (en) * 2014-08-28 2016-03-30 阿里巴巴集团控股有限公司 Rpm package updating method and equipment
CN108614701A (en) * 2016-12-26 2018-10-02 中移(苏州)软件技术有限公司 A kind of (SuSE) Linux OS method for customizing and device
US10007501B1 (en) * 2017-05-19 2018-06-26 Central South University Method of deploying applications rapidly based on customized android platform
CN110244977A (en) * 2019-05-21 2019-09-17 深圳壹账通智能科技有限公司 Customized software generation method, system, electronic equipment and storage medium
CN110377314A (en) * 2019-07-19 2019-10-25 苏州浪潮智能科技有限公司 A kind of method for upgrading system of distributed memory system, device, equipment and medium
CN110908859A (en) * 2019-10-17 2020-03-24 平安科技(深圳)有限公司 Application service processing method, device, terminal and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113254965A (en) * 2021-06-04 2021-08-13 统信软件技术有限公司 Software package encryption method, computing device and storage medium
CN113467790A (en) * 2021-06-22 2021-10-01 龙芯中科(太原)技术有限公司 Software packaging method and device and readable storage medium

Similar Documents

Publication Publication Date Title
US9766914B2 (en) System and methods for remote maintenance in an electronic network with multiple clients
CN102830992B (en) Plug-in loading method and system
CN110570569B (en) Activation method of virtual key configuration information, mobile terminal and server
CN103577206A (en) Method and device for installing application software
CN114745431B (en) Non-invasive authority authentication method, system, medium and equipment based on side car technology
CN111176794A (en) Container management method and device and readable storage medium
US20200319873A1 (en) Manifest Trialing Techniques
CN111880781A (en) Generation method, device, equipment and storage medium of RPM (revolution speed limit) installation package
US8646070B1 (en) Verifying authenticity in data storage management systems
CN110602051B (en) Information processing method based on consensus protocol and related device
CN108833105B (en) Electronic signature method and device
CN113849801A (en) Single sign-on method and device, computer equipment and storage medium
CN112732676A (en) Data migration method, device, equipment and storage medium based on block chain
CN111415246A (en) Online business processing method and device for bank outlets
CN111385099A (en) Safety authentication method and device for vehicle-mounted intelligent hardware
CN113132409B (en) Data transmission method and device
JP4531498B2 (en) Parallel distributed processing authentication system and parallel distributed processing authentication method
CN114124408A (en) Method and system for realizing back-end signature of API gateway
CN115758313A (en) License-based application authorization control method and device
CN115577371A (en) Firmware processing method, device and platform
CN117270903A (en) Vehicle-mounted application updating method, device, equipment and computer readable storage medium
CN117892290A (en) Vehicle refreshing method, device, terminal equipment and storage medium
JP2023181362A (en) Authentication information signature system, authentication information signature program, and authentication information signature method
CN116862504A (en) Security verification method, system, device and storage medium for financial transaction
CN115632858A (en) Network resource synchronization method and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20201103

RJ01 Rejection of invention patent application after publication