Method of complete function-based multi-version software management on Phytium platform

A software management, multi-version technology, applied in the field of operating systems, can solve the problem of modularity not being able to apply Linux distributions, etc., to achieve the effect of improving efficiency

Active Publication Date: 2018-09-28
KYLIN CORP
View PDF4 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But this method is currently only used in the Fedora system, modularity cannot be applied to other Linux distributions

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method of complete function-based multi-version software management on Phytium platform
  • Method of complete function-based multi-version software management on Phytium platform
  • Method of complete function-based multi-version software management on Phytium platform

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0064] The expression is actually a function, and the function takes environment variables, source code addresses, build dependencies, etc. as parameters of the function. Therefore, in the process of building the package, the required environment variables will be read and the source code will be obtained. An example of a function expression, that is, example 1, is as follows:

[0065]

[0066] The process of writing function expressions is as follows: figure 2 Shown:

[0067] S101, parameter definition

[0068] First define all the parameters required for software construction. The parameters are all the dependent packages required to build the software package. The first line of the above example shows that the three dependencies of stdenv, feturl and perl are required to build the hello package. Pass the names of dependent packages and dependent environment variables as arguments.

[0069] S102, calling the building function

[0070] Call the component function fro...

example 3

[0096] After the function expression and the build script are written, run the build command to build; the built example 3 code is as follows:

[0097] 1ky-build-A hello

[0098] The package build process is as follows Figure 4 Shown:

[0099] S301. Create a build result symbolic link;

[0100] During the build process, a hidden resulting symlink is first created.

[0101] S302. Analyzing construction parameters;

[0102] Parse the parameters of the build command; the "-A" parameter in the above sample code indicates that the "hello" attribute is selected.

[0103] S303. Read and parse the function expression;

[0104] Read the written function expression, analyze the function definition in the expression, including function parameters and specific statements in the function expression.

[0105] S304, execute the build script;

[0106] Execute the build script; in the above example, builder.sh is executed. During the execution of the build script, the environment varia...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method of complete function-based multi-version software management on a Phytium platform. The method comprises the steps of: S1, carrying out construction of software packages on the basis of a complete function; and S2, generating corresponding hash values according to different construction environments of all the software packages, and using the hash values to mark the corresponding software packages. Compared with the prior art, the method has the advantages that the generated packages do not depend on existing software of an operating system, dependency does notexist among the packages, coexistence of multiple versions of software without a conflict can be allowed, and installation, upgrading and uninstallation of a user on software of a version needed thereby are facilitated.

Description

technical field [0001] The invention belongs to the technical field of operating systems, and in particular relates to a complete function-based multi-version software management method on a Feiteng platform. Background technique [0002] Most modern Linux operating systems provide a centralized package management mechanism to help users search, install and manage software. Software is usually stored in a warehouse in the form of packages, and the use and management of software packages is called package management. The basic components of a Linux package usually include: shared libraries, applications, services, and documents. Package management is often not limited to one-time installations of software, but also includes tools for upgrading installed packages. Package repositories help ensure that code has been audited on the system it is used on and managed by the software developer or package maintainer. Most package management systems are built on a collection of pac...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F8/61G06F8/65H04L29/08
CPCH04L67/02H04L67/06G06F8/61G06F8/65
Inventor 王华功李俊良薛晋泽李志伟魏立峰
Owner KYLIN CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products