CN105955937B - A method of the relatively Linux system CD iso similarities and differences - Google Patents
A method of the relatively Linux system CD iso similarities and differences Download PDFInfo
- Publication number
- CN105955937B CN105955937B CN201610320669.8A CN201610320669A CN105955937B CN 105955937 B CN105955937 B CN 105955937B CN 201610320669 A CN201610320669 A CN 201610320669A CN 105955937 B CN105955937 B CN 105955937B
- Authority
- CN
- China
- Prior art keywords
- file
- document
- copy
- same
- similarities
- 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
- 238000000034 method Methods 0.000 title claims abstract description 29
- 230000003287 optical effect Effects 0.000 claims abstract description 7
- 238000009434 installation Methods 0.000 claims abstract description 4
- 235000015170 shellfish Nutrition 0.000 claims 1
- 230000000875 corresponding effect Effects 0.000 description 6
- 230000002776 aggregation Effects 0.000 description 1
- 238000004220 aggregation Methods 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/194—Calculation of difference between files
-
- 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/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computer Security & Cryptography (AREA)
- Artificial Intelligence (AREA)
- Human Computer Interaction (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of methods of relatively Linux system CD iso similarities and differences, implement process are as follows: by two installation iso CD carries in some operating system;Above-mentioned CD is compared, catalogue where comparing the file of CD first traverses the All Files in each CD, then more all CDs, smartphone and similarity analysis are carried out;Then compare rpm packet content, the content in the rpm packet for including in each CD is compared, carry out smartphone and similarity analysis.This it is a kind of relatively the Linux system CD iso similarities and differences method compared with prior art, pass through the similarities and differences between the angle changing rate and the analysis each small version of Centos or big version of mirror image internal file, to convenient for users to can more fast accurate according to release content to CD carry out using, improve the service efficiency of optical disc product, also can the person of being convenient to use select system version to be installed according to their own needs, it is practical, it is easy to spread.
Description
Technical field
The present invention relates to field of computer technology, specifically it is a kind of it is practical, compare Linux system CD iso
The method of the similarities and differences.
Background technique
With the development of computer technology, optical disc product built-in system version is also constantly changing, such as in Centos
In 6.x operating system version, each version has different changes, and version more rearward, more has increased content, now
It can also compare between Centos 7.0 and Centos7.1 image file, but staff can not also quicklook
It was found that the similarities and differences between all optical disc product systems, cause staff can not quickly according to its carry out using,
Service efficiency is not high, and for the difference of image file between CentOS6.x or Centos7.x, the present invention provides a kind of comparison
The method of the Linux system CD iso similarities and differences.
Summary of the invention
Technical assignment of the invention is place against the above deficiency, provide it is a kind of it is practical, compare Linux system CD
The method of the iso similarities and differences.
A method of the relatively Linux system CD iso similarities and differences implement process are as follows:
By two installation iso CD carries in some operating system;
Above-mentioned CD is compared, compares catalogue where the file of CD first, i.e., all texts in each CD
Part is all traversed, then more all CDs, carries out smartphone and similarity analysis;
Then compare rpm packet content, the content in the rpm packet for including in each CD is compared, carry out intelligent receipts
Collection and similarity analysis.
The process of catalogue where comparing optical file are as follows: the multiple CDs of carry first, then in each CD of order traversal
All Files directory address;The address where file directory in all CDs of intellectual analysis;It finds in each CD
Main comparable file and be compared.
The detailed process of catalogue where traversing the file of CD are as follows:
It is divided into two parts when traversal, first part is subdirectory, and sub- subdirectory and sub- Ziwen are further divided under subdirectory
Part ...;
Second part is file, and file no longer divides, that is, encounters file when traversing and be recorded, encounter catalogue and traverse mesh
File under record;
When traversal when encounter be empty list when, be just deleted, do not note down, at the same using each file big small tenon
Remember path file, data preparation is at document;
The content similarities and differences in document that last all traversal CDs of intellectual analysis are organized into.
The intellectual analysis process of the document content similarities and differences are as follows:
Select the root name of first file name traversed in the above-mentioned document being organized into, i.e. the first of file name
A field is as intellectual analysis target, if without corresponding text under the same directory in the document that second CD is organized into
Part, then label is no file after file path in first document, does not mark any file in second document;
If finding a corresponding file under the same directory in the document that second CD is organized into, and this file
Identical with the file name of first file, then marking after file path in first document is same, second
This document is labeled as pass in a document;If not exactly the same, perform the next step;
If finding a corresponding file under the same directory in the document that second CD is organized into, this file with
First file name is not exactly the same, then relatively more secondary file name, i.e. the first character section of file name, if identical,
Compare time time file name, i.e. the second of file name field compares, if identical, compares time time time file name, i.e.,
The third field ... of file name until comparing field initial character for number, then in the first document after file path together
Labeled as no same version, while in second document, this document is labeled as no same version;
If the name field initial character ratio of the file in the title of the file found in the second document and the first document
Compared with when, just different before encountering number, then it is 2 no file that the file name in the path is marked in the first document of label,
Comparison document in second document does not make marks;
It is compared according to the file in the first document copy copy always, has traversed all files, after the completion of traversal,
List label result;
1 no file is labeled as if the file of unmarked pass in the second document copy copy;
It is file to label in two parts of copy copies, the same, no same version, 1 no file
File is arranged, and finds comparable file to be same version labeled as label in the copy copy of the first document
File.
Compare the detailed process of rpm packet content are as follows: opened in advance to rpm packet, record the file pre-placing mesh in rpm packet
Record, i.e., select the file found in above-mentioned steps, if suffix is not rpm packet, individually list;If it is rpm packet,
Rpm packet described in the copy copy of the first document is opened, rpm packet described in the copy copy of the second document is opened in comparison,
And compare the difference opened in advance twice, result is listed after record.
A kind of method of relatively Linux system CD iso similarities and differences of the invention, has the advantage that
A kind of method of relatively Linux system CD iso similarities and differences of the invention, passes through the angle changing rate of mirror image internal file
The similarities and differences between the analysis each small version of Centos or big version, thus convenient for users to capableing of the root of more fast accurate
According to release content to CD carry out using, improve the service efficiency of optical disc product, also can the person of being convenient to use according to oneself
It needs that system version is selected to be installed, certainly, uses the similarities and differences between the more other similar Centos operating systems of the present invention
It is also possible, it is applied widely, it is practical, it is easy to spread.
Specific embodiment
The present invention is further explained in the light of specific embodiments.
The present invention provides a kind of method of relatively Linux system CD iso similarities and differences, realizes process are as follows:
The comparison carried out mainly for the file in Linux system CD is compared including catalogue where file,
The contents such as comparison two parts of rpm packet content.This is clearly demarcated to propose similarity intelligent analysis process, come detect different types of optical disks it
Between or same class CD different editions between the similarities and differences, thus to using different Linux system CDs to build operating system
The similarities and differences, the reference frame of a side is provided.
Catalogue where two parts content is file is relatively that the All Files in CD is needed to be traversed, and comparable
CD carry out multi-level ratio and convert, and carry out smartphone and similarity analysis;The comparison of rpm packet content, is in CD
The rpm packet for including in carry out smartphone and similarity analysis comprising content and comparable CD.
Based on above-mentioned steps, specific implementation process of the invention are as follows:
Carry CD 1 and CD 2;Traverse CD 1 in All Files directory address;It traverses all in CD 2
File directory address;The address where file directory in intellectual analysis CD 1 and CD 2;Find CD 1 and CD 2
In main comparable file;Rpm packet is opened in advance, records the file pre-placing catalogue in rpm packet;Summarized results.
In more detail, above-mentioned steps are as follows:
Step 1, installation iso CD carry in certain operating system, carry is carried out to the two systems CD to be compared,
System CD 1, system CD 2.
Step 2, the file and catalogue for traversing CD 1 are divided into two parts, first part is subdirectory, subdirectory when traversal
Under be further divided into sub- subdirectory and sub- subfile ..., second part is file, and file no longer divides, i.e.,;File is encountered when traversal
It is recorded, encounters the file under catalogue i.e. traversing directories.If it is empty list, that is, it is deleted, is not recorded.Simultaneously using each
The size path label file of a file, data preparation is at document 1.
Step 3, with the operation in step 2, traverse the file and catalogue of CD 2, data preparation is at document 2.
The similarities and differences of content in step 4, intellectual analysis document 1 and document 2: it is made reference with the copy copy of document 1 and document 2
Pass is marked in document, the file detected in the copy copy of document 1.
Select the root name (the first character section of file name) of traverse in document 1 first file name as intelligence
Target can be analyzed, if label is after file path in document 1 without corresponding file under the same directory in document 2
No file does not mark any file in document 2.
If finding a corresponding file under the same directory in document 2, and the text of this file and first file
Part title is identical, then label is same after file path in document 1, and this document is labeled as pass in document 2;Such as
Fruit is not exactly the same, then performs the next step.
If finding a corresponding file under the same directory in document 2, this file and first file name are not
Identical, then relatively more secondary file name (the first character section of file name) compares time time file name if identical
(file name the and a field) compares, if identical, relatively time time time file name (the third word of file name
Section) ... until comparing field initial character together for number (only digital difference), then marked after file path in document 1
For no same version, respective version number can be listed respectively if needed, while this document is labeled as no in document 2
same version。
If the title of the file found in document 2 is compared with the name field initial character of the file in document 1,
Encounter just different before number, then it is 2 no file that the file name in the path is marked in marking document 1, the ratio in document 2
It does not make marks compared with file.
The file in copy is copied according to document 1 always to be compared, traverse all files, after the completion of traversal, is arranged
Result is marked out.
File mark as document 2 copies unmarked pass in copy is 1 no file.
It is file to label in two parts of copy copies, the same, no same version, 1 no file
File is arranged.
Step 5 finds comparable file to be same version labeled as label in the copy copy of document 1
File, this document are mostly rpm packet.
Step 6 selects the file found in step 5, if suffix is not rpm packet, individually lists;If it is
Rpm packet opens rpm packet described in the copy copy of document 1, such as A.1.rpm A.rpm then executes rpm-qpl, and comparison is beaten
Rpm packet described in the copy copy of document 2 is opened, such as rpm-qpl is A.2.rpm, and compare the difference opened in advance twice, remembered
Record is in rpm packet is opened relatively in advance.
The data of step 7, aggregation step 4 and step 6, intelligently list correlated results.
By the above method, two Linux system CD iso can be quickly provided, two linux light can be quickly summed up
The difference and something in common of disk.
Above-mentioned specific embodiment is only specific case of the invention, and scope of patent protection of the invention includes but is not limited to
Above-mentioned specific embodiment, any claim for meeting a kind of relatively method of the Linux system CD iso similarities and differences of the invention
The appropriate change or replacement that the those of ordinary skill of book and any technical field does it, should all fall into of the invention
Scope of patent protection.
Claims (2)
1. a kind of method of the relatively Linux system CD iso similarities and differences, which is characterized in that it implements process are as follows:
By two installation iso CD carries in some operating system;
Above-mentioned CD is compared, compares catalogue where the file of CD first, i.e., the All Files in each CD
It is traversed, then more all CDs, carries out smartphone and similarity analysis;
Then rpm APMB package is found, rpm packet described in the copy copy of document in two CDs is compared, carries out smartphone
And similarity analysis;
The process of catalogue where comparing optical file are as follows: the directory address where All Files in each CD of order traversal;
The address where file directory in all CDs of intellectual analysis;It finds the comparable file in each CD and is compared;
The detailed process of catalogue where traversing the file of CD are as follows:
It is divided into two parts when traversal, first part is subdirectory, sub- subdirectory and sub- subfile is further divided under subdirectory, until institute
There is catalogue to divide;
Second part is file, and file no longer divides, that is, encounters file when traversing and be recorded, encounter under catalogue i.e. traversing directories
File;
When traversal when encounter be empty list when, be just deleted, do not note down, at the same using each file big tick marks road
Diameter file, data preparation is at document;
Last intellectual analysis traverses the content similarities and differences in the document that all CDs are organized into;
The intellectual analysis process of the document content similarities and differences are as follows:
Select the root name of first file name traversed in the above-mentioned document being organized into, the i.e. first character of file name
Duan Zuowei intellectual analysis target, if without corresponding file under the same directory in the document that second CD is organized into,
Label is no file after file path in first document, does not mark any file in second document;
If finding a corresponding file under the same directory in the document that second CD is organized into, and this file and
The file name of one file is identical, then label is same, second text after file path in first document
This document is labeled as pass in shelves;If not exactly the same, perform the next step;
If finding a corresponding file, this file and first under the same directory in the document that second CD is organized into
A file name is not exactly the same, then relatively time file name, i.e. the first character section of file name compare if identical
Secondary file name, i.e. the second of file name field compares, if identical, relatively more secondary secondary file name, i.e. file
The third field of title continues the file name of more next level if identical, is until comparing field initial character together
Number, then label is same version after file path in the first document, while this document marks in second document
For no same version;
If the title of the file found in the second document is compared with the name field initial character of the file in the first document,
Just different before encountering number, then it is 2 no file, the second text that the file name in the path is marked in the first document of label
Comparison document in shelves does not make marks;
It is compared according to the file in the first document copy copy always, has traversed all files, after the completion of traversal, listed
Mark result;
1 no file is labeled as if the file of unmarked pass in the second document copy copy;
The file that label in copy is file, the same, no same version, 1 no file is copied to two parts
It is arranged, finding comparable file is labeled as the text that label is same version in the copy copy of the first document
Part.
2. a kind of method of relatively Linux system CD iso similarities and differences according to claim 1, which is characterized in that compare
Rpm packet content is to be opened in advance to rpm packet, the file pre-placing catalogue in record rpm packet, to finding in each CD
Comparable file is selected, if suffix is not rpm packet, is individually listed;If it is rpm packet, copying for the first document is opened
Rpm packet described in the copy copy of the second document is opened in rpm packet described in shellfish copy, comparison, and compares pre- opening twice
Difference, result is listed after record.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610320669.8A CN105955937B (en) | 2016-05-16 | 2016-05-16 | A method of the relatively Linux system CD iso similarities and differences |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610320669.8A CN105955937B (en) | 2016-05-16 | 2016-05-16 | A method of the relatively Linux system CD iso similarities and differences |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105955937A CN105955937A (en) | 2016-09-21 |
CN105955937B true CN105955937B (en) | 2019-03-26 |
Family
ID=56911596
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610320669.8A Active CN105955937B (en) | 2016-05-16 | 2016-05-16 | A method of the relatively Linux system CD iso similarities and differences |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105955937B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108182181B (en) * | 2018-02-01 | 2021-03-26 | 中国人民解放军国防科技大学 | Repeated detection method for mass contribution merging request based on mixed similarity |
CN108763073A (en) * | 2018-05-21 | 2018-11-06 | 郑州云海信息技术有限公司 | A method of the software execution environment similarities and differences in two Linux systems of comparison |
CN112487426A (en) * | 2020-11-26 | 2021-03-12 | 网宿科技股份有限公司 | Method, system and server for determining system white list |
CN112487427A (en) * | 2020-11-26 | 2021-03-12 | 网宿科技股份有限公司 | Method, system and server for determining system white list |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1499505A (en) * | 2002-11-12 | 2004-05-26 | 三星电子株式会社 | Method and device for distinguishing disc type |
CN101382885A (en) * | 2007-09-06 | 2009-03-11 | 联想(北京)有限公司 | Multi-edition control method and apparatus for data file |
CN103123588A (en) * | 2013-02-05 | 2013-05-29 | 东莞宇龙通信科技有限公司 | Method and system for obtaining difference upgrade patch |
CN105468396A (en) * | 2014-09-11 | 2016-04-06 | 深圳Tcl数字技术有限公司 | Generating method for differential package, upgrading method, generating apparatus, and Linux terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060064634A1 (en) * | 2004-09-17 | 2006-03-23 | International Business Machines Corporation | Editing multiple file versions |
-
2016
- 2016-05-16 CN CN201610320669.8A patent/CN105955937B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1499505A (en) * | 2002-11-12 | 2004-05-26 | 三星电子株式会社 | Method and device for distinguishing disc type |
CN101382885A (en) * | 2007-09-06 | 2009-03-11 | 联想(北京)有限公司 | Multi-edition control method and apparatus for data file |
CN103123588A (en) * | 2013-02-05 | 2013-05-29 | 东莞宇龙通信科技有限公司 | Method and system for obtaining difference upgrade patch |
CN105468396A (en) * | 2014-09-11 | 2016-04-06 | 深圳Tcl数字技术有限公司 | Generating method for differential package, upgrading method, generating apparatus, and Linux terminal |
Also Published As
Publication number | Publication date |
---|---|
CN105955937A (en) | 2016-09-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105955937B (en) | A method of the relatively Linux system CD iso similarities and differences | |
CN101019115B (en) | A novel media file access and storage solution for multi-workstation/multi-platform non-linear video editing systems | |
US9026750B2 (en) | Systems and methods for managing data in a computing environment | |
US9646023B1 (en) | Devices and methods configured for automated duplication of network shared folders | |
US7228299B1 (en) | System and method for performing file lookups based on tags | |
US7805439B2 (en) | Method and apparatus for selecting data records from versioned data | |
CN109726044A (en) | Multiple files are efficiently restored from data de-duplication storage based on data block title | |
US8606751B1 (en) | System and method for backup by inode number | |
US8694497B2 (en) | Method, system, and computer program product for enabling file system tagging by applications | |
CN106649467B (en) | Blue-ray disc library filing management method and system | |
US20120095962A1 (en) | Aggregating Media Content From Multiple Clients To A Server | |
US9128944B2 (en) | File system enabling fast purges and file access | |
US20090063410A1 (en) | Method for Performing Parallel Data Indexing Within a Data Storage System | |
JP2006146904A5 (en) | ||
TWI550513B (en) | Brokered item access for isolated applications | |
US20110218973A1 (en) | System and method for creating a de-duplicated data set and preserving metadata for processing the de-duplicated data set | |
US20200167479A1 (en) | Digital forensics system | |
US20160012070A1 (en) | Methods for managing a request to list previous versions of an object and devices thereof | |
US20100082663A1 (en) | Method and System for Identifying Equivalent Digital Media Assets | |
US20120036583A1 (en) | Computer readable medium storing program, information processing apparatus, and method | |
US20100199216A1 (en) | File system in a computing environment | |
Shein | From accession to access: A born-digital materials case study | |
Daines III | Processing Digital Records and Manuscripts | |
KR101634754B1 (en) | Method and apparatus for monitoring for sharing of literary works | |
KR101545273B1 (en) | Apparaus and method for detecting dupulicated document of big data text using clustering and hashing |
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 |