CN116483405A - Configuration method and device of software update strategy, electronic equipment and storage medium - Google Patents

Configuration method and device of software update strategy, electronic equipment and storage medium Download PDF

Info

Publication number
CN116483405A
CN116483405A CN202310390540.4A CN202310390540A CN116483405A CN 116483405 A CN116483405 A CN 116483405A CN 202310390540 A CN202310390540 A CN 202310390540A CN 116483405 A CN116483405 A CN 116483405A
Authority
CN
China
Prior art keywords
software
client
server
incremental file
file list
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
CN202310390540.4A
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202310390540.4A priority Critical patent/CN116483405A/en
Publication of CN116483405A publication Critical patent/CN116483405A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0894Policy-based network configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a configuration method and a device thereof for a software update strategy, electronic equipment and a storage medium, and relates to the field of financial science and technology, wherein the configuration method comprises the following steps: analyzing the software update information issued by the server, wherein the software update information comprises: a software identification of the target software to be updated and a latest information abstract code set of the target software; scanning all files under target software in a local software installation directory of a client based on the software identification to acquire a source information abstract code set; comparing the source information abstract code set with the latest information abstract code set to obtain an incremental file list, wherein the incremental file list is used for indicating the lists of all files which need to be updated of target software in each client; the software update policy is configured based on the delta file list. The invention solves the technical problem of low update speed caused by small network bandwidth when the software of the intranet client is updated in the related technology.

Description

