CN102419711A - Package management system and method for embedded system of digital television receiving terminal - Google Patents

Package management system and method for embedded system of digital television receiving terminal Download PDF

Info

Publication number
CN102419711A
CN102419711A CN2011103634842A CN201110363484A CN102419711A CN 102419711 A CN102419711 A CN 102419711A CN 2011103634842 A CN2011103634842 A CN 2011103634842A CN 201110363484 A CN201110363484 A CN 201110363484A CN 102419711 A CN102419711 A CN 102419711A
Authority
CN
China
Prior art keywords
software package
software
data source
module
dependence
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
CN2011103634842A
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.)
Shenzhen Advanced Video Info-Tech Co Ltd
Original Assignee
Shenzhen Advanced Video Info-Tech 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 Shenzhen Advanced Video Info-Tech Co Ltd filed Critical Shenzhen Advanced Video Info-Tech Co Ltd
Priority to CN2011103634842A priority Critical patent/CN102419711A/en
Publication of CN102419711A publication Critical patent/CN102419711A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a package management system and a package management method for an embedded system of a digital television receiving terminal. The package management system comprises a data source setting module for setting the data source of a software package, a synchronization module for synchronizing a software package information list in the data source to a local area, and a software package installation module which comprises an installation command receiving module for receiving the installation command of a user, an installation analyzing module for searching the software package directed by an installation command in the data source according to the software package information list and analyzing all the dependency software packages of the software package and a dependency relationship among the dependency software packages according to a dependency relationship description file in the software package, and an installation executing module for downloading and installing the dependency software packages and the software package directed by the installation command from the data source according to the analysis result of the analyzing module. By the system and the method, the software packages with the dependency relationship are installed in the embedded system by one step, and an installation process is simplified.

Description

