CN109799996A - A kind of method that installation procedure installs a variety of installation sources automatically - Google Patents
A kind of method that installation procedure installs a variety of installation sources automatically Download PDFInfo
- Publication number
- CN109799996A CN109799996A CN201711136669.3A CN201711136669A CN109799996A CN 109799996 A CN109799996 A CN 109799996A CN 201711136669 A CN201711136669 A CN 201711136669A CN 109799996 A CN109799996 A CN 109799996A
- Authority
- CN
- China
- Prior art keywords
- installation
- source
- installation procedure
- file
- automatically
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The present invention relates to a kind of methods that installation procedure installs a variety of installation sources automatically, include the following steps: S1: installation procedure starting scans specified installation source directory, obtains the file name in installation source;S2: file type is detected using linux order " file ";S3: the type in installation source is judged automatically out according to the corresponding relationship between file type and mounting means;S4: installation source is automatically parsed according to the type in installation source and starts installation procedure.The method that installation procedure provided by the invention installs a variety of installation sources automatically installs the function in source by installation procedure automatic identification, can quickly make the installation mirror image in different installation sources on the basis of using the same installation procedure.The step of avoiding repeatedly modification installation procedure to operate by passing ginseng to installation procedure etc., optimizing production linux mounting disc, saves the time.
Description
Technical field
The present invention relates to computer software programs mounting technique fields, and in particular to a kind of installation procedure is installed a variety of automatically
The method in installation source.
Background technique
Current many installation procedures all only provide fairly perfect solution to a certain installation source.And in difference
Installation source between, can not also the general same installation procedure, cause deployment to be got up also inconvenient, ease for use is poor.
There are LiveCD, rpm packet, system compresses packet etc. in the common installation source of linux installation procedure at present.Replace different peaces
Loading of source requires to adjust to installation procedure, or modification configuration file, or modification kernel parameter, to keep installation procedure direct
Current installation Source Type is got, source file is then installed according to different installation Source Type parsings and starts to install.
Therefore, the mounting means of existing installation procedure truly has improved necessity.
Summary of the invention
To solve the shortcomings of the prior art, the present invention provides a kind of installation procedures to install a variety of installation sources automatically
Method includes the following steps:
S1: installation procedure starting scans specified installation source directory, obtains the file name in installation source;
S2: file type is detected using linux order " file ";
S3: the type in installation source is judged automatically out according to the corresponding relationship between file type and mounting means;
S4: installation source is automatically parsed according to the type in installation source and starts installation procedure.
Wherein, in the step S3, the parsing of the data of squashfs filesystem file type passes through calling
The interface that squashfs is parsed in LiveCD mounting means is realized.
Wherein, in the step S3, the parsing of the data of RPM file type is parsed by calling in rpm packet mounting means
The interface of rpm is realized.
Wherein, in the step S3, the parsing of the data of gzip compressed data file type is pressed by calling
The interface of parsing tar.gz in contracting packet mounting means is realized.
It is so-called " installation procedure " in the present invention, refer to corresponding in order to which system optical file is installed to hard disc of computer
Program under catalogue.
It is so-called " installation source " in the present invention, refer to that the file of stocking system mirror image in installation procedure, parsing this document are
Linux system file can be installed on hard disk and be corresponded under catalogue.
It is so-called " LiveCD " in the present invention, refer to the image file that complete Linux system is made into, including system file
And file system.
It is so-called " Rpm packet " in the present invention, refer to a kind of installation package file format of Linux system, specific rpm packet
A Linux system can be formed.
It is so-called " system compresses packet " in the present invention, refer to the compressed package being compressed by system file, contains complete
System file.
The method that installation procedure provided by the invention installs a variety of installation sources automatically, is installed by installation procedure automatic identification
The function in source can quickly make the installation mirror image in different installation sources on the basis of using the same installation procedure.It avoids
Modification installation procedure operate by passing ginseng to installation procedure etc. repeatedly, is optimized the step of making linux mounting disc, is saved
Time.
Specific embodiment
In order to have further understanding to technical solution of the present invention and beneficial effect, the following detailed description of of the invention
Technical solution and its beneficial effect of generation.
The present invention provides a kind of methods that installation procedure installs a variety of installation sources automatically, include the following steps:
S1: installation procedure starting scans the entire catalogue of fixing disc, obtains CD All Files, then filtering installation journey
The file of sequence itself obtains remaining file name in CD-disc catalogs;
S2: being detected the type for the file that all step S1 are operated using linux order " file ", and filtered again,
Only retain installation source file, such as: following three types of file is exactly to install source file: squashfs filesystem,
RPM, gzip compressed data;
S3: file obtained in processing step S2 again parses these files one by one, and writing data into hard disk can be complete
At installation.
Wherein, in the step S3, the data of squashfs filesystem file type call the installation side LiveCD
The interface that squashfs is parsed in formula can parse this document.
Wherein, in the step S3, the data of RPM file type call connecing for the parsing rpm in rpm packet mounting means
Mouth can parse this document.
Wherein, in the step S3, the data of gzip compressed data file type call compressed package installation side
The interface of parsing tar.gz in formula parses this document.
That is, the method that installation procedure provided by the invention installs a variety of installation sources automatically, core technology is to pass through peace
Dress program detects the type for installing the installation source file type in mirror image to automatically derive installation source file automatically, can be direct
Installation source is replaced without making any modification to installation procedure or installation parameter.
The present invention installs the function in source by installation procedure automatic identification, can be on the basis using the same installation procedure
On, quickly make the installation mirror image in different installation sources.Modification installation procedure is avoided repeatedly by passing ginseng to installation procedure etc.
Operation optimizes the step of making linux mounting disc, saves the time.
Although the present invention is illustrated using above-mentioned preferred embodiment, the protection model that however, it is not to limit the invention
It encloses, anyone skilled in the art are not departing within the spirit and scope of the present invention, and opposite above-described embodiment carries out various changes
It is dynamic still to belong to the range that the present invention is protected with modification, therefore protection scope of the present invention subjects to the definition of the claims.
Claims (5)
1. a kind of method that installation procedure installs a variety of installation sources automatically, which comprises the steps of:
S1: installation procedure starting scans specified installation source directory, obtains the file name in installation source;
S2: file type is detected using linux order " file ";
S3: the type in installation source is judged automatically out according to the corresponding relationship between file type and mounting means;
S4: installation source is automatically parsed according to the type in installation source and starts installation procedure.
2. the method that installation procedure as described in claim 1 installs a variety of installation sources automatically, which is characterized in that the step S3
In, the parsing of the data of squashfs filesystem file type is parsed by calling in LiveCD mounting means
The interface of squashfs is realized.
3. the method that installation procedure as claimed in claim 1 or 2 installs a variety of installation sources automatically, which is characterized in that the step
In rapid S3, the parsing of the data of RPM file type, by calling the interface for parsing rpm in rpm packet mounting means to realize.
4. the method that installation procedure as claimed in claim 1 or 2 installs a variety of installation sources automatically, which is characterized in that the step
In rapid S3, the parsing of the data of gzip compressed data file type, by calling the solution in compressed package mounting means
The interface for analysing tar.gz is realized.
5. the method that installation procedure as claimed in claim 3 installs a variety of installation sources automatically, which is characterized in that the step S3
In, the parsing of the data of gzip compressed data file type, by calling the parsing in compressed package mounting means
The interface of tar.gz is realized.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711136669.3A CN109799996A (en) | 2017-11-16 | 2017-11-16 | A kind of method that installation procedure installs a variety of installation sources automatically |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711136669.3A CN109799996A (en) | 2017-11-16 | 2017-11-16 | A kind of method that installation procedure installs a variety of installation sources automatically |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109799996A true CN109799996A (en) | 2019-05-24 |
Family
ID=66555373
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711136669.3A Pending CN109799996A (en) | 2017-11-16 | 2017-11-16 | A kind of method that installation procedure installs a variety of installation sources automatically |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109799996A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111338650A (en) * | 2020-02-19 | 2020-06-26 | 苏州浪潮智能科技有限公司 | Portable web application deployment method in Livecd |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090064131A1 (en) * | 2007-08-31 | 2009-03-05 | Ferris James M | Post-install configuration for applications |
CN101639781A (en) * | 2009-08-25 | 2010-02-03 | 厦门敏讯信息技术股份有限公司 | Program installation method and programmable electronic equipment |
CN101859251A (en) * | 2009-04-09 | 2010-10-13 | 研祥智能科技股份有限公司 | Method and device for installing embedded operating system |
CN102129381A (en) * | 2011-03-14 | 2011-07-20 | 兰雨晴 | Method for customizing linux operating system |
CN102402446A (en) * | 2011-11-22 | 2012-04-04 | 成都市华为赛门铁克科技有限公司 | Application software installation method and application software installation device |
-
2017
- 2017-11-16 CN CN201711136669.3A patent/CN109799996A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090064131A1 (en) * | 2007-08-31 | 2009-03-05 | Ferris James M | Post-install configuration for applications |
CN101859251A (en) * | 2009-04-09 | 2010-10-13 | 研祥智能科技股份有限公司 | Method and device for installing embedded operating system |
CN101639781A (en) * | 2009-08-25 | 2010-02-03 | 厦门敏讯信息技术股份有限公司 | Program installation method and programmable electronic equipment |
CN102129381A (en) * | 2011-03-14 | 2011-07-20 | 兰雨晴 | Method for customizing linux operating system |
CN102402446A (en) * | 2011-11-22 | 2012-04-04 | 成都市华为赛门铁克科技有限公司 | Application software installation method and application software installation device |
Non-Patent Citations (1)
Title |
---|
VAER: "Linux安装软件总结 (二.几种安装命令介绍)", 《HTTPS://WWW.CNBLOGS.COM/VAER/P/4763662.HTML》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111338650A (en) * | 2020-02-19 | 2020-06-26 | 苏州浪潮智能科技有限公司 | Portable web application deployment method in Livecd |
CN111338650B (en) * | 2020-02-19 | 2022-07-22 | 苏州浪潮智能科技有限公司 | Portable Livecd web application deployment method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20150067671A1 (en) | Information processing apparatus, control method, and storage medium | |
CN102831035B (en) | The method of backup information and device | |
CN103955363A (en) | Manufacturing method of program upgrade and installation package | |
CN103176864A (en) | Backup method, backup device and mobile terminal based on Android system | |
WO2014180425A1 (en) | File system upgrade package production method, upgrade method, device and terminal | |
CN101566954A (en) | Method and device for managing plug-in | |
CN103795740A (en) | Downloading method of plug-in installation packages and downloading terminal | |
CN103324474B (en) | Based on (SuSE) Linux OS across the method for System structure ISO and module | |
JP5897155B2 (en) | Wireless handheld device activation method and wireless handheld device | |
US20150261766A1 (en) | Method and apparatus for determining a range of files to be migrated | |
CN102520997A (en) | Semi-automatic batch deploying method of homogenous cluster operating system | |
CN109739616A (en) | A kind of cloud platform container mirror image batch making method | |
CN103002155A (en) | Method for deploying Android mobile phone by using vehicle-mounted terminal | |
CN106055375B (en) | Application program installation method and device | |
CN104536775A (en) | Method and system for upgrading preset application under Android platform | |
CN105302711A (en) | Application repairing method and apparatus and terminal | |
WO2014117652A1 (en) | Method and device for preventing application in an operating system from being uninstalled | |
CN105391763A (en) | Method and server for reinforcing a plurality of apk files | |
CN103853587A (en) | Method for writing flash based on cramfs and JFFS2 | |
CN103645918A (en) | Software upgrading method and device for industrial endoscope | |
CN104461648A (en) | OTA upgrade backing-up method and system for intelligent terminals | |
CN109799996A (en) | A kind of method that installation procedure installs a variety of installation sources automatically | |
CN103544298A (en) | Log analysis method and analysis device for component | |
CN108959929B (en) | Program file processing method and device | |
CN103389905A (en) | Plug-in loading method and plug-in loading system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190524 |