Part III. Reference of Interface to YaST2 Package Manager
Reference of Interface to YaST2 Package Manager
Table of Contents
XV. Access to Installation Sources
Pkg::SourceSetRamCache
- Allow/prevent InstSrces from caching package metadata on ramdisk
Pkg::SourceStartManager
- Make sure the InstSrcManager is up and knows all available InstSrces.
Pkg::SourceStartCache
- Make sure the InstSrcManager is up, and return the list of SrcIds.
Pkg::SourceGetCurrent
- Return the list of all enabled InstSrc Ids.
Pkg::SourceFinishAll
- Disable all InstSrces.
Pkg::SourceGeneralData
- Get general data about the source
Pkg::SourceMediaData
- Return media data about the source
Pkg::SourceProductData
- Return Product data about the source
Pkg::SourceProduct
- Get Product info
Pkg::SourceProvideFile
- Make a file available at the local filesystem
Pkg::SourceProvideDir
- make a directory available at the local filesystem
Pkg::SourceChangeUrl
- Change Source URL
Pkg::SourceInstallOrder
- Explicitly set an install order.
Pkg::SourceCacheCopyTo
- Copy cache data of all installation sources to the target
Pkg::SourceScan
- Scan a Source Media
Pkg::SourceCreate
- Create a Source
Pkg::SourceSetEnabled
- Set the default activation state of an InsrSrc.
Pkg::SourceFinish
- Disable an Installation Source
Pkg::SourceDelete
- Delete a Source
Pkg::SourceEditGet
- Get state of Sources
Pkg::SourceEditSet
- Rearange known InstSrces rank and default state
XVI. PkgModuleFunctions constructor, destructor and call handling
Pkg::InstSysMode
- Set packagemanager to "inst-sys" mode
Pkg::SetLocale
- Set Prefered Locale
Pkg::GetLocale
- get the currently preferred locale
Pkg::SetAdditionalLocales
- set list of additional locales
Pkg::GetAdditionalLocales
- return list of additional locales
Pkg::LastError
- get current error as string
Pkg::LastErrorDetails
- get current error details as string
Pkg::LastErrorId
- get current error as id string
XVII. Access to Package Selection Manager
Pkg::GetSelections
- Return list of selections matching given status
Pkg::SelectionData
- Get Selection Data
Pkg::SelectionContent
- Get list of packages listed in a selection
Pkg::SetSelection
- Set a new selection
Pkg::ClearSelection
- Clear a selected selection
Pkg::ActivateSelections
- Activate all selected selections
XVIII. Access to packagemanager
Pkg::PkgQueryProvides
- List all package instances providing 'tag'
Pkg::PkgMediaNames
- Return names of sources in installation order
Pkg::PkgMediaSizes
- Return size of packages to be installed
Pkg::PkgMediaCount
- Return number of packages to be installed
Pkg::IsProvided
- returns 'true' if the tag is provided in the installed system
Pkg::IsSelected
- returns a 'true' if the tag is selected for installation
Pkg::IsAvailable
- Check if package (tag) is available
Pkg::DoProvide
- Install a list of tags to the system
Pkg::DoRemove
- Removes a list of tags from the system
Pkg::PkgSummary
- Get summary (aka label) of a package
Pkg::PkgVersion
- Get version (better: edition) of a package
Pkg::PkgSize
- Get (installed) size of a package
Pkg::PkgGroup
- Get rpm group of a package
Pkg::PkgProperties
- Return information about a package
Pkg::PkgLocation
- Get file location of a package in the source
Pkg::PkgGetFilelist
- Get File List of a package
Pkg::SaveState
- Save the current selection state
Pkg::RestoreState
- Restore Saved state
Pkg::ClearSaveState
- clear a saved state (to reduce memory consumption)
Pkg::IsManualSelection
- Check Status of Selections and if they have changed
Pkg::PkgAnyToDelete
- Check if there are any package to be deleted
Pkg::AnyToInstall
- Check if there are any package to be installed
Pkg::FilterPackages
- Get list of packages depending on how they were selected
Pkg::GetPackages
- Get list of packages (installed, selected, available)
Pkg::PkgUpdateAll
- Update Packages marked for installation
Pkg::PkgInstall
- Select package for installation
Pkg::PkgSrcInstall
- Select source of package for installation
Pkg::PkgDelete
- Select package for deletion
Pkg::PkgTaboo
- Set package to taboo
Pkg::PkgNeutral
- Set package to neutral (drop install/delete flags)
Pkg::Reset
- Reset most internal stuff on the package manager.
Pkg::PkgSolve
- Solve current package dependencies
Pkg::PkgSolveCheckTargetOnly
- Solve packages currently installed on target system.
Pkg::PkgSolveErrors
- Returns number of fails
Pkg::PkgCommit
- Commit package changes (actually install/delete packages)
Pkg::GetBackupPath
- get current path for update backup of rpm config files
Pkg::SetBackupPath
- set current path for update backup of rpm config files
Pkg::CreateBackups
- whether to create package backups during install or removal
Pkg::PkgGetLicenseToConfirm
- Return Licence Text
Pkg::PkgGetLicensesToConfirm
- Return Licence Text of several packages
Pkg::RpmChecksig
- Check signature of RPM
XIX. Access to Installation Target
Pkg::TargetInit
- Initialize Target
Pkg::TargetFinish
- finish target usage
Pkg::TargetInstall
- install rpm package by filename
Pkg::TargetRemove
- Install package by name
Pkg::TargetLogfile
- init logfile for target
Pkg::TargetCapacity
- return capacity of partition at directory
Pkg::TargetUsed
- Return usage of partition at directory
Pkg::TargetBlockSize
- Return block size of partition at directory
Pkg::TargetUpdateInf
- Return content of update.inf (usually <destdir>/var/lib/YaST/update.inf)
Pkg::TargetProducts
- Return list of maps of all installed products
Pkg::TargetRebuildDB
- call "rpm --rebuilddb"
Pkg::TargetInitDU
- Initialize Disk Usage Calculation
Pkg::TargetGetDU
- return current DU calculations
Pkg::TargetFileHasOwner
- returns the (first) package
XX. Access to Patch Manager
Pkg::YouStatus
- get map with status information
Pkg::YouSetServer
- Set server to be used for getting patches.
Pkg::YouGetUserPassword
- Get username and password needed for access to server.
Pkg::YouSetUserPassword
- Set username and password needed for access to server.
Pkg::YouGetServers
- get urls of patch servers
Pkg::YouGetDirectory
- retrieve directory file listing all available patches
Pkg::YouRetrievePatchInfo
- retrieve patches
Pkg::YouProcessPatches
- Download and install patches.
Pkg::YouSelectPatches
- select patches based on types.
Pkg::YouRemovePackages
- remove downloaded packages.