CN104239497A - Clean-up method and device for upgraded files - Google Patents

Clean-up method and device for upgraded files Download PDF

Info

Publication number
CN104239497A
CN104239497A CN201410458484.4A CN201410458484A CN104239497A CN 104239497 A CN104239497 A CN 104239497A CN 201410458484 A CN201410458484 A CN 201410458484A CN 104239497 A CN104239497 A CN 104239497A
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.)
Granted
Application number
CN201410458484.4A
Other languages
Chinese (zh)
Other versions
CN104239497B (en
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.)
Zhuhai Seal Interest Technology Co Ltd
Original Assignee
Zhuhai Juntian Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Juntian Electronic Technology Co Ltd filed Critical Zhuhai Juntian Electronic Technology Co Ltd
Priority to CN201410458484.4A priority Critical patent/CN104239497B/en
Publication of CN104239497A publication Critical patent/CN104239497A/en
Application granted granted Critical
Publication of CN104239497B publication Critical patent/CN104239497B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/174Redundancy elimination performed by the file system
    • G06F16/1748De-duplication implemented within the file system, e.g. based on file segments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44536Selecting among different versions

Abstract

The invention discloses a clean-up method and a clean-up device for upgraded files, wherein the clean-up method for the upgraded files comprises the following steps: obtaining upgraded file information in a current operating system; analyzing the upgraded file information so as to confirming attribute information of redundant upgraded files of the current operating system and attribute information of redundant upgraded files of an application program running on the current operating system; performing hard link on the redundant upgraded files according to the attribute information to release space. According to the clean-up method and the clean-up device for the upgraded files disclosed by the embodiment of the invention, the upgraded files are analyzed through obtaining the upgraded file information in the current operating system to confirm attribute information of redundant upgraded files of the current operating system and attribute information of redundant upgraded files of the application program running on the current operating system, and then the hard link is performed according to the attribute information to release space, and under the condition of not influencing the stability of the current operating system, the redundant upgraded files are recognized correctly and cleaned up, so that the storage space of a system disk is saved, and the performance of the current operating system is improved greatly.

Description