The embedded system of receiving terminal for digital television assure the reason system and method
Technical field
What the present invention relates to embedded system assures the reason system and method, particularly relate to receiving terminal for digital television embedded system assure the reason system and method.
Background technology
Existing receiving terminal for digital television receives the installation of third party software hardly, and its loaded service all is to be solidificated in the embedded system of receiving terminal for digital television by manufacturer, and the third party can't utilize receiving terminal for digital television to carry the business of oneself; Its reason is: when under embedded system, carrying oneself professional, we can not be directly be installed to the downloaded software bag in the middle of the system, need compile software package; Handle its dependence, and have the installation of the software package of dependence to bother very much, depend on the B software package such as the A software package; The B software package relies on and the C software package, and what we wanted to install is the A software package, does not know when us under the prerequisite of the situation that relies on; We can directly remove to install the A software package; Yet can end to install, prompting needs to install earlier the B software package, so we remove to install the B software package again midway; The result ends again to install midway, and prompting needs to install earlier the C software package.This operation that repeats is very inconvenient for the user, can waste a lot of time, and can let system produce a lot of garbage files.
Equally, in the development and application of system, run into some problems through regular meeting: (1) user has deleted some file because of carelessness and has caused the function of software package to move; (2) error owing to operation causes the damage of some file to cause the function of software package to move; (3) since the function of the software package that the installation of some incorrect software causes can't move; (4) owing to the mis-arrange to software causes the function of software package to move; (5) function of the software package that causes of some other reason can't be moved.For the software that dependence is arranged, the user can't know where problem comes from, thereby can only reinstall system's (factory reset).
Summary of the invention
Technical matters to be solved by this invention is, provide a kind of receiving terminal for digital television embedded system assure the reason system and method.
Technical matters of the present invention solves through following technological means:
A kind of reason system that assures of embedded system of receiving terminal for digital television comprises:
Data source is provided with module, is used to be provided with the data source of software package;
Synchronization module is used for the software package information list of data source extremely local synchronously;
The software package installed module, this software package installed module comprises: the installation order receiver module is used to receive user's installation order; The installing analysis module; Be used for finding installation order software package pointed in data source, and analyze all dependent software package of this software package and dependence each other according to the dependence description document in this software package according to said software package information list; Execution module is installed, is downloaded and install said dependent software package and installation order software package pointed from data source according to the analysis result of analysis module.
Preferably, also comprise software package reparation module, this software package is repaired module and is comprised: repair the order receiver module, be used to receive user's reparation order; The repairing analysis module finds the software package version identical software package pointed with repairing order according to said software package information list in data source, and analyzes all dependent software package of this software package according to the dependence description document in this software package; Repair execution module; Software package and the dependent software package thereof identical with its version contrasts one by one in order software package pointed and dependent software package thereof and the data source with repairing; Find out the file that damages or lack, and corresponding file in the data source is replaced or is copied in the corresponding installation directory.
Preferably, comprise that also the dependence net makes up module, be used for making up all dependence nets of install software bag according to all dependence description document of install software bag; The software package Unload module, this software package Unload module comprises: unloading order receiver module is used to receive user's unloading order; The Unloading Analysis module is used for analyzing the software package that all rely on unloading order software package pointed according to said dependence net; The unloading execution module is used for the analysis result according to the Unloading Analysis module, unloads the software package of said unloading order software package pointed and all these software packages of dependence.
The package management method of the embedded system of a kind of receiving terminal for digital television of the present invention comprises:
Data source is provided with step: the data source that software package is set;
Synchronizing step: the software package information list in the data source is extremely local synchronously;
Software package installation steps: the installation order that receives the user; In data source, find installation order software package pointed according to said software package information list, and analyze all dependent software package of this software package and dependence each other according to the dependence description document in this software package; Download and install said dependent software package and installation order software package pointed according to analysis result from data source.
Preferably, also comprise software reparation step: receive user's reparation order; In data source, find the software package version identical software package pointed according to said software package information list, and analyze all dependent software package of this software package according to the dependence description document in this software package with repairing order; Software package and the dependent software package thereof identical with its version contrasts one by one in order software package pointed and dependent software package thereof and the data source with repairing; Find out the file that damages or lack, and corresponding file in the data source is replaced or is copied in the corresponding installation directory.
Preferably, dependence net construction step:, make up all dependence nets of install software bag according to all dependence description document of install software bag; Software unloading step: receive user's unloading order; Analyze the software package that all rely on unloading order software package pointed according to said dependence net; Unload the software package of said unloading order software package pointed and all these software packages of dependence.
Compared with prior art; Beneficial effect of the present invention is: as long as the provider of software package provides the dependence description document at software package; After the user set the data source of software package voluntarily before installation, the reason system that assures of the present invention was extremely local synchronously with the information list in the data source automatically, thereby system just can find software package to be installed; And, in data source, download and install all depended softwares and target software automatically according to the dependence description document in the software package to be installed.
In the preferred version, utilize and repair module, can compare analysis, repair disappearance or damage file, thereby avoided reinstalling through file to software package to be repaired and dependence bag thereof.
In the preferred version, utilize Unload module, can the software of treating the uninstall bag and relying on this software package be deleted in the lump, thereby avoided encapsulating the software package occupying system resources that unloading can't move because of depended software.
Description of drawings
Fig. 1 is the management method process flow diagram of the specific embodiment of the invention.
Embodiment
Contrast accompanying drawing below and combine preferred embodiment that the present invention is carried out detailed elaboration.
As shown in Figure 1; A kind of embedded system of receiving terminal for digital television assure the reason system and method; Be used for managing the installation of embedded system software package; Especially the installation that has the software package of dependence; Assure the reason system and comprise that data source is provided with module, synchronization module, software package installed module, software package reparation module, dependence net structure module, software package Unload module, the software package installed module comprises installation order receiver module, installing analysis module and execution module is installed that software package reparation module comprises repairing orders receiver module, repairing analysis module and reparation execution module; The software package Unload module comprises unloading order receiver module, Unloading Analysis module and unloading execution module, said method comprising the steps of:
Data source is provided with step: through data source module is set; The data source of software package is set; Carry out the Data Source of operation such as software installation, reparation, unloading utilizing method of the present invention; This source can be any memory device of this locality or far-end, for example CD, network, private server or the like;
Synchronizing step: synchronization module is extremely local synchronously with the software package information list in the data source; Change data source each time and all must carry out once time synchronization, with the consistance of the software package information list that guarantees to write down in data and the embedded system in the data source;
The software package installation steps: the installation order receiver module receives user's installation order; The installing analysis module finds installation order software package pointed according to said software package information list in data source, and analyzes all dependent software package of this software package and dependence each other according to the dependence description document in this software package; Execution module is installed is downloaded and install said dependent software package and installation order software package pointed from data source according to analysis result;
Same method of the present invention can also be used for repairing or the mounted software kit of unloading, and it may further comprise the steps respectively: software is repaired step: repair the reparation order that the order receiver module receives the user; The repairing analysis module finds the software kit version identical software kit pointed with repairing order based on said software kit information list in data source, and analyzes all dependent software package of this software kit based on the dependence description document in this software kit; Repairing Executive Module will repair and order that software kit and the dependent software package thereof identical with its version contrasts one by one in software kit pointed and dependent software package thereof and the data source; Find out the file that damages or lack, and replace or be copied to corresponding file in the data source in the corresponding installation directory;
Dependence net construction step: the dependence net makes up module based on all dependence description document of install software bag, makes up all dependence nets of install software bag;
The software unloading step: unloading order receiver module receives user's unloading order; The said dependence net of Unloading Analysis module analyzes all software packages that rely on unloading order software package pointed; The unloading execution module unloads the software package of said unloading order software package pointed and all these software packages of dependence according to analysis result.
Below in conjunction with a more concrete embodiment---how to utilize method of the present invention that webkit browser based on the Directfb compiling is installed, method of the present invention is further set forth:
Supplier as software webkit browser; It is before carrying out cross compile to source code; Should confirm its dependent software package and dependence according to the needs of webkit browser bearer service; Wrap and dependence according to relying on, and cross compile is carried out in all depended software subpackages, at last the webkit browser is carried out cross compile; (the present invention recommends the software developer to utilize the cross compile chain of scratchbox2 to compile, and need not manually specify the path of needed headers and libraries file in the compilation process, brings great convenience like this with quick); After compiling is accomplished, behind the unnecessary file according to service needed deletion compiling generation, remaining file is carried out subpackage, and then be packaged into the software package that final being used for is installed in receiving terminal for digital television; Install for making final software package can use method of the present invention; Compile the dependence description document that the translator need create a specific format; Be used to describe the dependence of this software package; For example the A software package depends on the B software package, and the dependence description document in the A software package need be put down in writing its dependence to the B software package so; After the software package compiling and packing completion to webkit browser and all dependences thereof; With a plurality of software packages (comprising webkit browser and dependent software package thereof) that finally form; Be positioned under the same catalogue, and create a software package information list with the essential information that writes down all software packages to form a data source.Said essential information is answered the title of software package at least, can also comprise store path, developer, issuing time or the like information.The supplier of webkit browser can be recorded in this data source on the storeies such as CD, FLASH, or through Web publishing, or be stored in specific server.
Utilize method of the present invention to install when stating the webkit browser; The at first manual data source of designated mounting software package, the tentation data source is a CD, insert CD after; Software package information list file in the automatic reading of data of the synchronization module source, and it is downloaded to this locality; When the installation order receiver module receives the order of user installation webkit browser; At first through whether having the webkit browser software package in the software package information list judgment data source,, then report an error and stop installing if do not exist; If exist, then continue to install; The installing analysis module; In data source, find the webkit browser software package through the software package information list; And it is downloaded to this locality, and read the dependence description document in the webkit browser software package and analyze all dependent software package of webkit browser software package and dependence thereof, by being installed, execution module from data source, downloads all dependent software package then; And install according to the logical order of dependence; For example the webkit browser depends on the Cairo software package, and the Cairo software package depends on the freetype software package, and the freetype software package so then is installed earlier; The Cairo software package is installed then, and then the webkit browser is installed.
The preferred implementing procedure of software repair function equally also of the present invention is following:
Suppose to find in the operational process that the C software package can not move, and the C software package depends on D, two software packages of E, the D software package depends on the F software package, and the E software package depends on the G software package, and its repair process is following:
1. from the same C software package of downloaded version.
2. seek out whole installation files of C software package, contrast one by one, find out and damage or the file of disappearance with file in the downloaded software bag.Perhaps copy corresponding file decompress(ion) replacement in the downloaded software bag in the corresponding installation directory of C software to.
3. analyze the software package D and the E of its dependence according to the dependence description document in the C software package; Software package D and E that download version is the same; Find out whole installation files of direct dependent software package D and E; And contrast one by one with the file of downloaded software bag, find out and damage or the file of disappearance.Perhaps copy corresponding file decompress(ion) replacement in the downloaded software bag in the corresponding installation directory of corresponding software to.
4. from the dependence description document of D, E software package, obtain the information of its dependent software package respectively; Software package F and G that download version is the same; Find out that dependent software package F and G all install file in the local file; And contrast one by one with the file of downloaded software bag, find out and damage or the file of disappearance.Perhaps copy corresponding file decompress(ion) replacement in the downloaded software bag in the corresponding installation directory of corresponding software to.
5. accomplish automatically and repair.
Above-mentioned repair process is a concrete example, the invention is not restricted to above-mentioned example.The dependence of software package possibly protected multistage dependence or even a netted dependence; And dependent software package at different levels maybe be by different developer's exploitations; This just causes the dependence description document possibly have condition of different; This document possibly only put down in writing its software package information that directly relies on; Also possibly also protect the information (comprise direct dependence and rely on indirectly) of its all dependent software package; The informational needs of the software package that directly relies on for record is only installed aforesaid way and is compared layer by layer, and if the dependence description document of the software package of repairing has been put down in writing all depended software package informatins, the dependence description document that only need read software to be repaired in the then whole repair process gets final product.
For ease to the management of all softwares, of the present invention assure the reason system also utilize the dependence net to make up module construction all have installed the dependence net of file, when each time new software being installed, all the dependence with new software adds this dependence net.
Because in having the software of dependence; After some software packages are unloaded; All softwares that depend on this software package all can't normally move, and become the system rubbish file, therefore; The reason system that assures of the present invention also will rely on user unloading according to said dependence net and order the software of software package pointed to unload in the lump when the unloading user unloading is ordered software package pointed.
Above content is to combine concrete preferred implementation to the further explain that the present invention did, and can not assert that practical implementation of the present invention is confined to these explanations.For person of ordinary skill in the field of the present invention, do not breaking away under the prerequisite of the present invention design, can also make some being equal to substitute or obvious modification, and performance or purposes are identical, all should be regarded as belonging to protection scope of the present invention.