Configuration method and device of software update strategy, electronic equipment and storage medium
Technical Field
The present invention relates to the field of financial science and technology and other related technical fields, and in particular, to a method and apparatus for configuring a software update policy, an electronic device, and a storage medium.
Background
With the rapid development of information technology, a lot of large enterprises have built an intranet, the intranet is used for office work, the intranet can be well isolated from an external network, the risk of service information leakage is reduced, the intranet is used for office work in a local area network mode at a certain office place, the bandwidth is large, and the intranet is generally connected in a special line mode in a large-scale wide area network, and the bandwidth is small.
In a large-scale intranet office scene, networking updating service software, system patches and the like are required to be carried out on a large-scale client using an intranet, the wide area bandwidth of the intranet is small, the files of the service software and the system patches are large, and when the software updating is carried out on a large number of clients using the intranet, if the network is released for updating, the whole enterprise backbone network is congested for a long time, so that the development of other businesses is influenced; limiting the network bandwidth for downloading can result in slow software update speed, long update time, and possible network interruption to cause update failure.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a configuration method and a device for a software update strategy, electronic equipment and a storage medium, which at least solve the technical problem that in the related art, when updating the software of an intranet client, the update speed is lower due to smaller network bandwidth.
According to an aspect of the embodiment of the present invention, there is provided a method for configuring a software update policy, applied to a client, where the client interfaces with a server, and includes: analyzing the software updating information issued by the server to obtain a software identifier of target software to be updated and a latest information abstract code set of the target software; scanning all files under the target software in the local software installation catalog of the client based on the software identification to acquire a source information abstract code set; comparing the source information abstract code set with the latest information abstract code set to obtain an incremental file list, wherein the incremental file list is used for indicating a list of all files which need to be updated of the target software in each client; and configuring a software updating strategy based on the increment file list.
Optionally, before parsing the software update information issued by the server, the method includes: invoking a software update module in the client, wherein the software update module accesses the server and determines whether the target software has a new version; and reading the software updating information of the target software under the condition that the target software has a new version.
Optionally, the software update policy includes at least one of: and acquiring a first incremental file set from an associated client and acquiring a second incremental file set from the server, wherein the associated client refers to other clients except the client in the same local area network.
Optionally, the step of obtaining the first delta file set from the association client comprises: reading files corresponding to the target software under the software installation directory of the associated client based on the incremental file list, and determining a mutual transmission incremental file list; transmitting a file transmission request to the associated client based on the inter-transmission incremental file list; and receiving a first incremental file set transmitted by the associated client, and storing the first incremental file set to a software download directory of the client.
Optionally, after reading the file corresponding to the target software under the software installation directory of the associated client based on the incremental file list, determining the inter-transmission incremental file list includes: acquiring a downloaded incremental file list under the condition that the number of the incremental files in the mutual transmission incremental file list is smaller than that in the incremental file list; sending a file downloading request to the server based on the downloading incremental file list; and receiving a second incremental file set issued by the server, and storing the second incremental file set to a software download directory of the client.
Optionally, after storing the second delta file set to the software download directory of the client, the method includes: integrating the first incremental file set and the second incremental file set to obtain the incremental file set; and copying the incremental file set to the client-side local software installation directory under the condition that the number of files in the incremental file set is equal to the number of files in the incremental file list.
According to another aspect of the embodiment of the present invention, there is also provided a method for configuring a software update policy, applied to a server, where the server interfaces with a client, the method for configuring a software update policy includes: and sending software update information to the client, wherein the software update information comprises: the method comprises the steps that after receiving software updating information, a client compares the latest information abstract code set with a locally stored source information abstract code set of target software to obtain an increment file list and generate a software updating strategy; and receiving the software updating strategy and transmitting an incremental file to the client based on the software updating strategy.
Optionally, before the soft update information is sent to the client, the method includes: reading software information under a target software release address, wherein the software information at least comprises: a software version number; comparing the software version number with the historical version number of the target software stored in the server, and acquiring the target software of the latest version under the condition that the software version number is not matched with the historical version number; storing the latest version of the target software entity in a software directory of the server.
According to another aspect of the embodiment of the present invention, there is also provided a configuration device of a software update policy, applied to a client, where the client interfaces with a server, and the configuration device includes: the analysis unit is used for analyzing the software updating information issued by the server to obtain the software identification of the target software to be updated and the latest information abstract code set of the target software; the scanning unit is used for scanning all files under the target software in the local software installation catalog of the client based on the software identification to acquire a source information abstract code set; the comparison unit is used for comparing the source information abstract code set with the latest information abstract code set to obtain an incremental file list, wherein the incremental file list is used for indicating a list of all files which need to be updated of the target software in each client; and the configuration unit is used for configuring a software updating strategy based on the increment file list.
Optionally, the configuration device of the software update policy further includes: the first calling module is used for calling a software updating module in the client, wherein the software updating module accesses the server and determines whether the target software has a new version or not; and the first reading module is used for reading the software update information of the target software under the condition that the target software has a new version.
Optionally, the software update policy includes at least one of: and acquiring a first incremental file set from an associated client and acquiring a second incremental file set from the server, wherein the associated client refers to other clients except the client in the same local area network.
Optionally, the configuration device of the software update policy further includes: the second reading module is used for reading files corresponding to the target software under the software installation directory of the associated client based on the increment file list and determining a mutual transmission increment file list; the first sending module is used for sending a file transmission request to the associated client based on the mutual transmission incremental file list; and the first receiving module is used for receiving the first incremental file set transmitted by the associated client and storing the first incremental file set into the software download catalog of the client.
Optionally, the configuration device of the software update policy further includes: the first acquisition module is used for acquiring a downloaded incremental file list under the condition that the number of the incremental files in the mutual transmission incremental file list is smaller than that in the incremental file list; the second sending module is used for sending a file downloading request to the server based on the downloading incremental file list; and the second receiving module is used for receiving a second incremental file set issued by the server and storing the second incremental file set into the software download catalog of the client.
Optionally, the configuration device of the software update policy further includes: the first integration module is used for integrating the first incremental file set and the second incremental file set to obtain the incremental file set; and the first copying module is used for copying the incremental file set to the client-side local software installation directory under the condition that the number of files in the incremental file set is equal to the number of files in the incremental file list.
According to another aspect of the embodiment of the present invention, there is also provided a configuration device of a software update policy, applied to a server, where the server interfaces with a client, and the configuration device includes: the issuing unit is configured to issue software update information to the client, where the software update information includes: the method comprises the steps that after receiving software updating information, a client compares the latest information abstract code set with a locally stored source information abstract code set of target software to obtain an increment file list and generate a software updating strategy; and the receiving unit is used for receiving the software updating strategy and transmitting an increment file to the client based on the software updating strategy.
Optionally, the configuration device of the software update policy further includes: the third reading module is configured to read software information under the target software release address, where the software information at least includes: a software version number; the first comparison module is used for comparing the software version number with the historical version number of the target software stored in the server, and acquiring the target software of the latest version under the condition that the software version number is not matched with the historical version number; and the first storage module is used for storing the latest version of the target software entity in the software directory of the server.
According to another aspect of the embodiment of the present invention, there is further provided a computer readable storage medium, where the computer readable storage medium includes a stored computer program, where when the computer program runs, a configuration method for controlling a device in which the computer readable storage medium is located to execute any one of the software update policies described above is provided.
According to another aspect of the embodiments of the present invention, there is further provided an electronic device, including one or more processors and a memory, where the memory is configured to store one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement a configuration method of any one of the software update policies described above.
In the present disclosure, the method comprises the following steps: analyzing software updating information issued by a server to obtain a software identifier of target software to be updated and a latest information abstract code set of the target software, scanning all files under the target software in a local software installation catalog of a client based on the software identifier to obtain a source information abstract code set, comparing the source information abstract code set with the latest information abstract code set to obtain an incremental file list, wherein the incremental file list is used for indicating a list of all files required to be updated of the target software in each client, and finally configuring a software updating strategy based on the incremental file list.
In the method, when the version of the software of the intranet client is updated, the latest information abstract code set of the target software is compared with the source information abstract code set corresponding to the local software of the client, so that a part of the target software which needs to be updated is obtained, an incremental file list (indicating a plurality of incremental files which need to be updated) is obtained, a software update strategy is configured according to the incremental file list, the client obtains the software file as required, the whole target software is not required to be downloaded, the update of the target software can be realized only by downloading the incremental file, the update rate is improved, and the technical problem that the update speed is slower due to smaller network bandwidth when the software of the intranet client is updated in the related art is solved.
In the method, the client downloads the incremental files from other clients and servers in the same local area network based on the incremental file list to update software, so that the problem that the download of the enterprise wide area network is blocked is limited by downloading only in the same network segment and downloading from the servers but not downloading across the network segments.
In the method, after the completion of the incremental file downloading is determined, all files stored in the software downloading directory are copied to the software installation directory, and the software downloading and the software upgrading are separated, so that the problem that the normal use of the software is affected by the replacement of the software files in the downloading process is avoided.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a flow chart of an alternative method of configuring a software update policy according to an embodiment of the invention;
FIG. 2 is a flow chart of another alternative method of configuring a software update policy according to an embodiment of the invention;
FIG. 3 is an architecture diagram of a configuration system for an alternative software update strategy according to an embodiment of the present invention;
FIG. 4 is a timing diagram of an alternative method of configuring a software update policy according to an embodiment of the invention;
FIG. 5 is a schematic diagram of a configuration arrangement of an alternative software update strategy according to an embodiment of the invention;
fig. 6 is a block diagram of a hardware structure of an electronic device (or mobile device) of a configuration method of a software update policy according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that, the configuration method and the device of the software update policy in the present disclosure may be used in the financial and technological field when updating the intranet client software, and may also be used in any field other than the financial and technological field when updating the software, and the application field of the configuration method and the device of the software update policy in the present disclosure is not limited.
It should be noted that, related information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present disclosure are information and data authorized by a user or sufficiently authorized by each party, and the collection, use and processing of related data need to comply with related laws and regulations and standards of related countries and regions, and be provided with corresponding operation entries for the user to select authorization or rejection. For example, an interface is provided between the system and the relevant user or institution, before acquiring the relevant information, the system needs to send an acquisition request to the user or institution through the interface, and acquire the relevant information after receiving the consent information fed back by the user or institution.
The embodiments of the invention can be applied to various software updating systems/applications/devices, the part of the client software which needs to be updated is determined through the comparison of the information abstract codes between the latest version software and the software installed by the client, an incremental file list is obtained, the client downloads the incremental files from other clients or servers in the same local area network according to the incremental file list, and all the incremental files are copied from the software download catalog to the software installation catalog, so that the latest version of software is obtained.
The invention deploys the software updating module at the client side, can access the server and determine whether the software needs to be updated.
The present invention will be described in detail with reference to the following examples.
Example 1
According to an embodiment of the present invention, there is provided an embodiment of a method of configuring a software update policy, it being noted that the steps shown in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowchart, in some cases the steps shown or described may be performed in an order different from that shown or described herein.
The configuration method of the software updating strategy provided by the embodiment of the invention is described by taking the intranet client as an execution main body, and is applied to the client deployed in the intranet, and the client is in butt joint with the server.
FIG. 1 is a flow chart of an alternative method of configuring a software update policy according to an embodiment of the invention, as shown in FIG. 1, the method comprising the steps of:
step S101, analyzing the software updating information issued by a server to obtain a software identifier of target software to be updated and a latest information abstract code set of the target software;
step S102, scanning all files under target software in a local software installation catalog of a client based on a software identifier, and acquiring a source information abstract code set;
step S103, comparing the source information abstract code set with the latest information abstract code set to obtain an incremental file list, wherein the incremental file list is used for indicating the lists of all files which need to be updated of target software in each client;
step S104, configuring a software update strategy based on the increment file list.
Through the steps, firstly analyzing the software updating information issued by the server to obtain a software identifier of target software to be updated and a latest information abstract code set of the target software, then scanning all files under the target software in a local software installation catalog of a client based on the software identifier to obtain a source information abstract code set, and then comparing the source information abstract code set with the latest information abstract code set to obtain an incremental file list, wherein the incremental file list is used for indicating a list of all files required to be updated of the target software in each client, and finally configuring a software updating strategy based on the incremental file list.
In this embodiment, when the version of the software of the intranet client is updated, the latest information abstract code set of the target software is compared with the source information abstract code set corresponding to the local software of the client, so that a part of the target software, which needs to be updated, is obtained, an incremental file list (indicating a plurality of incremental files, which need to be updated) is obtained, a software update policy is configured according to the incremental file list, the client obtains the software file as required, and the whole target software does not need to be downloaded, and the update of the target software can be realized only by downloading the incremental file, thereby improving the update rate, and further solving the technical problem that the update speed is slower due to smaller network bandwidth when the software of the intranet client is updated in the related art.
Embodiments of the present invention will be described in detail with reference to the following steps.
Optionally, before parsing the software update information issued by the server, the method includes: calling a software updating module in the client, wherein the software updating module accesses a server to determine whether the target software has a new version; and under the condition that the target software has a new version, reading the software update information of the target software.
It should be noted that, in the embodiment of the present invention, a software update module is deployed at a client, where the software update module can quickly access a server to obtain version information of each piece of software stored in the server, and a version package number stored in the server can indicate a current version of the piece of software, and the software update module can determine whether the software of the located client needs to be updated according to the software version number.
It should be noted that, in the embodiment of the invention, the server can be accessed quickly by deploying the software update module, and the special business of the client software update can be completed without affecting the processing of other business of the client.
Step S101, analyzing the software updating information issued by the server to obtain the software identification of the target software to be updated and the latest information abstract code set of the target software.
It should be noted that, a part of companies or enterprises can set up branch offices in each place, when using intranet office, a plurality of local area networks are built through a plurality of network segments, intranet clients in a certain branch office are connected through the local area network and can communicate with an intranet server, and clients in the local area networks can access each other through private line connection among the branch offices.
It should be noted that, the client in the intranet cannot access the external network, the downloading of the software in the intranet is completed by the server interfacing with the client, the server stores all the software entities on the client, the server can access the external network, obtain the latest information of each software, check whether each software is updated, and for the updated software, download the latest version of software through the application software download interface and store in the server database.
It should be noted that, files related to the software are stored under each software installation directory, each file has a corresponding file information abstract code, the information abstract code of each file is unique as the file identifier, after receiving the software update information issued by the server, the client can obtain the software identifier corresponding to the latest version of software and the latest information abstract set of each software, where the latest information abstract set is obtained by integrating the information abstract codes of each file under the software installation directory.
The information abstract code may refer to an identification code generated after extracting the information abstract of the file, for example, an MD5 code.
Step S102, all files under target software in a local software installation catalog of the client are scanned based on the software identification, and a source information abstract code set is obtained.
It should be noted that, according to the software identifier, a file corresponding to a certain software in the client software directory may be located, where the software is the target software to be updated, and all files corresponding to the target file are scanned to obtain a source information abstract code set of the client target software, that is, an information abstract code set corresponding to the software with no updated version.
And step S103, comparing the source information abstract code set with the latest information abstract code set to obtain an increment file list.
It should be noted that, comparing the source information abstract code set corresponding to the software of the non-updated version with the latest information abstract code set corresponding to the software of the updated version, the file that needs to be updated by the target software can be obtained, so as to obtain an incremental file list, where the incremental file list refers to a file list that needs to be replaced or added by the client software.
It should be noted that, in the embodiment of the invention, the client downloads the incremental file updating software according to the need, and does not need to download all software information, thereby reducing the bandwidth occupation to the maximum extent.
Step S104, configuring a software update strategy based on the increment file list.
Optionally, the software update policy includes at least one of: the method comprises the steps of obtaining a first incremental file set from an associated client and obtaining a second incremental file set from a server, wherein the associated client refers to other clients except the client in the same local area network.
It should be noted that, the client may download the incremental file from the associated client or the server, and preferably select to obtain a new file from the associated client, and then obtain the remaining file from the client, thereby reducing the burden of the server, limiting and restricting only downloading with a network segment and downloading from the server, and not downloading across the network segment (except the server), and simultaneously limiting the speed of the server, so as to effectively solve the problem of congestion in downloading the enterprise wide area network.
Optionally, the step of obtaining the first delta file set from the associated client comprises: reading files corresponding to target software under a software installation directory of an associated client based on the incremental file list, and determining a mutual transmission incremental file list; transmitting a file transmission request to the associated client based on the inter-transmission incremental file list; and receiving a first incremental file set transmitted by the associated client, and storing the first incremental file set in a software download directory of the client.
It should be noted that, each client in the same local area network can access each other to transmit service data and files, and the speed of acquiring files from the associated client in the local area network is faster than the speed of acquiring files from the server, so after acquiring the incremental file list, each file under the software installation directory of the associated client needs to be accessed first to check whether the file recorded in the incremental file list exists or not, thereby determining the inter-transmission incremental file list, and requesting the transmission of the inter-transmission incremental file to the associated client.
Optionally, after the files corresponding to the target software under the software installation directory of the associated client are read based on the incremental file list, determining the inter-transfer incremental file list includes: acquiring a downloaded incremental file list under the condition that the number of the incremental files in the inter-transmission incremental file list is smaller than that in the incremental file list; sending a file downloading request to a server based on the downloading incremental file list; and receiving a second incremental file set issued by the server, and storing the second incremental file set into a software download directory of the client.
It should be noted that, for the delta file that the associated client does not have, a file download request needs to be sent to the server, and the remaining delta file needs to be downloaded from the server.
Optionally, after storing the second delta file set to the software download directory of the client, the method includes: integrating the first incremental file set and the second incremental file set to obtain an incremental file set; in the event that the number of files in the delta file set is equal to the number of files in the delta file list, the delta file set is copied to the client local software installation directory.
It should be noted that, in the embodiment of the present invention, two steps of software file downloading and software upgrading are separated, so that software updating failure caused by file downloading failure is avoided.
The following describes in detail another embodiment.
Example two
According to an embodiment of the present invention, there is provided another embodiment of a method of configuring a software update policy, it being noted that the steps shown in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowchart, in some cases the steps shown or described may be performed in an order different from that shown or described herein.
The configuration method of the software updating strategy provided by the embodiment of the invention is described by taking the intranet server as an execution main body, and is applied to the intranet server of an enterprise, and the client is in butt joint with the server.
FIG. 2 is a flow chart of another alternative method of configuring a software update policy according to an embodiment of the invention, as shown in FIG. 2, the method comprising the steps of:
step S201, soft update information is sent to the client, where the soft update information includes: the method comprises the steps that a software identifier of target software to be updated and a latest information abstract code set of the target software are compared with a source information abstract code set of the target software stored locally after a client receives software update information, an incremental file list is obtained, and a software update strategy is generated;
step S202, receiving the software update strategy and issuing the increment file to the client based on the software update strategy.
Through the steps, the software update information is firstly issued to the client, then the software update strategy is received, and the incremental file is issued to the client based on the software update strategy. In this embodiment, when the version of the software of the intranet client is updated, the latest information abstract code set of the target software is compared with the source information abstract code set corresponding to the local software of the client, so that a part of the target software, which needs to be updated, is obtained, an incremental file list is obtained, a software update policy is configured according to the incremental file list, the client obtains the software file as required, the whole target software is not required to be downloaded, the update of the target software can be realized only by downloading the incremental file, the update rate is improved, and the technical problem that the update speed is slower due to smaller network bandwidth when the software of the intranet client is updated in the related technology is solved.
Embodiments of the present invention will be described in detail with reference to the following steps.
It should be noted that, a part of companies or enterprises can set up branch offices in each place, when using intranet office, a plurality of local area networks are built through a plurality of network segments, intranet clients in a certain branch office are connected through the local area network and can communicate with an intranet server, and clients in the local area networks can access each other through private line connection among the branch offices.
Optionally, before the soft update information is sent to the client, the method includes: reading software information under a target software release address, wherein the software information at least comprises: a software version number; comparing the software version number with the historical version number of the target software stored in the server, and acquiring the target software of the latest version under the condition that the software version number is not matched with the historical version number; the latest version of the target software entity is stored in the software directory of the server.
It should be noted that, all software installed by the client is stored in the server, and the software information under each software release address is accessed periodically, the software version number is read, and when the software has an update, the latest version of the software is downloaded and stored in the corresponding database.
It should be noted that, the client in the intranet cannot access the external network, the downloading of the software in the intranet is completed by the server interfacing with the client, the server stores all the software entities on the client, the server can access the external network, obtain the latest information of each software, check whether each software is updated, and for the updated software, download the latest version of software through the application software download interface and store in the server database.
Step S201, soft update information is issued to the client.
It should be noted that, the client side is configured with a software update module, the software update module accesses the server to check whether each piece of software in the server has update (version information of each piece of software stored in the server is obtained, version package numbers stored in the server can indicate current versions of the pieces of software), the software update module can determine whether the software of the located client side needs to be updated or not through the software version numbers), for the updated pieces of software, the software update module requests update information from the server, then receives and analyzes the update information issued by the server, and determines a file list that the target piece of software needs to be updated.
It should be noted that, in the embodiment of the invention, the server can be accessed quickly by deploying the software update module, and the special business of the client software update can be completed without affecting the processing of other business of the client.
It should be noted that, the client analyzes the update information issued by the server, and may obtain the software identifier and the latest information abstract code set, and locate a file corresponding to a certain software in the client software directory according to the software identifier, where the software is the target software to be updated, and scans all files corresponding to the target file to obtain the source information abstract code set of the target software of the client, that is, the information abstract code set corresponding to the software of the non-updated version.
The information abstract code may refer to an identification code generated after extracting the information abstract of the file, for example, an MD5 code.
It should be noted that, after comparing the locally stored source information abstract code set of the target software with the latest information abstract code set corresponding to the updated version software, the client may obtain the file that needs to be updated by the target software, so as to obtain an incremental file list, where the incremental file list refers to a file list that needs to be replaced or added by the client software.
It should be noted that, in the embodiment of the invention, the client downloads the incremental file updating software according to the need, and does not need to download all software information, thereby reducing the bandwidth occupation to the maximum extent.
Step S202, receiving the software update strategy and issuing the increment file to the client based on the software update strategy.
It should be noted that after the client obtains the incremental file list, a proper software update strategy is configured according to the incremental file list, the incremental file is downloaded from the associated client or the server, and the new file is preferentially selected to be obtained from the associated client, and then the remaining file is obtained from the client, so that the burden of the server is reduced, the downloading with the network segment and the downloading from the server are limited, the downloading with the network segment (except the server) cannot be performed, the speed limit is performed on the server, and the problem of downloading congestion of the enterprise wide area network is effectively solved.
It should be noted that, each client in the same local area network can access each other to transmit service data and files, and the speed of acquiring files from the associated client in the local area network is faster than the speed of acquiring files from the server, so after acquiring the incremental file list, each file under the software installation directory of the associated client needs to be accessed first to check whether the file recorded in the incremental file list exists or not, thereby determining the inter-transmission incremental file list, and requesting the transmission of the inter-transmission incremental file to the associated client.
It should be noted that, for the delta file that the associated client does not have, a file download request needs to be sent to the server, and the remaining delta file needs to be downloaded from the server.
It should be noted that, after receiving the file downloading request sent by the client, the server will issue the corresponding software file to the next client according to the content of the file downloading request.
The client acquires all files in the incremental file list according to the file set transmitted by the associated client and the file set issued by the server, copies the incremental file set to the local software installation directory of the client, and starts software to automatically install, so that the client software update is completed.
It should be noted that, in the embodiment of the present invention, two steps of software file downloading and software upgrading are separated, so that software updating failure caused by file downloading failure is avoided.
The following describes in detail another embodiment.
Example III
According to an embodiment of the present invention, there is provided another embodiment of a method of configuring a software update policy, it being noted that the steps shown in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowchart, in some cases the steps shown or described may be performed in an order different from that shown or described herein.
Fig. 3 is a schematic diagram of an alternative configuration system of a software update policy according to an embodiment of the present invention, as shown in fig. 3, an intranet includes a server 301 (including a software deployment module therein) and a local area network (illustrated in fig. 3 by a local area network a, a local area network B, and more local area networks), each local area network includes a plurality of clients 302 (including a software download transmission module therein), clients in each local area network can access a unified server, clients in the local area network can access each other, and mutually transmit software delta files, and a software deployment module is configured in the server, for sending a software file information summary code and a delta file of software to be updated to the clients, and the local area network feeds an upgrade result back to the server.
Fig. 4 is a timing diagram of an alternative method for configuring a software update policy according to an embodiment of the present invention, as shown in fig. 4, where the method for configuring a software update policy is applied to a software update system, the software update system includes a client, a client software update module, a server, and an associated client (i.e., other clients associated with a client, including a download transmission module), and the overall software update flow includes:
Step one, a user starts software at a client, and a software start script calls a client software update module;
step two, a client software updating module accesses a server to inquire whether software updating exists;
the server can access the software download address regularly to obtain the latest software information, check whether the updated software is updated, download the updated software, replace the original software with the latest version of the software, store the software entity in the database, and when the client software update module accesses the server, if the server has the software update relative to the client, the server will send the updated software update information to the client software update module.
The server is provided with a software deployment module which is used for generating an updating scheme at the server end, the software deployment module checks whether a database storage catalog corresponding to the updating software has a messy code file, if so, the software deployment module repairs or downloads a new file again in time, if not, the updating of the old version of the software is stopped, and the file corresponding to the software entity is copied to the software download catalog.
Step three, if the query result shows no software update or fails, the query result is returned to the client, if the query result shows update, the software update information is obtained, and the software update information is sent to the client;
Step four, the client software updating module analyzes the updating information and acquires the latest information abstract code set;
step five, the client software updating module scans the local software directory file to obtain a source information abstract code set;
step six, the client software updating module compares the incremental file list;
step seven, the client software updating module sends a file transmission request to the associated client;
step eight, the associated client software updating module transmits the files indicated in the incremental file list to the client software updating module;
step nine, the client software updating module determines whether all files in the incremental file list are acquired, if not, the client software updating module sends a file downloading request to the server and receives the rest files returned by the server;
the client software updating module downloads the required incremental files from a server (low speed limit) and a local area network associated client (non-speed limit or high speed limit) to a local software download catalog (support breakpoint continuous transmission and forbid the download across the local area network) according to the incremental file list, and if the files have problems, if the files have messy code files, the software download fails.
Step ten, copying all files from the software download catalogue to the software installation catalogue after all files are acquired;
And step eleven, restarting the software, and finishing the software updating.
Through the embodiment, when the version of the software of the intranet client is updated, the latest information abstract code set of the target software is compared with the source information abstract code set corresponding to the local software of the client, so that the part of the target software, which needs to be updated, is obtained, an incremental file list is obtained, the software update strategy is configured according to the incremental file list, the client obtains the software file as required, the whole target software is not required to be downloaded, the update of the target software can be realized only by downloading the incremental file, and the update rate is improved.
In the application, the client downloads the incremental files from other clients and servers in the same local area network based on the incremental file list to update software, so that the downloading of the same network segment and the downloading of the same server are limited, the downloading of the same network segment cannot be performed, and the problem of downloading congestion of the enterprise wide area network is effectively solved.
In the method, after the completion of the downloading of the incremental files is determined, all files stored in the software downloading directory are copied to the software installing directory, and the software downloading and the software upgrading are separated, so that the problem that the normal use of the software is affected by the replacement of the software files in the downloading process is avoided.
The following describes in detail another embodiment.
Example IV
The embodiment of the application also provides a configuration device of the software update policy, and it should be noted that the configuration device of the software update policy in the embodiment of the application includes a plurality of implementation units, and each implementation unit corresponds to each implementation step of the configuration method of the software update policy provided in the above embodiment.
FIG. 5 is a schematic diagram of an alternative configuration device for a software update policy according to an embodiment of the invention, as shown in FIG. 5, the configuration device comprising: an analysis unit 51, a scanning unit 52, a comparison unit 53, a configuration unit 54, wherein,
the parsing unit 51 is configured to parse the software update information issued by the server, to obtain a software identifier of the target software to be updated and a latest information abstract code set of the target software;
the scanning unit 52 is configured to scan all files under the target software in the local software installation directory of the client based on the software identifier, and obtain a source information summary code set;
the comparison unit 53 is configured to compare the source information summary code set with the latest information summary code set to obtain an incremental file list, where the incremental file list is used to indicate a list of all files that need to be updated by the target software in each client;
A configuration unit 54 for configuring the software update policy based on the delta file list.
The configuration device of the software updating strategy analyzes the software updating information issued by the server through the analysis unit 51 to obtain the software identification of the target software to be updated and the latest information abstract code set of the target software; scanning all files under target software in a local software installation catalog of the client based on the software identification through a scanning unit 52 to acquire a source information abstract code set; comparing the source information abstract code set with the latest information abstract code set through a comparison unit 53 to obtain an incremental file list, wherein the incremental file list is used for indicating the lists of all files which need to be updated of the target software in each client; the software update policy is configured by the configuration unit 54 based on the delta file list.
In this embodiment, when the version of the software of the intranet client is updated, the latest information abstract code set of the target software is compared with the source information abstract code set corresponding to the local software of the client, so that a part of the target software, which needs to be updated, is obtained, an incremental file list is obtained, a software update policy is configured according to the incremental file list, the client obtains the software file as required, the whole target software is not required to be downloaded, the update of the target software can be realized only by downloading the incremental file, the update rate is improved, and the technical problem that the update speed is slower due to smaller network bandwidth when the software of the intranet client is updated in the related technology is solved.
Optionally, the configuration device of the software update policy further includes: the first calling module is used for calling a software updating module in the client, wherein the software updating module accesses the server and determines whether the target software has a new version or not; and the first reading module is used for reading the software update information of the target software under the condition that the target software has a new version.
Optionally, the software update policy includes at least one of: the method comprises the steps of obtaining a first incremental file set from an associated client and obtaining a second incremental file set from a server, wherein the associated client refers to other clients except the client in the same local area network.
Optionally, the configuration device of the software update policy further includes: the second reading module is used for reading files corresponding to the target software under the software installation directory of the associated client side based on the increment file list, and determining a mutual transmission increment file list; the first sending module is used for sending a file transmission request to the associated client based on the mutual transmission incremental file list; the first receiving module is used for receiving the first incremental file set transmitted by the associated client and storing the first incremental file set into the software download catalog of the client.
Optionally, the configuration device of the software update policy further includes: the first acquisition module is used for acquiring a downloaded incremental file list under the condition that the number of the incremental files in the mutual transmission incremental file list is smaller than that in the incremental file list; the second sending module is used for sending a file downloading request to the server based on the downloading incremental file list; the second receiving module is used for receiving a second incremental file set issued by the server and storing the second incremental file set into a software download catalog of the client.
Optionally, the configuration device of the software update policy further includes: the first integration module is used for integrating the first incremental file set and the second incremental file set to obtain an incremental file set; and the first copying module is used for copying the incremental file set to the client local software installation directory under the condition that the number of files in the incremental file set is equal to the number of files in the incremental file list.
According to another aspect of the embodiment of the present invention, there is also provided a configuration device of a software update policy, applied to a server, where the server interfaces with a client, the configuration device includes: the issuing unit is used for issuing the software update information to the client, wherein the software update information comprises: the method comprises the steps that a software identifier of target software to be updated and a latest information abstract code set of the target software are compared with a source information abstract code set of the target software stored locally after a client receives software update information, an incremental file list is obtained, and a software update strategy is generated; and the receiving unit is used for receiving the software updating strategy and transmitting the increment file to the client based on the software updating strategy.
Optionally, the configuration device of the software update policy further includes: the third reading module is configured to read software information under the target software release address, where the software information at least includes: a software version number; the first comparison module is used for comparing the software version number with the historical version number of the target software stored in the server, and acquiring the latest version of the target software under the condition that the software version number is not matched with the historical version number; and the first storage module is used for storing the latest version of the target software entity in a software directory of the server.
The configuration device of the software update policy may further include a processor and a memory, where the analyzing unit 51, the scanning unit 52, the comparing unit 53, the configuration unit 54, and the like are stored as program units in the memory, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor includes a kernel, and the kernel fetches a corresponding program unit from the memory. The kernel can be set with one or more, and the software of the client in the intranet is updated by adjusting the kernel parameters.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), which includes at least one memory chip.
The present application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with the method steps of: analyzing the software updating information issued by the server to obtain the software identification of the target software to be updated and the latest information abstract code set of the target software; scanning all files under target software in a local software installation directory of a client based on the software identification to acquire a source information abstract code set; comparing the source information abstract code set with the latest information abstract code set to obtain an incremental file list, wherein the incremental file list is used for indicating the lists of all files which need to be updated of target software in each client; the software update policy is configured based on the delta file list.
According to another aspect of the embodiment of the present invention, there is also provided a computer readable storage medium, where the computer readable storage medium includes a stored computer program, where the computer program when executed controls a device in which the computer readable storage medium is located to execute a configuration method of any one of the software update policies described above.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device including one or more processors and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement a configuration method of any one of the software update policies described above.
Fig. 6 is a block diagram of a hardware structure of an electronic device (or mobile device) of a configuration method of a software update policy according to an embodiment of the present invention. As shown in fig. 6, the electronic device may include one or more processors 602 (shown in fig. 6 as 602a, 602b, … …,602 n) (the processor 602 may include, but is not limited to, a microprocessor MCU, a programmable logic device FPGA, etc.) and a memory 604 for storing data. In addition, the method may further include: a display, an input/output interface (I/O interface), a Universal Serial Bus (USB) port (which may be included as one of the ports of the I/O interface), a network interface, a keyboard, a power supply, and/or a camera. It will be appreciated by those of ordinary skill in the art that the configuration shown in fig. 6 is merely illustrative and is not intended to limit the configuration of the electronic device described above. For example, the electronic device may also include more or fewer components than shown in FIG. 6, or have a different configuration than shown in FIG. 6.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (12)

