CN102546246A - Method and system for automatic upgrade of software - Google Patents
Method and system for automatic upgrade of software Download PDFInfo
- Publication number
- CN102546246A CN102546246A CN2011104484289A CN201110448428A CN102546246A CN 102546246 A CN102546246 A CN 102546246A CN 2011104484289 A CN2011104484289 A CN 2011104484289A CN 201110448428 A CN201110448428 A CN 201110448428A CN 102546246 A CN102546246 A CN 102546246A
- Authority
- CN
- China
- Prior art keywords
- management entity
- upgrade
- client
- version information
- upgrade patch
- 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
Links
Images
Abstract
The invention provides a method for automatic upgrade of software, which includes the following steps: A an update management entity located in a local area network is connected with a server located in a wide area network to download version information files; B the update management entity enables the downloaded version information files and local version information to be contrasted, if the downloaded version information files and the local version information are different, a step C is carried out; and if the downloaded version information files and the local version information are the same, the step A is returned after specific time is waited according to update strategies; C the upgrade management entity downloads upgrade patches from the server and saves the upgrade patches; D the upgrade management entity is connected with a client located at the same local area network with the upgrade management entity, and pushes the upgrade patched to the client; and E the client receives the upgrade patches from the upgrade management entity, stops related processes, and then enables new data to overwrite old data.
Description
Technical field
The present invention relates to field of computer technology, relate in particular to a kind of method and system of software automatic updating.
Background technology
Software upgrading; Be meant that the software developer is when writing software; Because the designer considers comprehensively or the program function imperfection, behind software publishing, through to after the modification of program or adding new function; With the form issue of upgrade patch, realize software upgrading through downloading and install upgrade patch.
Software upgrading mainly comprises dual mode: manually upgrade and auto-update.Manually upgrading needs the user manually to control download and upgrade patch is installed, and uses comparatively trouble.Auto-update adopts the form of client/server usually, and installation needs upgrading software on the client, and upgrade patch leaves server in.Software comprises main program and refresh routine, and escalation process is as shown in Figure 1, comprises the steps:
Step 101: main program discharges and the activation refresh routine.
Step 102: refresh routine Connection Service device, download version message file.
Step 103: version information file and the local version information downloaded are compared execution in step 104 then when the time inequality.
Step 104: refresh routine is from server download and upgrade patch, and download stops associated process after accomplishing, and then new data is covered old data.
Step 105: refresh routine withdraws from and moves main program voluntarily.
The problem that existing automatically updating method exists is: refresh routine is subordinated to main program; If (like virus infections, user misoperation deletion critical file) causes main program normally not start or to move for some reason; Then refresh routine also can't move, and also just can't carry out auto-update.In addition, if upgrade patch is very big or network speed is very slow, the user has to wait for a long time up to downloading completion or failed download, causes refresh routine to take the FTP client FTP resource or the network bandwidth for a long time.When particularly many clients were installed the same program that needs upgrading in same local area network (LAN), these many clients all will be upgraded respectively, seriously took the bandwidth that is connected between local area network (LAN) and the wide area network.
Summary of the invention
The invention provides a kind of method and system of software automatic updating, can be so that software upgrading be more reliable, and avoid taking client and network bandwidth resources.
The method of a kind of software automatic updating that the embodiment of the invention provides comprises the steps:
A, the renewal management entity that is arranged in local area network (LAN) connect the server be arranged in wide area network, download version message file;
B, upgrade management entity version information file and the local version information downloaded are compared, execution in step C then when the time inequality as if identical, returns steps A after then waiting for specific duration according to update strategy;
Upgrade patch is downloaded and preserved to C, renewal management entity from server;
D, renewal management entity connect and the client that self is positioned at same local area network (LAN), and upgrade patch is pushed to client;
E, client receive the upgrade patch of self refresh management entity, stop associated process, then new data are covered old data.
Preferably, said version information file is the version information according to time and software version coding, or the MD5 sign indicating number that adopts the MD5 algorithm that upgrade patch is performed calculations and obtains.
The embodiment of the invention also provides a kind of system of software automatic updating, comprising: be arranged in the server of wide area network, be arranged in the renewal management entity and at least one client of same local area network (LAN);
Said server is used to preserve upgrade patch, and the download service of upgrade patch is provided;
Said renewal management entity is used for from server download and upgrade patch, and preserves upgrade patch, connects and the client that self is positioned at same local area network (LAN), and upgrade patch is pushed to client;
Said client is used to receive the upgrade patch of self refresh management entity, stops associated process, then new data is covered old data.
Preferably, said version information file is the version information according to time and software version coding, or the MD5 sign indicating number that adopts the MD5 algorithm that upgrade patch is performed calculations and obtains.
Preferably, said renewal management entity comprises:
The version comparison module is used for from server download version message file, version information file and the local version information downloaded is compared, if difference then enable download module;
Download module is used for from server download and upgrade patch;
Preserve module, be used to preserve the upgrade patch that download module is downloaded;
Push module, be used for upgrade patch is pushed to the client of the local area network (LAN) at said renewal management entity place.
Can find out from above technical scheme; Refresh routine is independent from main program and client fully; In the local area network (LAN) at client place, special renewal management entity is set, realizes the automatic download and the installation of upgrade patch by upgrading management entity, client only need receive the upgrade patch of self refresh management entity; Stop associated process, then new data is covered old data.According to the present invention program, when a plurality of clients that same software is installed in the local area network (LAN) are upgraded at every turn,, greatly reduced being connected taking of bandwidth between local area network (LAN) and the wide area network as long as download a upgrade patch from server.It is independent with client to upgrade management entity, so renewal process need not take the resource of client, even renewal appears also can realizing unusually in the main program of client.The present invention program is particularly useful for having disposed in the local area network (LAN) a large amount of situations that the client of same software has been installed.
Description of drawings
Fig. 1 is an auto-update schematic flow sheet of the prior art;
The software automatic updating schematic flow sheet that Fig. 2 provides for the embodiment of the invention.
Embodiment
Basic thought of the present invention is, refresh routine is independent from main program and client fully, in the local area network (LAN) at client place, special renewal management entity is set, and realizes the automatic download and the installation of upgrade patch by upgrading management entity.
The software automatic updating flow process that the embodiment of the invention provides is as shown in Figure 2, comprises the steps:
Step 201: the renewal management entity that is arranged in local area network (LAN) connects the server that is arranged in wide area network, download version message file.
Step 202: upgrade management entity version information file and the local version information downloaded are compared, execution in step 203 then when the time inequality as if identical, is returned step 201 after then waiting for specific duration according to update strategy.
Step 203: upgrade management entity and download and preserve upgrade patch from server.
Step 204: upgrade management entity and connect and the client that self is positioned at same local area network (LAN), upgrade patch is pushed to client.
Step 205: client receives the upgrade patch of self refresh management entity, stops associated process, then new data is covered old data.
Said version information file can be the version information according to time and software version coding, also can be the MD5 sign indicating number that adopts the MD5 algorithm that upgrade patch is performed calculations and obtains.
Upgrade management entity and can preserve a plurality of upgrade patch, so that client can return back to older version in some cases.Upgrade management entity and can only preserve a up-to-date n upgrade patch, and upgrade patch is more early deleted.
The embodiment of the invention also provides a kind of system of software automatic updating, comprising: be arranged in the server of wide area network, be arranged in the renewal management entity and at least one client of same local area network (LAN);
Said server is used to preserve upgrade patch, and the download service of upgrade patch is provided;
Said renewal management entity is used for from server download and upgrade patch, and preserves upgrade patch, connects and the client that self is positioned at same local area network (LAN), and upgrade patch is pushed to client;
Said client is used to receive the upgrade patch of self refresh management entity, stops associated process, then new data is covered old data.
Wherein, said version information file is the version information according to time and software version coding, or the MD5 sign indicating number that adopts the MD5 algorithm that upgrade patch is performed calculations and obtains.
Preferably, said renewal management entity comprises:
The version comparison module is used for from server download version message file, version information file and the local version information downloaded is compared, if difference then enable download module;
Download module is used for from server download and upgrade patch;
Preserve module, be used to preserve the upgrade patch that download module is downloaded;
Push module, be used for upgrade patch is pushed to the client of the local area network (LAN) at said renewal management entity place.
Can find out from above flow process; By independently upgrading management entity from server download and upgrade patch; And each client that is pushed in the local area network (LAN) is installed; When a plurality of clients that same software is installed in the local area network (LAN) are like this upgraded at every turn,, greatly reduced being connected taking of bandwidth between local area network (LAN) and the wide area network as long as download a upgrade patch from server.It is independent with client to upgrade management entity, so renewal process need not take the resource of client, even renewal appears also can realizing unusually in the main program of client.The present invention program is particularly useful for having disposed in the local area network (LAN) a large amount of situations that the client of same software has been installed.
Upgrade management entity and can regard one type of special client as, the program of its operation is exactly a refresh routine.In addition, the program of upgrading the management entity self-operating can be upgraded according to the mode of prior art.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being made, is equal to replacement, improvement etc., all should be included within the scope that the present invention protects.
Claims (5)
1. the method for a software automatic updating is characterized in that, comprises the steps:
A, the renewal management entity that is arranged in local area network (LAN) connect the server be arranged in wide area network, download version message file;
B, upgrade management entity version information file and the local version information downloaded are compared, execution in step C then when the time inequality as if identical, returns steps A after then waiting for specific duration according to update strategy;
Upgrade patch is downloaded and preserved to C, renewal management entity from server;
D, renewal management entity connect and the client that self is positioned at same local area network (LAN), and upgrade patch is pushed to client;
E, client receive the upgrade patch of self refresh management entity, stop associated process, then new data are covered old data.
2. method according to claim 1 is characterized in that, said version information file is the version information according to time and software version coding, or the MD5 sign indicating number that adopts the MD5 algorithm that upgrade patch is performed calculations and obtains.
3. the system of a software automatic updating is characterized in that, comprising: be arranged in the server of wide area network, be arranged in the renewal management entity and at least one client of same local area network (LAN);
Said server is used to preserve upgrade patch, and the download service of upgrade patch is provided;
Said renewal management entity is used for from server download and upgrade patch, and preserves upgrade patch, connects and the client that self is positioned at same local area network (LAN), and upgrade patch is pushed to client;
Said client is used to receive the upgrade patch of self refresh management entity, stops associated process, then new data is covered old data.
4. system according to claim 3 is characterized in that, said version information file is the version information according to time and software version coding, or the MD5 sign indicating number that adopts the MD5 algorithm that upgrade patch is performed calculations and obtains.
5. according to claim 3 or 4 described systems, it is characterized in that said renewal management entity comprises:
The version comparison module is used for from server download version message file, version information file and the local version information downloaded is compared, if difference then enable download module;
Download module is used for from server download and upgrade patch;
Preserve module, be used to preserve the upgrade patch that download module is downloaded;
Push module, be used for upgrade patch is pushed to the client of the local area network (LAN) at said renewal management entity place.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011104484289A CN102546246A (en) | 2011-12-28 | 2011-12-28 | Method and system for automatic upgrade of software |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011104484289A CN102546246A (en) | 2011-12-28 | 2011-12-28 | Method and system for automatic upgrade of software |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102546246A true CN102546246A (en) | 2012-07-04 |
Family
ID=46352251
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011104484289A Pending CN102546246A (en) | 2011-12-28 | 2011-12-28 | Method and system for automatic upgrade of software |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102546246A (en) |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104281476A (en) * | 2014-10-13 | 2015-01-14 | 中国外汇交易中心 | Data download method and data download manager for computer system |
CN104424188A (en) * | 2013-08-19 | 2015-03-18 | 携程计算机技术(上海)有限公司 | System and method for updating obtained webpage data |
CN105095076A (en) * | 2015-07-17 | 2015-11-25 | 北京金山安全软件有限公司 | Method and device for testing compatibility between application software versions |
CN105511889A (en) * | 2016-01-15 | 2016-04-20 | 珠海金山网络游戏科技有限公司 | General game version incremental updating system and method |
CN105812435A (en) * | 2014-12-30 | 2016-07-27 | 腾讯科技(深圳)有限公司 | Application upgrading data package processing method and device, electronic equipment, and system |
CN105871955A (en) * | 2015-01-21 | 2016-08-17 | 深圳市腾讯计算机系统有限公司 | Distributed file system-based processing method, server and client |
CN106648761A (en) * | 2016-12-01 | 2017-05-10 | 武汉斗鱼网络科技有限公司 | Method and device for conducting automatic updating in QT program |
CN106656602A (en) * | 2016-12-23 | 2017-05-10 | 武汉微创光电股份有限公司 | System and method for simultaneously updating video monitoring client sides |
CN106775808A (en) * | 2016-11-15 | 2017-05-31 | 中国电子科技集团公司第二十八研究所 | C/S Framework Softwares based on remote verification algorithm automatically update upgrade method |
CN106873967A (en) * | 2016-12-28 | 2017-06-20 | 北京五八信息技术有限公司 | The method and apparatus of bug on a kind of reparation APP lines |
CN107844306A (en) * | 2017-08-09 | 2018-03-27 | 平安壹钱包电子商务有限公司 | Restorative procedure, device, storage medium and the terminal of application program |
CN108173888A (en) * | 2016-12-06 | 2018-06-15 | 杭州海康威视数字技术股份有限公司 | A kind of method for upgrading software of distributed system, apparatus and system |
CN108459868A (en) * | 2018-03-29 | 2018-08-28 | 武汉斗鱼网络科技有限公司 | A kind of software start-up method, device, terminal and storage medium |
CN108809690A (en) * | 2018-04-08 | 2018-11-13 | 广州市海升信息科技有限责任公司 | The method and its system of device software version information automatic checking |
CN111459829A (en) * | 2020-04-03 | 2020-07-28 | 成都安易迅科技有限公司 | Configuration method for solving tool used in work of tester |
CN112698846A (en) * | 2020-12-30 | 2021-04-23 | 麒麟软件有限公司 | Method and system for automatically installing patch in Linux system |
CN117411787A (en) * | 2023-12-13 | 2024-01-16 | 江苏省电子信息产品质量监督检验研究院(江苏省信息安全测评中心) | Centralized upgrading method and system for multiple software in local area network |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1300719C (en) * | 2003-08-21 | 2007-02-14 | 珠海金山软件股份有限公司 | Comptuer software updating method |
CN100337200C (en) * | 2005-04-22 | 2007-09-12 | 珠海金山软件股份有限公司 | Software upgrading method for use in computer systems |
-
2011
- 2011-12-28 CN CN2011104484289A patent/CN102546246A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1300719C (en) * | 2003-08-21 | 2007-02-14 | 珠海金山软件股份有限公司 | Comptuer software updating method |
CN100337200C (en) * | 2005-04-22 | 2007-09-12 | 珠海金山软件股份有限公司 | Software upgrading method for use in computer systems |
Cited By (26)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104424188B (en) * | 2013-08-19 | 2018-07-20 | 上海携程商务有限公司 | The system and method that the web data of acquisition is updated |
CN104424188A (en) * | 2013-08-19 | 2015-03-18 | 携程计算机技术(上海)有限公司 | System and method for updating obtained webpage data |
CN104281476A (en) * | 2014-10-13 | 2015-01-14 | 中国外汇交易中心 | Data download method and data download manager for computer system |
CN104281476B (en) * | 2014-10-13 | 2018-09-11 | 中国外汇交易中心 | A kind of data download method and its data downloading management device for computer system |
CN105812435A (en) * | 2014-12-30 | 2016-07-27 | 腾讯科技(深圳)有限公司 | Application upgrading data package processing method and device, electronic equipment, and system |
CN105871955A (en) * | 2015-01-21 | 2016-08-17 | 深圳市腾讯计算机系统有限公司 | Distributed file system-based processing method, server and client |
CN105871955B (en) * | 2015-01-21 | 2019-01-22 | 深圳市腾讯计算机系统有限公司 | A kind of processing method and server and client based on distributed file system |
CN105095076A (en) * | 2015-07-17 | 2015-11-25 | 北京金山安全软件有限公司 | Method and device for testing compatibility between application software versions |
CN105095076B (en) * | 2015-07-17 | 2019-04-12 | 北京金山安全软件有限公司 | Method and device for testing compatibility between application software versions |
CN105511889A (en) * | 2016-01-15 | 2016-04-20 | 珠海金山网络游戏科技有限公司 | General game version incremental updating system and method |
CN106775808A (en) * | 2016-11-15 | 2017-05-31 | 中国电子科技集团公司第二十八研究所 | C/S Framework Softwares based on remote verification algorithm automatically update upgrade method |
CN106648761B (en) * | 2016-12-01 | 2019-04-05 | 武汉斗鱼网络科技有限公司 | The method and device automatically updated in QT program |
WO2018098919A1 (en) * | 2016-12-01 | 2018-06-07 | 武汉斗鱼网络科技有限公司 | Automatic update method and device for qt program |
CN106648761A (en) * | 2016-12-01 | 2017-05-10 | 武汉斗鱼网络科技有限公司 | Method and device for conducting automatic updating in QT program |
CN108173888A (en) * | 2016-12-06 | 2018-06-15 | 杭州海康威视数字技术股份有限公司 | A kind of method for upgrading software of distributed system, apparatus and system |
CN106656602A (en) * | 2016-12-23 | 2017-05-10 | 武汉微创光电股份有限公司 | System and method for simultaneously updating video monitoring client sides |
CN106873967A (en) * | 2016-12-28 | 2017-06-20 | 北京五八信息技术有限公司 | The method and apparatus of bug on a kind of reparation APP lines |
CN107844306A (en) * | 2017-08-09 | 2018-03-27 | 平安壹钱包电子商务有限公司 | Restorative procedure, device, storage medium and the terminal of application program |
CN107844306B (en) * | 2017-08-09 | 2020-04-03 | 平安壹钱包电子商务有限公司 | Application program repairing method and device, storage medium and terminal |
CN108459868A (en) * | 2018-03-29 | 2018-08-28 | 武汉斗鱼网络科技有限公司 | A kind of software start-up method, device, terminal and storage medium |
CN108809690A (en) * | 2018-04-08 | 2018-11-13 | 广州市海升信息科技有限责任公司 | The method and its system of device software version information automatic checking |
CN111459829A (en) * | 2020-04-03 | 2020-07-28 | 成都安易迅科技有限公司 | Configuration method for solving tool used in work of tester |
CN112698846A (en) * | 2020-12-30 | 2021-04-23 | 麒麟软件有限公司 | Method and system for automatically installing patch in Linux system |
CN112698846B (en) * | 2020-12-30 | 2024-04-09 | 麒麟软件有限公司 | Method and system for automatically installing patches in Linux system |
CN117411787A (en) * | 2023-12-13 | 2024-01-16 | 江苏省电子信息产品质量监督检验研究院(江苏省信息安全测评中心) | Centralized upgrading method and system for multiple software in local area network |
CN117411787B (en) * | 2023-12-13 | 2024-03-08 | 江苏省电子信息产品质量监督检验研究院(江苏省信息安全测评中心) | Centralized upgrading method and system for multiple software in local area network |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102546246A (en) | Method and system for automatic upgrade of software | |
US9569195B2 (en) | Systems and methods for live operating system upgrades of inline cloud servers | |
US10592290B2 (en) | Accelerating and maintaining large-scale cloud deployment | |
US9535688B2 (en) | Efficient deployment of application revisions and implementation of application rollbacks across multiple application servers | |
US10868853B2 (en) | System and method for image file generation and management | |
CN102262544B (en) | The method and apparatus of software upgrading | |
US8074213B1 (en) | Automatic software updates for computer systems in an enterprise environment | |
US20070168348A1 (en) | Method in a network of the delivery of files | |
US20110138374A1 (en) | Downtime reduction for enterprise manager patching | |
US10891122B2 (en) | Rolling upgrade of a distributed application | |
KR100988961B1 (en) | Side-by-side drivers | |
US7577949B2 (en) | Installation source management | |
CN104199666A (en) | Dynamic configuration method and device for application program | |
CN105453036A (en) | Application install and layout syncing | |
CN101110788A (en) | Method and system for updating client software | |
EP2805233B1 (en) | Installation engine and package format for parallelizable, reliable installations | |
WO2009117921A1 (en) | Distributed network management system, network management server and method | |
US8769521B2 (en) | Calendar aware adaptive patching of a computer program | |
US20240036984A1 (en) | Distributed software replication and replacement system | |
US8806477B2 (en) | Space efficient software package management | |
US20120096453A1 (en) | Software Package Management Mechanism | |
US8453141B1 (en) | High performance install update | |
US20190012161A1 (en) | Distributed and self-deleting apparatus for fast software deployment and upgrade in a network | |
WO2016074460A1 (en) | Data processing method and device | |
US9207928B2 (en) | Computer-readable medium, apparatus, and methods of automatic capability installation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20120704 |