Claims (6)

1. the reason system that assures of the embedded system of a receiving terminal for digital television is characterized in that, comprising:
Data source is provided with module, is used to be provided with the data source of software package;
Synchronization module is used for the software package information list of data source extremely local synchronously;
The software package installed module, this software package installed module comprises: the installation order receiver module is used to receive user's installation order; The installing analysis module; Be used for finding installation order software package pointed in data source, and analyze all dependent software package of this software package and dependence each other according to the dependence description document in this software package according to said software package information list; Execution module is installed, is downloaded and install said dependent software package and installation order software package pointed from data source according to the analysis result of analysis module.
2. the reason system that assures according to claim 1 is characterized in that: also comprise software package reparation module, this software package is repaired module and is comprised: repair the order receiver module, be used to receive user's reparation order; The repairing analysis module finds the software package version identical software package pointed with repairing order according to said software package information list in data source, and analyzes all dependent software package of this software package according to the dependence description document in this software package; Repair execution module; Software package and the dependent software package thereof identical with its version contrasts one by one in order software package pointed and dependent software package thereof and the data source with repairing; Find out the file that damages or lack, and corresponding file in the data source is replaced or is copied in the corresponding installation directory.
3. the reason system that assures according to claim 1 is characterized in that: also comprise:
The dependence net makes up module, is used for making up all dependence nets of install software bag based on all dependence description document of install software bag;
The software package Unload module, this software package Unload module comprises: unloading order receiver module is used to receive user's unloading order; The Unloading Analysis module is used for analyzing the software package that all rely on unloading order software package pointed according to said dependence net; The unloading execution module is used for the analysis result according to the Unloading Analysis module, unloads the software package of said unloading order software package pointed and all these software packages of dependence.
4. the package management method of the embedded system of a receiving terminal for digital television is characterized in that, comprising:
Data source is provided with step: the data source that software package is set;
Synchronizing step: the software package information list in the data source is extremely local synchronously;
Software package installation steps: the installation order that receives the user; In data source, find installation order software package pointed according to said software package information list, and analyze all dependent software package of this software package and dependence each other according to the dependence description document in this software package; Download and install said dependent software package and installation order software package pointed according to analysis result from data source.
5. package management method according to claim 4 is characterized in that: also comprise software reparation step: receive user's reparation order; In data source, find the software package version identical software package pointed according to said software package information list, and analyze all dependent software package of this software package according to the dependence description document in this software package with repairing order; Software package and the dependent software package thereof identical with its version contrasts one by one in order software package pointed and dependent software package thereof and the data source with repairing; Find out the file that damages or lack, and corresponding file in the data source is replaced or is copied in the corresponding installation directory.
6. package management method according to claim 4 is characterized in that: also comprise
Dependence net construction step:, make up all dependence nets of install software bag according to all dependence description document of install software bag;
Software unloading step: receive user's unloading order; Analyze the software package that all rely on unloading order software package pointed according to said dependence net; Unload the software package of said unloading order software package pointed and all these software packages of dependence.
CN2011103634842A 2011-11-16 2011-11-16 Package management system and method for embedded system of digital television receiving terminal Pending CN102419711A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103634842A CN102419711A (en) 2011-11-16 2011-11-16 Package management system and method for embedded system of digital television receiving terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103634842A CN102419711A (en) 2011-11-16 2011-11-16 Package management system and method for embedded system of digital television receiving terminal

