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 PDF

Info

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
Application number
CN201711136669.3A
Other languages
Chinese (zh)
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.)
China Standard Software Co Ltd
Original Assignee
China Standard Software 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 China Standard Software Co Ltd filed Critical China Standard Software Co Ltd
Priority to CN201711136669.3A priority Critical patent/CN109799996A/en
Publication of CN109799996A publication Critical patent/CN109799996A/en
Pending legal-status Critical Current

Links

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

A kind of method that installation procedure installs a variety of installation sources automatically
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.
CN201711136669.3A 2017-11-16 2017-11-16 A kind of method that installation procedure installs a variety of installation sources automatically Pending CN109799996A (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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 成都市华为赛门铁克科技有限公司 Method and device for installing application software

Patent Citations (5)

* Cited by examiner, † Cited by third party
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 成都市华为赛门铁克科技有限公司 Method and device for installing application software

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
VAER: "Linux安装软件总结 (二.几种安装命令介绍)", 《HTTPS://WWW.CNBLOGS.COM/VAER/P/4763662.HTML》 *

Cited By (2)

* Cited by examiner, † Cited by third party
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
CN103955363B (en) A kind of manufacture method of program upgrade installation package
EP3086225B1 (en) File system upgrade package production method, upgrade method, device and terminal
US20150067671A1 (en) Information processing apparatus, control method, and storage medium
US20060161914A1 (en) Systems and methods to modify application installations
WO2016192197A1 (en) Software upgrade method, apparatus and system of terminal, and computer storage medium
EP2605131A1 (en) Packing method and device for version upgrade software package
CN103176864A (en) Backup method, backup device and mobile terminal based on Android system
CN103095838A (en) Method for upgrading Android smartphone software through downloading incremental upgrade package
CN103324474B (en) Based on (SuSE) Linux OS across the method for System structure ISO and module
CN106055375B (en) Application program installation method and device
CN103002155A (en) Method for deploying Android mobile phone by using vehicle-mounted terminal
CN104536775A (en) Method and system for upgrading preset application under Android platform
US20150261766A1 (en) Method and apparatus for determining a range of files to be migrated
CN105302711A (en) Application repairing method and apparatus and terminal
WO2014117652A1 (en) Method and device for preventing application in an operating system from being uninstalled
CN103853587A (en) Method for writing flash based on cramfs and JFFS2
CN104461648A (en) OTA upgrade backing-up method and system for intelligent terminals
KR20140103347A (en) A radio handheld device and method for starting the radio handheld device
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
CN101800840A (en) Set top box upgrading method
WO2016082450A1 (en) Method for upgrading user terminal, and user terminal
RU2009105127A (en) CHANGES IN THE CONDITION OF THE ENVIRONMENT FOR CHANGE OF FUNCTIONAL CAPABILITIES
CN108959929B (en) Program file processing method and device
CN102955699A (en) Software upgrade package creating method and software upgrading method

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