The method for cleaning of upgrade file and device
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of method for cleaning and device of upgrade file.
Background technology
WINDOWS is the windowing operating system of Microsoft's exploitation.In order to ensure the safety and stability of WINDOWS system, Microsoft all can provide upgrade patch every month, upgrades to WINDOWS system for user installation patch.Because the version of WINDOWS system is different, language is different, if the upgrade patch mistake of installing, user computer may be caused to crash, the problem such as computer, application exception cannot be started.In order to avoid the problems referred to above, the patch file of multiple version is compressed in a service packs by Microsoft, when user installation patch, all patch files all can be discharged in the system disk of user, and all can first be backed up by patch file current for system before each user installation patch.As time goes on, install increasing of patch number of times, the space of system disk can be taken by the patch file of redundancy, causes the performance step-down of computer, brings a lot of puzzlements to user.
At present, a lot of Third party system management software all has the function in cleaning system disk space.Its essence is the cleaning systemic-function that infrequently uses of some users or buffer memory, with the system disk space of release busy.
But current Third party system management software correctly cannot identify the redundancy that upgrade patch produces.Because Microsoft monthly all can provide the upgrade patch of operating system, therefore bulk redundancy file can be produced.Operating system may be caused to occur extremely if deleted blindly, Third party system management software can only delete the wallpaper, help file etc. of some system defaults simply, and the redundant file really taking system disk space cannot be removed, make poor system performance.
Summary of the invention
The present invention is intended to solve one of technical matters in correlation technique at least to a certain extent.For this reason, first object of the present invention is the method for cleaning proposing a kind of upgrade file, the method can when not affecting current operation system stability, identify redundancy upgrade file exactly and clear up, save the storage space of system disk, and greatly promote the performance of current operation system.
Second object of the present invention is the cleaning plant proposing a kind of upgrade file.
For reaching above-mentioned purpose, embodiment proposes a kind of method for cleaning of upgrade file according to a first aspect of the present invention, comprising: obtain the information of upgrade file in current operation system; Described information of upgrade file is analyzed, to determine current operation system and to operate in the attribute information of redundancy upgrade file of the application program in described current operation system; And according to described attribute information, hard link is carried out, with Free up Memory to described redundancy upgrade file.
The method for cleaning of the upgrade file of the embodiment of the present invention, by obtaining the information of upgrade file in current operation system, upgrade file is analyzed, determine current operation system and operate in the attribute information of redundancy upgrade file of the application program in current operation system, then according to attribute information, hard link is carried out with Free up Memory to redundancy upgrade file, can when not affecting current operation system stability, identify redundancy upgrade file exactly and clear up, save the storage space of system disk, greatly improve the performance of current operation system.
For reaching above-mentioned purpose, embodiment proposes a kind of cleaning plant of upgrade file according to a second aspect of the present invention, comprising: acquisition module, for obtaining the information of upgrade file in current operation system; Analysis module, for analyzing described information of upgrade file, to determine current operation system and to operate in the attribute information of redundancy upgrade file of the application program in described current operation system; And optimization module, for carrying out hard link, with Free up Memory according to described attribute information to described redundancy upgrade file.
The cleaning plant of the upgrade file of the embodiment of the present invention, by obtaining the information of upgrade file in current operation system, upgrade file is analyzed, determine current operation system and operate in the attribute information of redundancy upgrade file of the application program in current operation system, then according to attribute information, hard link is carried out with Free up Memory to redundancy upgrade file, can when not affecting current operation system stability, identify redundancy upgrade file exactly and clear up, save the storage space of system disk, greatly improve the performance of current operation system.
Additional aspect of the present invention and advantage will part provide in the following description, and part will become obvious from the following description, or be recognized by practice of the present invention.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the method for cleaning of upgrade file according to an embodiment of the invention.
Fig. 2 is the process flow diagram of the method for cleaning of upgrade file according to the present invention's specific embodiment.
Fig. 3 is the upgrade file detailed schematic diagram according to the present invention's specific embodiment.
Fig. 4 is the structural representation of the cleaning plant of upgrade file according to an embodiment of the invention.
Embodiment
Be described below in detail embodiments of the invention, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish.Be exemplary below by the embodiment be described with reference to the drawings, be intended to for explaining the present invention, and can not limitation of the present invention be interpreted as.
Below with reference to the accompanying drawings method for cleaning and the device of the upgrade file of the embodiment of the present invention are described.
Fig. 1 is the process flow diagram of the method for cleaning of upgrade file according to an embodiment of the invention.
As shown in Figure 1, the method for cleaning of upgrade file comprises:
S101, obtains the information of upgrade file in current operation system.
Particularly, first can determine whether current operation system environment meets optimal conditions.Such as: current operation system be whether up-to-date installation the system etc. of upgrade file.After determining that current operation system environment meets optimal conditions, the information of upgrade file in current operation system can be obtained, as the filename, PKI, version number, language version etc. of upgrade file.Wherein, upgrade file can be the upgrade file of current operation system, also can be the upgrade file of the application program operated in current operation system.
S102, analyzes information of upgrade file, to determine current operation system and to operate in the attribute information of redundancy upgrade file of the application program in current operation system.
After obtaining the information of upgrade file in current operation system, the language version of current operation system can be obtained.Because upgrade file can comprise multiple language version, therefore can using with the redundancy upgrade file of the inconsistent upgrade file of the language version of current operation system as current operation system, then obtain position and the size of redundancy upgrade file.
In like manner, the language version of application program can be obtained, using with the redundancy upgrade file of the inconsistent upgrade file of the language version of application program as application program, and obtain position and the size of redundancy upgrade file.
In addition, according to the filename of upgrade file and version number, the redundancy upgrade file of current operation system and/or application program can be determined, and obtain position and the size of redundancy upgrade file.Particularly, the version number of multiple upgrade files identical for filename can be compared, identify current latest edition number and time new version number, then will not there is the upgrade file of current latest edition number and time new version number as redundancy upgrade file, also can will repeat to have the upgrade file of current latest edition number as redundancy upgrade file.
S103, carries out hard link, with Free up Memory according to attribute information to redundancy upgrade file.
After the attribute information determining redundancy upgrade file, can determine 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 point out user the need of optimizing redundancy upgrade file.After user determines to need optimizing redundancy upgrade file, hard link can be carried out, with Free up Memory according to the attribute information of redundancy upgrade file to redundancy upgrade file.
Particularly, the upgrade file without current latest edition number and time new version number can be merged by the mode of hard link, also the upgrade file repeating to have current latest edition number leaving multiple position in can be merged by the mode of hard link.Wherein, hard link is the different files in different directories are carried out binding link, and when the file of any one hinged node is modified, the file of other hinged nodes is also modified simultaneously.
After according to attribute information hard link being carried out to redundancy upgrade file, can show and restart information.User, after seeing information, can perform reboot operation, to restart current operation system.
The method for cleaning of the upgrade file of the embodiment of the present invention, by obtaining the information of upgrade file in current operation system, upgrade file is analyzed, determine current operation system and operate in the attribute information of redundancy upgrade file of the application program in current operation system, then according to attribute information, hard link is carried out with Free up Memory to redundancy upgrade file, can when not affecting current operation system stability, identify redundancy upgrade file exactly and clear up, save the storage space of system disk, greatly improve the performance of current operation system.
Fig. 2 is the process flow diagram of the method for cleaning of upgrade file according to the present invention's specific embodiment.
As shown in Figure 2, the method for cleaning of upgrade file comprises:
S201, judges whether current operation system environment meets optimal conditions, if meet, jumps to step S202, if do not meet, terminates.
First can analyze current operation system environment, such as: whether current operation system is the operating system of up-to-date upgrading, whether current operation system just installs upgrade patch etc. recently.When determining that current operation system meets optimal conditions, step S202 can be jumped to.If do not meet optimal conditions such as current operation system not install upgrade patch, then terminate.
S202, obtains the redundant file of current operation system and software.
After determining to meet optimal conditions, when ensureing security of system and stability, analyze the redundant file that the upgrade patch of current operation system and software is corresponding.Herein, be described in detail for the mshtml.dll file of ie browser in the Chinese edition of windows7sp164 position.After installation upgrade patch, multiple mshtml.dll file can be preserved under winsxs catalogue.As shown in Figure 3, mshtml.dll file can comprise six fields.First character segment table shows figure place, as amd64 express support for 64, x86 expresses support for 32; Second field represents filename code name, as microsoft-windows-ie-htmlrendering; 3rd field represents the PKI of file; 4th field represents version number; 5th language version that field expresses support for, as the operating system that: none expresses support for the operating system of any system language version, zh-cn expresses support for Chinese version; 6th field: the code representing radom insertion, prevents Data duplication, without practical significance.
The redundant file of mshtml.dll file can be analyzed according to above six fields.Such as: in current operation system, the version of up-to-date ie browser is 10.2.9200.16866 version.If ie browser goes wrong, then can return back to a version, i.e. 9.4.8112.16470 version, therefore can determine that all versions before 9.4.8112.16470 version are redundant file; Or under other catalogues, also there is the mshtml.dll file that version is 10.2.9200.16866 version, then can determines that the mshtml.dll file under other catalogues is redundant file.
S203, judges that whether the redundant file obtained is optimised, if optimised, terminates, if not optimised, jump to step S204.
Before hard link optimization is carried out to the redundant file obtained, first to judge that whether redundant file is optimised, if optimised, terminate Optimizing Flow; If not optimised, step S204 can be jumped to.
S204, shows not optimised redundant file and relevant information thereof.
Not optimised redundant file and the relevant information thereof of acquisition can be shown to user, determine whether to make user to be optimized above-mentioned file.
S205, merges redundant file by the mode of hard link.
If user determines to need optimizing redundancy file, then the mode by hard link merges redundant file.Hard link is exactly the file on multiple position can be carried out be linked into a file, and only need take the disk space of one of them file size.Below still for the version of up-to-date ie browser for 10.2.9200.16866 version is optimized explanation.In order to ensure the stability of operating system, prevent the situations such as the ie browser as up-to-date cannot use from occurring, last revision can be returned to use, then can retain the mshtml.dll file of 10.2.9200.16866 version and the mshtml.dll file of 9.4.8112.16470 version, and all old versions before this will carry out hard link optimization as redundant file, hard link, to the mshtml.dll file of 9.4.8112.16470 version, discharges more disk space with this.
When detecting that the mshtml.dll file of multiple identical 10.2.9200.16866 version is under other catalogues, mshtml.dll file under other catalogues can be carried out hard link optimization, hard link is to the mshtml.dll file of the 10.2.9200.16866 version under winsxs catalogue, allow it take the disk space of a file, discharge more disk space with this.
Optimize through above-mentioned hard link, can be the mshtml.dll file only retaining two nearest versions by multiple mshtml.dll file final optimization passes identical for version under the mshtml.dll file of multiple old version and different directories, and other mshtml.dll file only exists as the hinged node not accounting for disk space, save a large amount of disk spaces.Wherein, the meaning of hinged node is to ensure that ie browser there will not be exception in invoked procedure.
S206, reboot operation system, to complete optimization.
Finally, prompting user reboot operation system, makes optimization come into force.
The method for cleaning of the upgrade file of the embodiment of the present invention, by analyzing redundant file intelligently, when not affecting operating system and application program runs, hard link optimizing redundancy file, saves a large amount of disk spaces, and then improves the performance of system.As time goes on, 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 of the cleaning plant of upgrade file according to an embodiment of the invention.
As shown in Figure 4, the cleaning plant of upgrade file comprises: acquisition module 110, analysis module 120 and optimization module 130.
Acquisition module 110 is for obtaining the information of upgrade file in current operation system.
Wherein, upgrade file can be the upgrade file of current operation system, also can be the upgrade file of the application program operated in current operation system.Information of upgrade file can comprise the filename, PKI, version number, language version etc. of upgrade file.
Analysis module 120 for analyzing information of upgrade file, to determine current operation system and to operate in the attribute information of redundancy upgrade file of the application program in current operation system.
Obtain the information of upgrade file in current operation system at acquisition module 110 after, analysis module 120 can obtain the language version of current operation system.Because upgrade file can comprise multiple language version, therefore can using with the redundancy upgrade file of the inconsistent upgrade file of the language version of current operation system as current operation system, then obtain position and the size of redundancy upgrade file.
In like manner, analysis module 120 can obtain the language version of application program, using with the redundancy upgrade file of the inconsistent upgrade file of the language version of application program as application program, and obtain position and the size of redundancy upgrade file.
In addition, analysis module 120 according to the filename of upgrade file and version number, can determine the redundancy upgrade file of current operation system and/or application program, and obtains position and the size of redundancy upgrade file.Particularly, the version number of multiple upgrade files identical for filename can compare by analysis module 120, identify current latest edition number and time new version number, then will not there is the upgrade file of current latest edition number and time new version number as redundancy upgrade file, also can will repeat to have the upgrade file of current latest edition number as redundancy upgrade file.
Optimize module 130 for carrying out hard link, with Free up Memory according to attribute information to redundancy upgrade file.
Particularly, optimize module 130 upgrade file without current latest edition number and time new version number to be merged by the mode of hard link, also the upgrade file repeating to have current latest edition number leaving multiple position in can be merged by the mode of hard link.Wherein, hard link is the different files in different directories are carried out binding link, and when the file of any one hinged node is modified, the file of other hinged nodes is also modified simultaneously.
In an embodiment of the present invention, the cleaning plant of upgrade file also can comprise processing module 140, first determination module 150, display module 160 and the second determination module 170.
Processing module 140 is for after carrying out hard link according to attribute information to redundancy upgrade file in optimization module 130, and information is restarted in display, and restarts current operation system based on the reboot operation of user.
First determination module 150, for before obtain the information of upgrade file in current operation system at acquisition module 110, determines that current operation system environment meets optimal conditions.Such as: current operation system be whether up-to-date installation the system etc. of upgrade file.
Display module 160 is for before carrying out hard link according to attribute information to redundancy upgrade file in optimization module 130, and the attribute information of display redundancy upgrade file, to point out user the need of optimizing redundancy upgrade file.
Second determination module 170 for show redundancy upgrade file at display module 160 attribute information before, determine that redundancy upgrade file is not optimised.
The cleaning plant of the upgrade file of the embodiment of the present invention, by obtaining the information of upgrade file in current operation system, upgrade file is analyzed, determine current operation system and operate in the attribute information of redundancy upgrade file of the application program in current operation system, then according to attribute information, hard link is carried out with Free up Memory to redundancy upgrade file, can when not affecting current operation system stability, identify redundancy upgrade file exactly and clear up, save the storage space of system disk, greatly improve the performance of current operation system.
In the description of this instructions, specific features, structure, material or feature that the description of reference term " embodiment ", " some embodiments ", " example ", " concrete example " or " some examples " etc. means to describe in conjunction with this embodiment or example are contained at least one embodiment of the present invention or example.In this manual, to the schematic representation of above-mentioned term not must for be identical embodiment or example.And the specific features of description, structure, material or feature can combine in one or more embodiment in office or example in an appropriate manner.In addition, when not conflicting, the feature of the different embodiment described in this instructions or example and different embodiment or example can carry out combining and combining by those skilled in the art.
In addition, term " first ", " second " only for describing object, and can not be interpreted as instruction or hint relative importance or imply the quantity indicating indicated technical characteristic.Thus, be limited with " first ", the feature of " second " can express or impliedly comprise at least one this feature.In describing the invention, the implication of " multiple " is at least two, such as two, three etc., unless otherwise expressly limited specifically.
Describe and can be understood in process flow diagram or in this any process otherwise described or method, represent and comprise one or more for realizing the module of the code of the executable instruction of the step of specific logical function or process, fragment or part, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can not according to order that is shown or that discuss, comprise according to involved function by the mode while of basic or by contrary order, carry out n-back test, this should understand by embodiments of the invention person of ordinary skill in the field.
In flow charts represent or in this logic otherwise described and/or step, such as, the sequencing list of the executable instruction for realizing logic function can be considered to, may be embodied in any computer-readable medium, for instruction execution system, device or equipment (as computer based system, comprise the system of processor or other can from instruction execution system, device or equipment instruction fetch and perform the system of instruction) use, or to use in conjunction with these instruction execution systems, device or equipment.With regard to this instructions, " computer-readable medium " can be anyly can to comprise, store, communicate, propagate or transmission procedure for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wiring, portable computer diskette box (magnetic device), random access memory (RAM), ROM (read-only memory) (ROM), erasablely edit ROM (read-only memory) (EPROM or flash memory), fiber device, and portable optic disk ROM (read-only memory) (CDROM).In addition, computer-readable medium can be even paper or other suitable media that can print described program thereon, because can such as by carrying out optical scanning to paper or other media, then carry out editing, decipher or carry out process with other suitable methods if desired and electronically obtain described program, be then stored in computer memory.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple step or method can with to store in memory and the software performed by suitable instruction execution system or firmware realize.Such as, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: the discrete logic with the logic gates for realizing logic function to data-signal, there is the special IC of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, this program perform time, step comprising embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, also can be that the independent physics of unit exists, also can be integrated in a module by two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.Although illustrate and describe embodiments of the invention above, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, and those of ordinary skill in the art can change above-described embodiment within the scope of the invention, revises, replace and modification.