Publications (1)

Publication Number Publication Date
CN102419711A true CN102419711A (en) 2012-04-18

Family

ID=45944132

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103634842A Pending CN102419711A (en) 2011-11-16 2011-11-16 Package management system and method for embedded system of digital television receiving terminal

Country Status (1)

Country Link
CN (1) CN102419711A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105159729A (en) * 2015-09-25 2015-12-16 北京金山安全软件有限公司 Method and device for installing driver
CN105302530A (en) * 2014-06-17 2016-02-03 腾讯科技(深圳)有限公司 Method and apparatus for intercepting data packet on mobile terminal
CN106648719A (en) * 2015-11-02 2017-05-10 天脉聚源(北京)科技有限公司 Method and system for updating server codes
CN107800561A (en) * 2016-09-12 2018-03-13 平安科技(深圳)有限公司 Resource regeneration method and device
CN109697063A (en) * 2018-12-29 2019-04-30 深圳点猫科技有限公司 The installation method and device of third party library in the management list of the library Python
CN110908918A (en) * 2019-11-29 2020-03-24 北京网聘咨询有限公司 Unit testing method and device for multiple interdependent node
WO2021098148A1 (en) * 2019-11-24 2021-05-27 苏州浪潮智能科技有限公司 Software compiling method and apparatus, and electronic device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010029605A1 (en) * 1998-06-19 2001-10-11 Jonathan A. Forbes Software package management
CN1959640A (en) * 2005-11-03 2007-05-09 国际商业机器公司 System and method for representing user process to software package in software package management system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010029605A1 (en) * 1998-06-19 2001-10-11 Jonathan A. Forbes Software package management
CN1959640A (en) * 2005-11-03 2007-05-09 国际商业机器公司 System and method for representing user process to software package in software package management system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李晓毅: "计算机网络系统软件校正性维护", 《计算机工程与科学》, no. 4, 31 December 1989 (1989-12-31), pages 40 - 51 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302530A (en) * 2014-06-17 2016-02-03 腾讯科技(深圳)有限公司 Method and apparatus for intercepting data packet on mobile terminal
CN105302530B (en) * 2014-06-17 2019-05-31 腾讯科技(深圳)有限公司 A kind of method and apparatus of the packet of intercepted data on mobile terminals
CN105159729A (en) * 2015-09-25 2015-12-16 北京金山安全软件有限公司 Method and device for installing driver
CN106648719A (en) * 2015-11-02 2017-05-10 天脉聚源(北京)科技有限公司 Method and system for updating server codes
CN107800561A (en) * 2016-09-12 2018-03-13 平安科技(深圳)有限公司 Resource regeneration method and device
CN109697063A (en) * 2018-12-29 2019-04-30 深圳点猫科技有限公司 The installation method and device of third party library in the management list of the library Python
WO2021098148A1 (en) * 2019-11-24 2021-05-27 苏州浪潮智能科技有限公司 Software compiling method and apparatus, and electronic device and storage medium
CN110908918A (en) * 2019-11-29 2020-03-24 北京网聘咨询有限公司 Unit testing method and device for multiple interdependent node