1. The configuration method of the software updating strategy is characterized by being applied to a client, wherein the client is in butt joint with a server and comprises the following steps:
analyzing the software updating information issued by the server to obtain a software identifier of target software to be updated and a latest information abstract code set of the target software;
scanning all files under the target software in the local software installation catalog of the client based on the software identification to acquire a source information abstract code set;
comparing the source information abstract code set with the latest information abstract code set to obtain an incremental file list, wherein the incremental file list is used for indicating a list of all files which need to be updated of the target software in each client;
and configuring a software updating strategy based on the increment file list.
2. The configuration method according to claim 1, characterized by comprising, before parsing the software update information issued by the server:
invoking a software update module in the client, wherein the software update module accesses the server and determines whether the target software has a new version;
and reading the software updating information of the target software under the condition that the target software has a new version.
3. The configuration method according to claim 1, wherein the software update policy comprises at least one of: and acquiring a first incremental file set from an associated client and acquiring a second incremental file set from the server, wherein the associated client refers to other clients except the client in the same local area network.
4. The method of claim 3, wherein the step of obtaining the first delta file set from the associated client comprises:
reading files corresponding to the target software under the software installation directory of the associated client based on the incremental file list, and determining a mutual transmission incremental file list;
transmitting a file transmission request to the associated client based on the inter-transmission incremental file list;
and receiving a first incremental file set transmitted by the associated client, and storing the first incremental file set to a software download directory of the client.
5. The method of claim 4, wherein after reading the file corresponding to the target software under the software installation directory of the associated client based on the delta file list, determining the inter-transferred delta file list comprises:
Acquiring a downloaded incremental file list under the condition that the number of the incremental files in the mutual transmission incremental file list is smaller than that in the incremental file list;
sending a file downloading request to the server based on the downloading incremental file list;
and receiving a second incremental file set issued by the server, and storing the second incremental file set to a software download directory of the client.
6. The method of claim 5, after storing the second delta file set to the software download directory of the client, comprising:
integrating the first incremental file set and the second incremental file set to obtain the incremental file set;
and copying the incremental file set to the client-side local software installation directory under the condition that the number of files in the incremental file set is equal to the number of files in the incremental file list.
7. The configuration method of the software updating strategy is characterized by being applied to a server, wherein the server is in butt joint with a client, and the configuration method comprises the following steps:
and sending software update information to the client, wherein the software update information comprises: the method comprises the steps that after receiving software updating information, a client compares the latest information abstract code set with a locally stored source information abstract code set of target software to obtain an increment file list and generate a software updating strategy;
And receiving the software updating strategy and transmitting an incremental file to the client based on the software updating strategy.
8. The method of claim 7, comprising, prior to issuing the software update information to the client:
reading software information under a target software release address, wherein the software information at least comprises: a software version number;
comparing the software version number with the historical version number of the target software stored in the server, and acquiring the target software of the latest version under the condition that the software version number is not matched with the historical version number;
storing the latest version of the target software entity in a software directory of the server.
9. A configuration device of a software update policy, applied to a client, the client interfacing with a server, the configuration device comprising:
the analysis unit is used for analyzing the software updating information issued by the server to obtain the software identification of the target software to be updated and the latest information abstract code set of the target software;
the scanning unit is used for scanning all files under the target software in the local software installation catalog of the client based on the software identification to acquire a source information abstract code set;
The comparison unit is used for comparing the source information abstract code set with the latest information abstract code set to obtain an incremental file list, wherein the incremental file list is used for indicating a list of all files which need to be updated of the target software in each client;
and the configuration unit is used for configuring a software updating strategy based on the increment file list.
10. A configuration device of a software update policy, applied to a server, where the server interfaces with a client, the configuration device comprising:
the issuing unit is configured to issue software update information to the client, where the software update information includes: the method comprises the steps that after receiving software updating information, a client compares the latest information abstract code set with a locally stored source information abstract code set of target software to obtain an increment file list and generate a software updating strategy;
and the receiving unit is used for receiving the software updating strategy and transmitting an increment file to the client based on the software updating strategy.
11. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored computer program, wherein the computer program when run controls a device in which the computer readable storage medium is located to execute the method for configuring the software update strategy according to any one of claims 1 to 8.
12. An electronic device comprising one or more processors and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of configuring the software update policy of any of claims 1-8.
CN202310390540.4A 2023-04-12 2023-04-12 Configuration method and device of software update strategy, electronic equipment and storage medium Pending CN116483405A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310390540.4A CN116483405A (en) 2023-04-12 2023-04-12 Configuration method and device of software update strategy, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310390540.4A CN116483405A (en) 2023-04-12 2023-04-12 Configuration method and device of software update strategy, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116483405A true CN116483405A (en) 2023-07-25

Family

ID=87220642

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310390540.4A Pending CN116483405A (en) 2023-04-12 2023-04-12 Configuration method and device of software update strategy, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116483405A (en)

Similar Documents

Publication Publication Date Title
CA2507172C (en) System and method for managing and communicating software updates
AU2004279202B2 (en) System and method for updating installation components in a networked environment
US7509636B2 (en) System and method for updating files utilizing delta compression patching
US7478381B2 (en) Managing software updates and a software distribution service
US7676448B2 (en) Controlling installation update behaviors on a client computer
RU2408063C2 (en) Updated distribution architecture and method of distributing software
CN111291000B (en) File acquisition method, equipment and storage medium based on block chain
CN105808274A (en) Software upgrading method and system as well as corresponding clients and servers
CN116483405A (en) Configuration method and device of software update strategy, electronic equipment and storage medium
CN114610346A (en) Software upgrading method and device, storage medium and electronic equipment
CN113190861A (en) SonarQube project operation authority configuration method and device
CN116301953A (en) Processing method and device of middleware storage warehouse, storage medium and electronic device
CN116743762A (en) Service registration cluster flow switching method, flow switching device and storage medium
CN116170454A (en) Application deployment method, device, system, equipment and medium

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