Claims (20)

1. a method for cleaning for upgrade file, is characterized in that, comprising:
Obtain the information of upgrade file in current operation system;
Described information of upgrade file is analyzed, to determine current operation system and to operate in the attribute information of redundancy upgrade file of the application program in described current operation system; And
According to described attribute information, hard link is carried out, with Free up Memory to described redundancy upgrade file.
2. method according to claim 1, is characterized in that, described according to described attribute information hard link is carried out to described redundancy upgrade file after, also comprise:
Information is restarted in display, and restarts described current operation system based on the reboot operation of user.
3. method according to claim 1, is characterized in that, before the information of upgrade file in described acquisition current operation system, also comprises:
Determine that current operation system environment meets optimal conditions.
4. the method according to the arbitrary claim of claim 1-3, is characterized in that, described information of upgrade file comprises one or more in the filename of upgrade file, PKI, version number and language version.
5. method according to claim 4, is characterized in that, describedly analyzes described information of upgrade file, to determine the attribute information of the redundancy upgrade file of current operation system and application program, comprising:
Obtain the language version of described current operation system, using with the redundancy upgrade file of the inconsistent upgrade file of the language version of described current operation system as current operation system, and obtain position and the size of described redundancy upgrade file; And/or
Obtain the language version of described application program, using with the redundancy upgrade file of the inconsistent upgrade file of the language version of described application program as described application program, and obtain position and the size of described redundancy upgrade file.
6. method according to claim 4, is characterized in that, describedly analyzes described information of upgrade file, to determine the attribute information of the redundancy upgrade file of current operation system and application program, comprising:
According to filename and the version number of described upgrade file, determine the redundancy upgrade file of current operation system and/or application program, and obtain position and the size of described redundancy upgrade file.
7. method according to claim 6, is characterized in that, the described filename according to described upgrade file and version number, determines the redundancy upgrade file of current operation system and/or application program, comprising:
The version number of multiple upgrade files identical for filename is compared, identifies current latest edition number and time new version number; And
To not there is the upgrade file of described current latest edition number and time new version number as described redundancy upgrade file, and/or will repeat to have the upgrade file of described current latest edition number as described redundancy upgrade file.
8. method according to claim 7, is characterized in that, describedly carries out hard link according to described attribute information to described redundancy upgrade file, comprising:
Merged not having described current latest edition number by the mode of hard link with the upgrade file of time new version number; And/or
The upgrade file repeating to have described current latest edition number leaving multiple position in is merged by the mode of hard link.
9. method according to claim 8, is characterized in that, described according to described attribute information hard link is carried out to described redundancy upgrade file before, also comprise:
The attribute information of display redundancy upgrade file, to point out user the need of the described redundancy upgrade file of optimization.
10. method according to claim 9, is characterized in that, before the attribute information of described display redundancy upgrade file, also comprises:
Determine that described redundancy upgrade file is not optimised.
The cleaning plant of 11. 1 kinds of upgrade files, is characterized in that, comprising:
Acquisition module, for obtaining the information of upgrade file in current operation system;
Analysis module, for analyzing described information of upgrade file, to determine current operation system and to operate in the attribute information of redundancy upgrade file of the application program in described current operation system; And
Optimize module, for carrying out hard link, with Free up Memory according to described attribute information to described redundancy upgrade file.
12. devices according to claim 11, is characterized in that, described device also comprises:
Processing module, for described according to described attribute information hard link is carried out to described redundancy upgrade file after, information is restarted in display, and restarts described current operation system based on the reboot operation of user.
13. devices according to claim 11, is characterized in that, described device also comprises:
First determination module, before the information of upgrade file in described acquisition current operation system, determines that current operation system environment meets optimal conditions.
14. devices according to the arbitrary claim of claim 11-13, is characterized in that, described information of upgrade file comprises one or more in the filename of upgrade file, PKI, version number and language version.
15. devices according to claim 14, is characterized in that, described analysis module, specifically for:
Obtain the language version of described current operation system, using with the redundancy upgrade file of the inconsistent upgrade file of the language version of described current operation system as current operation system, and obtain position and the size of described redundancy upgrade file; And/or
Obtain the language version of described application program, using with the redundancy upgrade file of the inconsistent upgrade file of the language version of described application program as described application program, and obtain position and the size of described redundancy upgrade file.
16. devices according to claim 14, is characterized in that, described analysis module, specifically for:
According to filename and the version number of described upgrade file, determine the redundancy upgrade file of current operation system and/or application program, and obtain position and the size of described redundancy upgrade file.
17. devices according to claim 16, is characterized in that, described analysis module, specifically for:
The version number of multiple upgrade files identical for filename is compared, identifies current latest edition number and time new version number; And
To not there is the upgrade file of described current latest edition number and time new version number as described redundancy upgrade file, and/or will repeat to have the upgrade file of described current latest edition number as described redundancy upgrade file.
18. devices according to claim 17, is characterized in that, described optimization module, specifically for:
Merged not having described current latest edition number by the mode of hard link with the upgrade file of time new version number; And/or
The upgrade file repeating to have described current latest edition number leaving multiple position in is merged by the mode of hard link.
19. devices according to claim 18, is characterized in that, described device also comprises:
Display module, for described according to described attribute information hard link is carried out to described redundancy upgrade file before, the attribute information of display redundancy upgrade file, to point out user the need of the described redundancy upgrade file of optimization.
20. devices according to claim 19, is characterized in that, described device also comprises:
Second determination module, for before the attribute information of described display redundancy upgrade file, determines that described redundancy upgrade file is not optimised.
CN201410458484.4A 2014-09-10 2014-09-10 The method for cleaning and device of upgrade file Active CN104239497B (en)

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 true CN104239497A (en) 2014-12-24
CN104239497B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
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
CN112947983A (en) * 2021-04-15 2021-06-11 网易(杭州)网络有限公司 Application program updating method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
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
US20140046912A1 (en) * 2012-08-13 2014-02-13 International Business Machines Corporation Methods and systems for data cleanup using physical image of files on storage devices

