Skip to content

Latest commit

 

History

History
64 lines (42 loc) · 1.25 KB

File metadata and controls

64 lines (42 loc) · 1.25 KB

Project Name

[ English | 简体中文 ]

Package installation manager module for openvela's XMS module.

Table of Contents

Features

  • Provides package installation functionality
  • Provides package information querying capability
  • Provides package uninstallation capability

Examples

  • Package management can be done through the command line

    • Install a package:

      pm install [packagename]
      
    • Query which packages are installed:

      pm list
      
  • Use the package management tool through source code

    • Install a package using the following format:

      #include "pm/PackageManager.h"
      
      PackageManager pm;
      InstallParam parms;
      pm.installPackage(parms);
      
    • Retrieve all package-related information with:

      #include "pm/PackageManager.h"
      
      PackageManager pm;
      std::vector<PackageInfo> pgInfos;
      pm.getAllPackageInfo(&pgInfos);
      
    • Uninstall a package using:

      #include "pm/PackageManager.h"
      
      PackageManager pm;
      UninstallParam parms;
      pm.uninstallPackage(parms);