YaST2 Package Manager    ch01.htmlNext YaST2 Package Manager
Package-Manager Builtins
SUSE Linux AG
YaST2 Team
 SUSE Linux AG Copyright © 2004  SUSE Linux AG
Table of Contents
ch01.html1. Package Manager ch01.html#package-bindings1.1. Using the package manager ch01.html#id24768281.1.1. Introduction ch01.html#id24775631.1.2. Implementation ch01.html#id24771661.1.3. Querying the package manager ch01.html#id24771721.1.3.1. Checking an installed package ch01.html#id25237821.1.3.2. Checking the installation sources ch01.html#id25238121.1.3.3. Deleting a package ch01.html#id25238531.1.3.4. Installing a package ch01.html#id25238931.1.3.5. Solving dependencies ch01.html#id25239191.1.3.6. Committing the changes ch01.html#id25239891.1.4. Example code Source.htmlI. Access to Installation Sources Source_SourceSetRamCache.htmlPkg::SourceSetRamCache  - Allow/prevent InstSrces from caching package metadata on ramdisk Source_SourceStartManager.htmlPkg::SourceStartManager  - Make sure the InstSrcManager is up and knows all available InstSrces. Source_SourceStartCache.htmlPkg::SourceStartCache  - Make sure the InstSrcManager is up, and return the list of SrcIds. Source_SourceCleanupBroken.htmlPkg::SourceCleanupBroken  - Clean up all sources that were not properly restored on the lastcall of SourceStartManager or SourceStartCache. Source_SourceGetCurrent.htmlPkg::SourceGetCurrent  - Return the list of all InstSrc Ids. Source_SourceReleaseAll.htmlPkg::SourceReleaseAll  - Release all medias hold by all sources Source_SourceFinishAll.htmlPkg::SourceFinishAll  - Disable all InstSrces. Source_SourceGeneralData.htmlPkg::SourceGeneralData  - Get general data about the source Source_SourceMediaData.htmlPkg::SourceMediaData  - Return media data about the source Source_SourceProductData.htmlPkg::SourceProductData  - Return Product data about the source Source_SourceProduct.htmlPkg::SourceProduct  - Get Product info Source_SourceProvideFile.htmlPkg::SourceProvideFile  - Make a file available at the local filesystem Source_SourceProvideOptionalFile.htmlPkg::SourceProvideOptionalFile  - Make an optional file available at the local filesystem Source_SourceProvideDir.htmlPkg::SourceProvideDir  - make a directory available at the local filesystem Source_SourceChangeUrl.htmlPkg::SourceChangeUrl  - Change Source URL Source_SourceInstallOrder.htmlPkg::SourceInstallOrder  - Explicitly set an install order. Source_SourceCacheCopyTo.htmlPkg::SourceCacheCopyTo  - Copy cache data of all installation sources to the target Source_SourceScan.htmlPkg::SourceScan  - Scan a Source Media Source_SourceCreate.htmlPkg::SourceCreate  - Create a Source Source_SourceSetEnabled.htmlPkg::SourceSetEnabled  - Set the default activation state of an InsrSrc. Source_SourceSetAutorefresh.htmlPkg::SourceSetAutorefresh  - Set whether this source should automaticaly refresh it'smeta data when it gets enabled. (default true, if not CD/DVD) Source_SourceFinish.htmlPkg::SourceFinish  - Disable an Installation Source Source_SourceRefreshNow.htmlPkg::SourceRefreshNow  - Attempt to immediately refresh a Source Source_SourceDelete.htmlPkg::SourceDelete  - Delete a Source Source_SourceEditGet.htmlPkg::SourceEditGet  - Get state of Sources Source_SourceEditSet.htmlPkg::SourceEditSet  - Rearange known InstSrces rank and default state Source_SourceMoveDownloadArea.htmlPkg::SourceMoveDownloadArea  - Move download area of CURL-based sources to specified directory PkgModuleFunctions.htmlII. PkgModuleFunctions constructor, destructor and call handling PkgModuleFunctions_Connect.htmlPkg::Connect  - Explicitly connect to the package manager, if it is already connected do nothing PkgModuleFunctions_InstSysMode.htmlPkg::InstSysMode  - Set packagemanager to "inst-sys" mode PkgModuleFunctions_SetLocale.htmlPkg::SetLocale  - Set Prefered Locale PkgModuleFunctions_GetLocale.htmlPkg::GetLocale  - get the currently preferred locale PkgModuleFunctions_SetAdditionalLocales.htmlPkg::SetAdditionalLocales  - set list of additional locales PkgModuleFunctions_GetAdditionalLocales.htmlPkg::GetAdditionalLocales  - return list of additional locales PkgModuleFunctions_LastError.htmlPkg::LastError  - get current error as string PkgModuleFunctions_LastErrorDetails.htmlPkg::LastErrorDetails  - get current error details as string PkgModuleFunctions_LastErrorId.htmlPkg::LastErrorId  - get current error as id string PkgModuleFunctions_Init.htmlPkg::Init  - completely initialize package management, throw away the current status Selection.htmlIII. Access to Package Selection Manager Selection_GetSelections.htmlPkg::GetSelections  - Return list of selections matching given status Selection_GetPatterns.htmlPkg::GetPatterns  - Return list of patterns matching given status Selection_PatternData.htmlPkg::PatternData  - Get Pattern Data Selection_SelectionData.htmlPkg::SelectionData  - Get Selection Data Selection_SelectionContent.htmlPkg::SelectionContent  - Get list of packages listed in a selection Selection_SetSelection.htmlPkg::SetSelection  - Set a new selection Selection_ClearSelection.htmlPkg::ClearSelection  - Clear a selected selection Selection_ActivateSelections.htmlPkg::ActivateSelections  - Activate all selected selections Package.htmlIV. Access to packagemanager Package_PkgQueryProvides.htmlPkg::PkgQueryProvides  - List all package instances providing 'tag' Package_PkgMediaNames.htmlPkg::PkgMediaNames  - Return names of sources in installation order Package_PkgMediaSizes.htmlPkg::PkgMediaSizes  - Return size of packages to be installed Package_PkgMediaCount.htmlPkg::PkgMediaCount  - Return number of packages to be installed Package_IsProvided.htmlPkg::IsProvided  - returns  'true' if the tag is provided by a package in the installed system Package_IsSelected.htmlPkg::IsSelected  - returns a 'true' if the tag is selected for installation Package_IsAvailable.htmlPkg::IsAvailable  - Check if package (tag) is available Package_DoProvide.htmlPkg::DoProvide  - Install a list of packages to the system Package_DoRemove.htmlPkg::DoRemove  - Removes a list of packges from the system Package_PkgSummary.htmlPkg::PkgSummary  - Get summary (aka label) of a package Package_PkgVersion.htmlPkg::PkgVersion  - Get version (better: edition) of a package Package_PkgSize.htmlPkg::PkgSize  - Get (installed) size of a package Package_PkgGroup.htmlPkg::PkgGroup  - Get rpm group of a package Package_PkgProperties.htmlPkg::PkgProperties  - Return information about a package Package_PkgLocation.htmlPkg::PkgLocation  - Get file location of a package in the source Package_PkgPath.htmlPkg::PkgPath  - Path to a package path in the source Package_PkgGetFilelist.htmlPkg::PkgGetFilelist  - Get File List of a package Package_SaveState.htmlPkg::SaveState  - Save the current selection state Package_RestoreState.htmlPkg::RestoreState  - Restore Saved state Package_ClearSaveState.htmlPkg::ClearSaveState  - clear a saved state (to reduce memory consumption) Package_IsManualSelection.htmlPkg::IsManualSelection  - Check Status of Selections and if they have changed Package_PkgAnyToDelete.htmlPkg::PkgAnyToDelete  - Check if there are any package to be deleted Package_AnyToInstall.htmlPkg::AnyToInstall  - Check if there are any package to be installed Package_FilterPackages.htmlPkg::FilterPackages  - Get list of packages depending on how they were selected Package_GetPackages.htmlPkg::GetPackages  - Get list of packages (installed, selected, available, to be removed) Package_PkgUpdateAll.htmlPkg::PkgUpdateAll  - Update Packages marked for installation Package_PkgInstall.htmlPkg::PkgInstall  - Select package for installation Package_PkgSrcInstall.htmlPkg::PkgSrcInstall  - Select source of package for installation Package_PkgDelete.htmlPkg::PkgDelete  - Select package for deletion Package_PkgTaboo.htmlPkg::PkgTaboo  - Set package to taboo Package_PkgNeutral.htmlPkg::PkgNeutral  - Set package to neutral (drop install/delete flags) Package_Reset.htmlPkg::Reset  - Reset most internal stuff on the package manager. Package_PkgSolve.htmlPkg::PkgSolve  - Solve current package dependencies Package_PkgEstablish.htmlPkg::PkgEstablish  - establish the pool state Package_PkgFreshen.htmlPkg::PkgFreshen  - check all package freshens and schedule matching ones for installation Package_PkgSolveCheckTargetOnly.htmlPkg::PkgSolveCheckTargetOnly  - Solve packages currently installed on target system. Package_PkgSolveErrors.htmlPkg::PkgSolveErrors  - Returns number of fails Package_PkgCommit.htmlPkg::PkgCommit  - Commit package changes (actually install/delete packages) Package_GetBackupPath.htmlPkg::GetBackupPath  - get current path for update backup of rpm config files Package_SetBackupPath.htmlPkg::SetBackupPath  - set current path for update backup of rpm config files Package_CreateBackups.htmlPkg::CreateBackups  - whether to create package backups during install or removal Package_PkgGetLicenseToConfirm.htmlPkg::PkgGetLicenseToConfirm  - Return Licence Text Package_PkgGetLicensesToConfirm.htmlPkg::PkgGetLicensesToConfirm  - Return Licence Text of several packages Package_PkgMarkLicenseConfirmed.htmlPkg::PkgMarkLicenseConfirmed  - Mark licence of the package confirmed Package_RpmChecksig.htmlPkg::RpmChecksig  - Check signature of RPM Resolvable.htmlV. Access to packagemanager Resolvable_ResolvableInstall.htmlPkg::ResolvableInstall  - Install all resolvables with selected name and kind Resolvable_ResolvableRemove.htmlPkg::ResolvableRemove  - Removes all resolvables with selected name and kind Resolvable_ResolvableNeutral.htmlPkg::ResolvableNeutral  - Remove all transactions from all resolvables with selected name and kind Resolvable_ResolvableSetSoftLock.htmlPkg::ResolvableSetSoftLock  - Soft lock - it prevents the solver from re-selecting itemif it's recommended (if it's required it will be selected). Resolvable_ResolvableProperties.htmlPkg::ResolvableProperties  - Return properties of resolvable Resolvable_ResolvablePreselectPatches.htmlPkg::ResolvablePreselectPatches  - Preselect patches for auto online update during the installation Target.htmlVI. Access to Installation Target Target_TargetInit.htmlPkg::TargetInit  - Initialize Target Target_TargetDisableSources.htmlPkg::TargetDisableSources  - Disable all sources configured on the target. Typicallyused on upgrade. Target_TargetFinish.htmlPkg::TargetFinish  - finish target usage Target_TargetInstall.htmlPkg::TargetInstall  - install rpm package by filename Target_TargetRemove.htmlPkg::TargetRemove  - Install package by name Target_TargetLogfile.htmlPkg::TargetLogfile  - init logfile for target Target_TargetCapacity.htmlPkg::TargetCapacity  - return capacity of partition at directory Target_TargetUsed.htmlPkg::TargetUsed  - Return usage of partition at directory Target_TargetBlockSize.htmlPkg::TargetBlockSize  - Return block size of partition at directory Target_TargetProducts.htmlPkg::TargetProducts  - Return list of maps of all installed products Target_TargetRebuildDB.htmlPkg::TargetRebuildDB  - call "rpm --rebuilddb" Target_TargetInitDU.htmlPkg::TargetInitDU  - Initialize Disk Usage Calculation Target_TargetGetDU.htmlPkg::TargetGetDU  - return current DU calculations Target_TargetFileHasOwner.htmlPkg::TargetFileHasOwner  - returns true if the file is owned by a package Patch.htmlVII. Access to Patch Manager Patch_YouStatus.htmlPkg::YouStatus  - get map with status information Patch_YouSetServer.htmlPkg::YouSetServer  - Set server to be used for getting patches. Patch_YouGetUserPassword.htmlPkg::YouGetUserPassword  - Get username and password needed for access to server. Patch_YouSetUserPassword.htmlPkg::YouSetUserPassword  - Set username and password needed for access to server. Patch_YouGetServers.htmlPkg::YouGetServers  - get urls of patch servers Patch_YouGetDirectory.htmlPkg::YouGetDirectory  - retrieve directory file listing all available patches Patch_YouRetrievePatchInfo.htmlPkg::YouRetrievePatchInfo  - retrieve patches Patch_YouProcessPatches.htmlPkg::YouProcessPatches  - Download and install patches. Patch_YouSelectPatches.htmlPkg::YouSelectPatches  - select patches based on types. Patch_YouRemovePackages.htmlPkg::YouRemovePackages  - remove downloaded packages. Callbacks.htmlVIII. Register Package Manager callbacks Callbacks_CallbackImportGpgKey.htmlPkg::CallbackImportGpgKey  - Register callback function Callbacks_CallbackAcceptUnknownGpgKey.htmlPkg::CallbackAcceptUnknownGpgKey  - Register callback function Callbacks_CallbackAcceptUnsignedFile.htmlPkg::CallbackAcceptUnsignedFile  - Register callback function Callbacks_CallbackAcceptFileWithoutChecksum.htmlPkg::CallbackAcceptFileWithoutChecksum  - Register callback function Callbacks_CallbackAcceptVerificationFailed.htmlPkg::CallbackAcceptVerificationFailed  - Register callback function Callbacks_CallbackTrustedKeyAdded.htmlPkg::CallbackTrustedKeyAdded  - Register callback function Callbacks_CallbackTrustedKeyRemoved.htmlPkg::CallbackTrustedKeyRemoved  - Register callback function    ch01.htmlNext    Chapter 1. Package Manager 