Patent Citations (3)

* Cited by examiner, † Cited by third party
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
US20140046912A1 (en) * 2012-08-13 2014-02-13 International Business Machines Corporation Methods and systems for data cleanup using physical image of files on storage devices

Cited By (4)

* Cited by examiner, † Cited by third party
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
CN112947983A (en) * 2021-04-15 2021-06-11 网易(杭州)网络有限公司 Application program updating method and device, electronic equipment and storage medium
CN112947983B (en) * 2021-04-15 2024-03-15 网易(杭州)网络有限公司 Application program updating method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN104239497B (en) 2017-11-10

Similar Documents

Publication Publication Date Title
US8185884B2 (en) System and method for offline updation of software in virtual machine (VM) images
CN106095620B (en) A kind of development approach of built-in Linux partition holding
US8887149B2 (en) Time shift configuration management for software product installation
US8032880B2 (en) Multi-branch management for updating software
CN102023881B (en) Method and device for upgrading software as well as embedded device
US7721284B2 (en) Deployment of multiple embedded operating system components
US20070245339A1 (en) Creating documentation screenshots on demand
US9075695B2 (en) Version conflict checking to installable unit
US20110041124A1 (en) Version Management System
CN102955706B (en) A kind of installation method of dual operating systems and guiding loading method
WO2005078603A1 (en) Method of converting a filesystem while the filesystem remains in an active state
CN104866391A (en) Terminal information backup method and apparatus based on incremental information system
CN102937904A (en) Multi-node firmware updating method and device
CN101647013A (en) Bookmark and configuration file for installation sequence
CN104007992A (en) Methods and devices for program updating and starting
US20100049961A1 (en) Update method for basic input/output system and update system thereof
CN102054041B (en) Method and system for upgrading metadata
CN101506772B (en) Environment state changes to alter functionality
CN105138352B (en) Method and device for installing application plug-in
CN104239497A (en) Clean-up method and device for upgraded files
CN104216802A (en) Memory database recovery method and device
CN102999349A (en) Software upgrading method
CN102880478A (en) Software updating method
CN104461612B (en) A kind of data processing method and device
US20110252414A1 (en) System using separate modules to update software and the method thereof

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

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.

TR01 Transfer of patent right