CN104239497B - The method for cleaning and device of upgrade file - Google Patents
The method for cleaning and device of upgrade file Download PDFInfo
- Publication number
- CN104239497B CN104239497B CN201410458484.4A CN201410458484A CN104239497B CN 104239497 B CN104239497 B CN 104239497B CN 201410458484 A CN201410458484 A CN 201410458484A CN 104239497 B CN104239497 B CN 104239497B
- Authority
- CN
- China
- Prior art keywords
- upgrade file
- redundancy
- operation system
- current operation
- file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/0223—User address space allocation, e.g. contiguous or non contiguous base addressing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/174—Redundancy elimination performed by the file system
- G06F16/1748—De-duplication implemented within the file system, e.g. based on file segments
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44536—Selecting among different versions
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of method for cleaning of upgrade file and device, wherein, the method for cleaning of upgrade file includes:Obtain the information of upgrade file in current operation system;Information of upgrade file is analyzed, with the attribute information for the redundancy upgrade file of application program determined current operation system and operated in current operation system;And hard link is carried out to redundancy upgrade file according to attribute information, with Free up Memory.The embodiment of the present invention is by obtaining the information of upgrade file in current operation system, upgrade file is analyzed, the attribute information of the redundancy upgrade file of application program for determining current operation system and operating in current operation system, then hard link is carried out with Free up Memory to redundancy upgrade file according to attribute information, can be in the case where not influenceing current operation system stability, redundancy upgrade file is identified exactly and is cleared up, the memory space of system disk is saved, greatly improves the performance of current operation system.
Description
Technical field
The present invention relates to the method for cleaning and device of field of computer technology, more particularly to a kind of upgrade file.
Background technology
WINDOWS is the windowing operating system of Microsoft's exploitation.In order to ensure the security of WINDOWS systems and steady
Qualitative, Microsoft can all provide upgrade patch every month, so that user installation patch upgrades to WINDOWS systems.By
Version difference, language in WINDOWS systems is different, if the upgrade patch mistake of installation, it is dead to may result in user computer
Machine, the problems such as computer, application exception can not be started.In order to avoid above mentioned problem, Microsoft is by the patch of multiple versions
Compressing file is into a service packs, and in user installation patch, all patch files can be all discharged into the system disk of user,
And all first the patch file of system currently can be backed up before each user installation patch.Over time,
Installation patch number increases, and the space of system disk can be taken by the patch file of redundancy, cause the performance step-down of computer, to use
Bring many puzzlements in family.
At present, many third party system management softwares all have the function of cleaning system disk space.Its essence is cleaning one
The systemic-function or caching that a little users are not frequently used, with the system disk space of release busy.
But current third party system management software can not correctly identify out redundancy caused by upgrade patch.Due to
Microsoft monthly can all provide the upgrade patch of operating system, therefore can produce bulk redundancy file.If blindly delete
It may result in operating system and exception occur, third party system management software can only simply delete the wall of some system defaults
Paper, help file etc., and the redundant file for really taking system disk space can not be removed so that poor system performance.
The content of the invention
It is contemplated that at least solves one of technical problem in correlation technique to a certain extent.Therefore, the present invention
First purpose be to propose a kind of method for cleaning of upgrade file, and this method can not influence current operation system stability
In the case of, redundancy upgrade file is identified exactly and is cleared up, saves the memory space of system disk, and is greatly lifted
The performance of current operation system.
Second object of the present invention is to propose a kind of cleaning plant of upgrade file.
For the above-mentioned purpose, embodiment proposes a kind of method for cleaning of upgrade file according to a first aspect of the present invention, bag
Include:Obtain the information of upgrade file in current operation system;The information of upgrade file is analyzed, to determine currently to grasp
The attribute information of the redundancy upgrade file of application program made system and operated in the current operation system;And according to institute
State attribute information and hard link is carried out to the redundancy upgrade file, with Free up Memory.
The method for cleaning of the upgrade file of the embodiment of the present invention, believed by obtaining the upgrade file in current operation system
Breath, is analyzed upgrade file, the redundancy of application program for determining current operation system and operating in current operation system
The attribute information of upgrade file, hard link is then carried out with Free up Memory to redundancy upgrade file according to attribute information, can be not
In the case of influenceing current operation system stability, redundancy upgrade file is identified exactly and is cleared up, saves system
The memory space of disk, greatly improve the performance of current operation system.
For the above-mentioned purpose, embodiment proposes a kind of cleaning plant of upgrade file according to a second aspect of the present invention, bag
Include:Acquisition module, for obtaining the information of upgrade file in current operation system;Analysis module, for the upgrade file
Information is analyzed, with the redundancy liter for the application program determined current operation system and operated in the current operation system
The attribute information of level file;And optimization module, for carrying out hard chain to the redundancy upgrade file according to the attribute information
Connect, with Free up Memory.
The cleaning plant of the upgrade file of the embodiment of the present invention, believed by obtaining the upgrade file in current operation system
Breath, is analyzed upgrade file, the redundancy of application program for determining current operation system and operating in current operation system
The attribute information of upgrade file, hard link is then carried out with Free up Memory to redundancy upgrade file according to attribute information, can be not
In the case of influenceing current operation system stability, redundancy upgrade file is identified exactly and is cleared up, saves system
The memory space of disk, greatly improve the performance of current operation system.
The additional aspect and advantage of the present invention will be set forth in part in the description, and will partly become from the following description
Obtain substantially, or recognized by the practice of the present invention.
Brief description of the drawings
Fig. 1 is the flow chart according to the method for cleaning of the upgrade file of one embodiment of the invention.
Fig. 2 is the flow chart according to the method for cleaning of the upgrade file of a specific embodiment of the invention.
Fig. 3 is the upgrade file detailed schematic diagram according to a specific embodiment of the invention.
Fig. 4 is the structural representation according to the cleaning plant of the upgrade file of one embodiment of the invention.
Embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end
Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the method for cleaning and device of the upgrade file of the embodiment of the present invention are described.
Fig. 1 is the flow chart according to the method for cleaning of the upgrade file of one embodiment of the invention.
As shown in figure 1, the method for cleaning of upgrade file includes:
S101, obtain the information of upgrade file in current operation system.
Specifically, it can determine that whether current operation system environment meets optimal conditions first.Such as:Current operation system is
It is no for newest installation the system of upgrade file etc..After it is determined that current operation system environment meets optimal conditions, it can obtain
Filename, public key, version number, the language version of information of upgrade file in current operation system, such as upgrade file.Wherein,
Upgrade file can be the upgrade file of current operation system or the application program operated in current operation system
Upgrade file.
S102, information of upgrade file is analyzed, to determine current operation system and operate in current operation system
On application program redundancy upgrade file attribute information.
After the information of upgrade file in obtaining current operation system, the language version of current operation system can be obtained.By
Multiple language versions can be included in upgrade file, therefore can be by the upgrade file inconsistent with the language version of current operation system
As the redundancy upgrade file of current operation system, position and the size of redundancy upgrade file are then obtained.
Similarly, the language version of application program can be obtained, by the upgrade file inconsistent with the language version of application program
As the redundancy upgrade file of application program, and obtain position and the size of redundancy upgrade file.
In addition, filename that can be according to upgrade file and version number, current operation system and/or application program are determined
Redundancy upgrade file, and obtain position and the size of redundancy upgrade file.Specifically, can be by the multiple upgrading texts of filename identical
The version number of part is compared, and identifies current latest edition number and time new version number, then will not have current latest edition
Number and the upgrade file of time new version number be used as redundancy upgrade file, can also will repeat the upgrading with current latest edition number
File is as redundancy upgrade file.
S103, hard link is carried out to redundancy upgrade file according to attribute information, with Free up Memory.
It is determined that after the attribute information of redundancy upgrade file, it may be determined that whether redundancy upgrade file is optimised.If redundancy
Upgrade file is not optimised, then can show the attribute information of redundancy upgrade file, to prompt the user whether to need optimizing redundancy liter
Level file., can be according to the attribute information of redundancy upgrade file to redundancy liter after user determines to need optimizing redundancy upgrade file
Level file carries out hard link, with Free up Memory.
Specifically, can be by the upgrade file without current latest edition number and time new version number by way of hard link
Merge, the upgrade file that the repetition for being stored in multiple positions has current latest edition number can also be passed through hard link
Mode merges.Wherein, hard link is that the different files in different directories are carried out into binding link, when any one link section
When the file of point is changed, the file of other hinged nodes is also changed simultaneously.
After hard link is carried out to redundancy upgrade file according to attribute information, it can show and restart prompt message.User exists
After seeing prompt message, reboot operation is can perform, to restart current operation system.
The method for cleaning of the upgrade file of the embodiment of the present invention, believed by obtaining the upgrade file in current operation system
Breath, is analyzed upgrade file, the redundancy of application program for determining current operation system and operating in current operation system
The attribute information of upgrade file, hard link is then carried out with Free up Memory to redundancy upgrade file according to attribute information, can be not
In the case of influenceing current operation system stability, redundancy upgrade file is identified exactly and is cleared up, saves system
The memory space of disk, greatly improve the performance of current operation system.
Fig. 2 is the flow chart according to the method for cleaning of the upgrade file of a specific embodiment of the invention.
As shown in Fig. 2 the method for cleaning of upgrade file includes:
S201, judges whether current operation system environment meets optimal conditions, step S202 is jumped to if meeting, if not
Satisfaction then terminates.
Current operation system environment can be analyzed first, such as:Whether current operation system is newest upgrading
Operating system, current operation system whether upgrade patch etc. has just been installed recently.When it is determined that current operation system meets optimization
During condition, step S202 can be jumped to.If being unsatisfactory for optimal conditions such as current operation system did not installed upgrade patch, tie
Beam.
S202, obtain the redundant file of current operation system and software.
After it is determined that meeting optimal conditions, in the case where ensureing security of system with stability, current operation is analyzed
Redundant file corresponding to the upgrade patch of system and software.Herein, with ie browsers in the Chinese edition of windows7sp164 positions
It is described in detail exemplified by mshtml.dll files.After upgrade patch is installed, it can be preserved under winsxs catalogues multiple
Mshtml.dll files.As shown in figure 3, mshtml.dll files may include six fields.First character segment table shows digit, such as
Amd64 represents to support 64, x86 expressions support 32;Second field represents filename code name, such as microsoft-
windows-ie-htmlrendering;3rd field represents the public key of file;4th field represents version number;5th
Field represents the language version supported, such as:None represents to support the operating system of any system language version, zh-cn to represent branch
Hold the operating system of Chinese version;6th field:The code of radom insertion is represented, prevents Data duplication, no practical significance.
Six fields can analyze the redundant file of mshtml.dll files more than.Such as:In current operation system,
The version of newest ie browsers is 10.2.9200.16866 versions.If ie browsers go wrong, one can be return back to
Individual version, i.e. 9.4.8112.16470 versions, therefore all versions before can determine that 9.4.8112.16470 versions are superfluous
Remaining file;Or also have the mshtml.dll files that version is 10.2.9200.16866 versions under other catalogues, then can be true
Mshtml.dll files under other fixed catalogues are redundant file.
S203, judge whether the redundant file of acquisition is optimised, terminate if optimised, redirected if not optimised
To step S204.
Before hard link optimization is carried out to the redundant file of acquisition, first to judge whether redundant file is optimised,
Terminate Optimizing Flow if optimised;Step S204 can be jumped to if not optimised.
S204, the not optimised redundant file of displaying and its relevant information.
The not optimised redundant file obtained and its relevant information can be shown to user, so that user is determined whether to upper
File is stated to optimize.
S205, redundant file is merged by way of hard link.
If the user determine that needing optimizing redundancy file, then it can merge redundant file by way of hard link.Hard link
The file on multiple positions can exactly be carried out being linked into a file, and need to only take the magnetic of one of file size
Disk space.Still optimize explanation so that the version of newest ie browsers is 10.2.9200.16866 versions as an example below.In order to
Ensure the stability of operating system, prevent occurring such as situations such as newest ie browsers can not use, one edition can be returned to
This is used, then can retain the mshtml.dll files and 9.4.8112.16470 versions of 10.2.9200.16866 versions
Mshtml.dll files, and all old versions before this will be used as redundant file to carry out hard link optimization, hard link is extremely
9.4.8112.16470 the mshtml.dll files of version, more disk spaces are discharged with this.
When detecting that the mshtml.dll files of multiple identical 10.2.9200.16866 versions are under other catalogues,
Mshtml.dll files under other catalogues can be subjected to hard link optimization, under hard link to winsxs catalogues
10.2.9200.16866 the mshtml.dll files of version, only taken up the disk space of a file by be allowed it, are discharged more with this
More disk spaces.
Optimize by above-mentioned hard link, can be by version under the mshtml.dll files and different directories of multiple old versions
The multiple mshtml.dll files final optimization passes of identical are a mshtml.dll file for two nearest versions of reservation, and other
Mshtml.dll files only as do not account for disk space hinged node exist, save substantial amounts of disk space.Wherein, chain
The meaning for connecing node is being not in exception in invoked procedure in guarantee ie browsers.
S206, reboot operation system, to complete to optimize.
Finally, user's reboot operation system is prompted, optimization is come into force.
The method for cleaning of the upgrade file of the embodiment of the present invention, by intelligently analyzing redundant file, do not influenceing to grasp
In the case of making system and application program operation, hard link optimizing redundancy file, substantial amounts of disk space is saved, and then lifted
The performance of system.Over time, redundant file is increasing, and the effect of optimization can be more and more obvious.
In order to realize above-described embodiment, the present invention also proposes a kind of cleaning plant of upgrade file.
Fig. 4 is the structural representation according to the cleaning plant of the upgrade file of one embodiment of the invention.
As shown in figure 4, the cleaning plant of upgrade file includes:Acquisition module 110, analysis module 120 and optimization module
130。
Acquisition module 110 is used to obtain the information of upgrade file in current operation system.
Wherein, upgrade file can be the upgrade file of current operation system or operate in current operation system
On application program upgrade file.Information of upgrade file may include the filename of upgrade file, public key, version number, language version
This etc..
Analysis module 120 is used to analyze information of upgrade file, to determine current operation system and operate in work as
The attribute information of the redundancy upgrade file of application program in preceding operating system.
After the information of upgrade file during acquisition module 110 obtains current operation system, analysis module 120 can obtain currently
The language version of operating system.Because upgrade file can include multiple language versions, therefore can be by the language with current operation system
Redundancy upgrade file of the inconsistent upgrade file of version as current operation system is sayed, then obtains the position of redundancy upgrade file
Put and size.
Similarly, analysis module 120 can obtain the language version of application program, will be inconsistent with the language version of application program
Redundancy upgrade file of the upgrade file as application program, and obtain position and the size of redundancy upgrade file.
In addition, analysis module 120 can be according to upgrade file filename and version number, determine current operation system and/
Or the redundancy upgrade file of application program, and obtain position and the size of redundancy upgrade file.Specifically, analysis module 120 can
The version number of the multiple upgrade files of filename identical is compared, identifies current latest edition number and time new version number,
Then using the upgrade file without current latest edition number and time new version number as redundancy upgrade file, will can also repeat
Upgrade file with current latest edition number is as redundancy upgrade file.
Optimization module 130 is used to carry out hard link to redundancy upgrade file according to attribute information, with Free up Memory.
Specifically, optimization module 130 can pass through the upgrade file without current latest edition number and time new version number
The mode of hard link is merged, and the repetition for being stored in multiple positions can also be had to the upgrade file of current latest edition number
Merged by way of hard link.Wherein, hard link is that the different files in different directories are carried out into binding link, when appointing
When the file of one hinged node of meaning is changed, the file of other hinged nodes is also changed simultaneously.
In an embodiment of the present invention, the cleaning plant of upgrade file may also include processing module 140, the first determining module
150th, the determining module 170 of display module 160 and second.
Processing module 140 is used for after optimization module 130 carries out hard link according to attribute information to redundancy upgrade file,
Prompt message is restarted in display, and the reboot operation based on user restarts current operation system.
First determining module 150 is used for before the information of upgrade file during acquisition module 110 obtains current operation system,
Determine that current operation system environment meets optimal conditions.Such as:Current operation system whether be newest installation upgrade file
System etc..
Display module 160 is used for before optimization module 130 carries out hard link according to attribute information to redundancy upgrade file,
The attribute information of redundancy upgrade file is shown, to prompt the user whether to need optimizing redundancy upgrade file.
Second determining module 170 is used for before the attribute information that display module 160 shows redundancy upgrade file, determines superfluous
Remaining upgrade file is not optimised.
The cleaning plant of the upgrade file of the embodiment of the present invention, believed by obtaining the upgrade file in current operation system
Breath, is analyzed upgrade file, the redundancy of application program for determining current operation system and operating in current operation system
The attribute information of upgrade file, hard link is then carried out with Free up Memory to redundancy upgrade file according to attribute information, can be not
In the case of influenceing current operation system stability, redundancy upgrade file is identified exactly and is cleared up, saves system
The memory space of disk, greatly improve the performance of current operation system.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description
Point is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term not
Identical embodiment or example must be directed to.Moreover, specific features, structure, material or the feature of description can be with office
Combined in an appropriate manner in one or more embodiments or example.In addition, in the case of not conflicting, the skill of this area
Art personnel can be tied the different embodiments or example and the feature of different embodiments or example described in this specification
Close and combine.
In addition, term " first ", " second " are only used for describing purpose, and it is not intended that instruction or hint relative importance
Or the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can be expressed or
Implicitly include at least one this feature.In the description of the invention, " multiple " are meant that at least two, such as two, three
It is individual etc., unless otherwise specifically defined.
Any process or method described otherwise above description in flow chart or herein is construed as, and represents to include
Module, fragment or the portion of the code of the executable instruction of one or more the step of being used to realize specific logical function or process
Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable
Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instruction
The system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass
Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment
Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring
Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium, which can even is that, to print the paper of described program thereon or other are suitable
Medium, because can then enter edlin, interpretation or if necessary with it for example by carrying out optical scanner to paper or other media
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned
In embodiment, software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage
Or firmware is realized.If, and in another embodiment, can be with well known in the art for example, realized with hardware
Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal
Discrete logic, have suitable combinational logic gate circuit application specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method carries
Suddenly it is that by program the hardware of correlation can be instructed to complete, described program can be stored in a kind of computer-readable storage medium
In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, can also
That unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould
Block can both be realized in the form of hardware, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized in the form of software function module and as independent production marketing or in use, can also be stored in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although have been shown and retouch above
Embodiments of the invention are stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present invention
System, one of ordinary skill in the art can be changed to above-described embodiment, change, replace and become within the scope of the invention
Type.
Claims (16)
- A kind of 1. method for cleaning of upgrade file, it is characterised in that including:The information of upgrade file in current operation system is obtained, wherein, the information of upgrade file includes the file of upgrade file One or more in name, public key, version number and language version;The information of upgrade file is analyzed, to determine current operation system and operate in the current operation system Application program redundancy upgrade file attribute information;AndHard link is carried out to the redundancy upgrade file according to the attribute information, with Free up Memory;Wherein, the information of upgrade file is analyzed, to determine that the redundancy of current operation system and application program upgrades The attribute information of file, including:The language version of the current operation system is obtained, by the upgrading inconsistent with the language version of the current operation system Redundancy upgrade file of the file as current operation system, and obtain position and the size of the redundancy upgrade file;And/orObtain the language version of the application program, using the upgrade file inconsistent with the language version of the application program as The redundancy upgrade file of the application program, and obtain position and the size of the redundancy upgrade file.
- 2. according to the method for claim 1, it is characterised in that the redundancy is upgraded according to the attribute information described After file carries out hard link, in addition to:Prompt message is restarted in display, and the reboot operation based on user restarts the current operation system.
- 3. according to the method for claim 1, it is characterised in that the upgrade file letter in the acquisition current operation system Before breath, in addition to:Determine that current operation system environment meets optimal conditions.
- 4. according to the method for claim 1, it is characterised in that it is described that the information of upgrade file is analyzed, with true The attribute information of the redundancy upgrade file of current operation system and application program is made, including:According to the filename of the upgrade file and version number, the redundancy liter of current operation system and/or application program is determined Level file, and obtain position and the size of the redundancy upgrade file.
- 5. according to the method for claim 4, it is characterised in that the filename and version according to the upgrade file Number, the redundancy upgrade file of current operation system and/or application program is determined, including:The version number of the multiple upgrade files of filename identical is compared, identifies current latest edition number and time redaction Number;AndUsing the upgrade file without the current latest edition number and time new version number as the redundancy upgrade file, and/ Or the upgrade file with the current latest edition number will be repeated as the redundancy upgrade file.
- 6. according to the method for claim 5, it is characterised in that described that text is upgraded to the redundancy according to the attribute information Part carries out hard link, including:Upgrade file without the current latest edition number and time new version number is merged by way of hard link; And/orThe upgrade file that the repetition for being stored in multiple positions has the current latest edition number is entered by way of hard link Row merges.
- 7. according to the method for claim 6, it is characterised in that the redundancy is upgraded according to the attribute information described Before file carries out hard link, in addition to:The attribute information of redundancy upgrade file is shown, to prompt the user whether to need to optimize the redundancy upgrade file.
- 8. according to the method for claim 7, it is characterised in that it is described display redundancy upgrade file attribute information it Before, in addition to:Determine that the redundancy upgrade file is not optimised.
- A kind of 9. cleaning plant of upgrade file, it is characterised in that including:Acquisition module, for obtaining the information of upgrade file in current operation system, wherein, the information of upgrade file includes rising One or more in the level filename of file, public key, version number and language version;Analysis module, for analyzing the information of upgrade file, to determine current operation system and operate in described The attribute information of the redundancy upgrade file of application program in current operation system;AndOptimization module, for carrying out hard link to the redundancy upgrade file according to the attribute information, with Free up Memory;The analysis module, is specifically used for:The language version of the current operation system is obtained, by the upgrading inconsistent with the language version of the current operation system Redundancy upgrade file of the file as current operation system, and obtain position and the size of the redundancy upgrade file;And/orObtain the language version of the application program, using the upgrade file inconsistent with the language version of the application program as The redundancy upgrade file of the application program, and obtain position and the size of the redundancy upgrade file.
- 10. device according to claim 9, it is characterised in that described device also includes:Processing module, for it is described according to the attribute information to the redundancy upgrade file carry out hard link after, display Restart prompt message, and the reboot operation based on user restarts the current operation system.
- 11. device according to claim 9, it is characterised in that described device also includes:First determining module, before the information of upgrade file in the acquisition current operation system, determine current operation System environments meets optimal conditions.
- 12. device according to claim 9, it is characterised in that the analysis module, be specifically used for:According to the filename of the upgrade file and version number, the redundancy liter of current operation system and/or application program is determined Level file, and obtain position and the size of the redundancy upgrade file.
- 13. device according to claim 12, it is characterised in that the analysis module, be specifically used for:The version number of the multiple upgrade files of filename identical is compared, identifies current latest edition number and time redaction Number;AndUsing the upgrade file without the current latest edition number and time new version number as the redundancy upgrade file, and/ Or the upgrade file with the current latest edition number will be repeated as the redundancy upgrade file.
- 14. device according to claim 13, it is characterised in that the optimization module, be specifically used for:Upgrade file without the current latest edition number and time new version number is merged by way of hard link; And/orThe upgrade file that the repetition for being stored in multiple positions has the current latest edition number is entered by way of hard link Row merges.
- 15. device according to claim 14, it is characterised in that described device also includes:Display module, for it is described according to the attribute information to the redundancy upgrade file carry out hard link before, display The attribute information of redundancy upgrade file, to prompt the user whether to need to optimize the redundancy upgrade file.
- 16. device according to claim 15, it is characterised in that described device also includes:Second determining module, for before the attribute information of the display redundancy upgrade file, determining the redundancy upgrading text Part is not optimised.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410458484.4A CN104239497B (en) | 2014-09-10 | 2014-09-10 | The method for cleaning and device of upgrade file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410458484.4A CN104239497B (en) | 2014-09-10 | 2014-09-10 | The method for cleaning and device of upgrade file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104239497A CN104239497A (en) | 2014-12-24 |
CN104239497B true CN104239497B (en) | 2017-11-10 |
Family
ID=52227556
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410458484.4A Active CN104239497B (en) | 2014-09-10 | 2014-09-10 | The method for cleaning and device of upgrade file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104239497B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105389182A (en) * | 2015-11-02 | 2016-03-09 | 广州华多网络科技有限公司 | Software upgrading method and apparatus |
CN105893260A (en) * | 2016-03-31 | 2016-08-24 | 上海携程商务有限公司 | Automatic release system and method for call center |
CN112947983B (en) * | 2021-04-15 | 2024-03-15 | 网易(杭州)网络有限公司 | Application program updating method and device, electronic equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101079034A (en) * | 2006-07-10 | 2007-11-28 | 腾讯科技(深圳)有限公司 | System and method for eliminating redundancy file of file storage system |
CN103577204A (en) * | 2012-07-26 | 2014-02-12 | 上海斐讯数据通信技术有限公司 | Software upgrading method and software upgrading system for mobile devices |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9009435B2 (en) * | 2012-08-13 | 2015-04-14 | International Business Machines Corporation | Methods and systems for data cleanup using physical image of files on storage devices |
-
2014
- 2014-09-10 CN CN201410458484.4A patent/CN104239497B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101079034A (en) * | 2006-07-10 | 2007-11-28 | 腾讯科技(深圳)有限公司 | System and method for eliminating redundancy file of file storage system |
CN103577204A (en) * | 2012-07-26 | 2014-02-12 | 上海斐讯数据通信技术有限公司 | Software upgrading method and software upgrading system for mobile devices |
Also Published As
Publication number | Publication date |
---|---|
CN104239497A (en) | 2014-12-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7490298B2 (en) | Creating documentation screenshots on demand | |
CN102959518B (en) | The method and system that file system recovery performs to the computing machine of target memory | |
US8010962B2 (en) | Infrastructure for the automation of the assembly of schema maintenance scripts | |
US20090094609A1 (en) | Dynamically providing a localized user interface language resource | |
CN104391725A (en) | Page display method and page display device | |
US10339113B2 (en) | Method and system for effecting incremental changes to a repository | |
US9229920B1 (en) | Compound undo/redo manager for mixed model edits | |
US20090271455A1 (en) | Content Migration Tool and Method Associated Therewith | |
CN106649395A (en) | Webpage updating method and apparatus | |
CN106559484A (en) | The method that instance system exempts from installation and operation application | |
KR20190050993A (en) | Update escalation system and method | |
CN104160397A (en) | Location independent files | |
Whiting et al. | Creating an iPhone application for collecting continuous ABC data | |
CN104239497B (en) | The method for cleaning and device of upgrade file | |
US20080250052A1 (en) | Repopulating a database with document content | |
CN107577510A (en) | One kind quickly pre-installs method and system automatically without hardware driving under disk ring border | |
CN107357907A (en) | A kind of database upgrade method and device for supporting cross-version | |
US8196093B2 (en) | Apparatus and method for componentizing legacy system | |
CN104462342B (en) | database snapshot synchronization processing method and device | |
CN110058849A (en) | Generation method, device, computer equipment and the storage medium of flow chart | |
CN108279905B (en) | Method and device for introducing library file into assembly | |
CN109783463A (en) | File synchronisation method, device and computer readable storage medium | |
US20160188625A1 (en) | Computer-readable storage medium and method for cross-platform synchronizing attributes of files | |
CN109766313A (en) | Geological project data processing method, device and computer equipment | |
CN109726166A (en) | Display methods, device, computer equipment and the readable storage medium storing program for executing of e-book |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20181207 Address after: 519030 Room 105-53811, No. 6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province Patentee after: Zhuhai Seal Interest Technology Co., Ltd. Address before: 519070, six level 601F, 10 main building, science and technology road, Tangjia Bay Town, Zhuhai, Guangdong. Patentee before: Zhuhai Juntian Electronic Technology Co.,Ltd. |