Similar Documents

Publication Publication Date Title
CN102419711A (en) Package management system and method for embedded system of digital television receiving terminal
US8286154B2 (en) Apparatus and method for live loading of version upgrades in a process control environment
CN103744709B (en) patch loading method and device
US7823197B2 (en) Program execution device and program execution method
JP5007046B2 (en) Maintaining component-based software products
CN103019708B (en) For the system of releasing software
US20050010915A1 (en) Network-based server code auto upgrade method and system
US8555245B2 (en) Automated application generation method and system
CN105335183A (en) Software upgrade method and system
CN101382914B (en) Testing method and device for software update file
CN109491695A (en) A kind of increment updating method of integrated Android application
CN103077043B (en) A kind of method of quick Start-up and operating performance Linux
CN106648724B (en) Application program hot repair method and terminal
CN103530150A (en) Remote updating method for Linux operating system
CN103577567A (en) Method for uninstalling application and deleting garbage file in Android system
CN104239082A (en) Hot patching implementation method of embedded system
CN103019722B (en) A kind of method and device extracting Java network application AKU
CN102930190B (en) A kind of method stoping user to obtain superuser right in Android system
CN104866391A (en) Terminal information backup method and apparatus based on incremental information system
CN101719074A (en) patch-realizing method and device
CN109344619A (en) The hot restorative procedure and device of application program
CN104503772A (en) Operating system installation and test environment establishment method and device based on virtual machine
US8806477B2 (en) Space efficient software package management
CN102256242B (en) System and method for processing service application
CN103645888A (en) System and method for automatically building operation system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120418