This is the base class for yum cli. Inherits from yum.YumBase and
output.YumOutput
|
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
_checkMaybeYouMeant(self,
arg,
always_output=True)
If the update/remove argument doesn't match with case, or due to not
being installed, tell the user. |
source code
|
|
|
_installable(self,
pkg,
ematch=False)
check if the package is reasonably installable, true/false |
source code
|
|
|
_makeUsage(self)
Format an attractive usage string for yum, listing subcommand names
and summary usages. |
source code
|
|
|
_maybeYouMeant(self,
arg)
If install argument doesn't match with case, tell the user. |
source code
|
|
|
|
|
|
|
deplist(self,
args)
cli wrapper method for findDeps method takes a list of packages and
returns a formatted deplist for that package |
source code
|
|
|
doCommands(self)
Calls the base command passes the extended commands/args out to be
parsed (most notably package globs). |
source code
|
|
|
doRepoSetup(self,
thisrepo=None,
dosack=1)
grabs the repomd.xml for each enabled repository and sets up the
basics of the repository |
source code
|
|
|
doShell(self)
do a shell-like interface for yum commands |
source code
|
|
|
doTransaction(self)
takes care of package downloading, checking, user confirmation and
actually RUNNING the transaction |
source code
|
|
|
downgradePkgs(self,
userlist)
Attempts to take the user specified list of packages/wildcards and
downgrade them. |
source code
|
|
|
erasePkgs(self,
userlist)
take user commands and populate a transaction wrapper with packages
to be erased/removed |
source code
|
|
|
errorSummary(self,
errstring)
parse the error string for 'interesting' errors which can be grouped,
such as disk space issues |
source code
|
|
|
getOptionsConfig(self,
args)
parses command line arguments, takes cli args: sets up self.conf and
self.cmds as well as logger objects in base instance |
source code
|
|
|
gpgsigcheck(self,
pkgs)
Perform GPG signature verification on the given packages, installing
keys if possible |
source code
|
|
|
installGroups(self,
grouplist)
for each group requested do 'selectGroup' on them. |
source code
|
|
|
installPkgs(self,
userlist)
Attempts to take the user specified list of packages/wildcards and
install them, or if they are installed, update them to a newer
version. |
source code
|
|
|
localInstall(self,
filelist,
updateonly=0)
handles installs/updates of rpms provided on the filesystem in a
local dir (ie: not from a repo) |
source code
|
|
|
parseCommands(self)
reads self.cmds and parses them out to make sure that the requested
base command + argument makes any sense at all |
source code
|
|
|
provides(self,
args)
use the provides methods in the rpmdb and pkgsack to produce a list
of items matching the provides strings. |
source code
|
|
|
|
|
reinstallPkgs(self,
userlist)
Attempts to take the user specified list of packages/wildcards and
reinstall them. |
source code
|
|
|
|
|
resolveDepCli(self,
args)
returns a package (one per user arg) that provide the supplied arg |
source code
|
|
|
returnGroupInfo(self,
userlist)
returns complete information on a list of groups |
source code
|
|
|
|
|
returnPkgLists(self,
extcmds,
installed_available=False)
Returns packages lists based on arguments on the cli.returns a
GenericHolder instance with the following lists defined:
available = list of packageObjects
installed = list of packageObjects
updates = tuples of packageObjects (updating, installed)
extras = list of packageObjects
obsoletes = tuples of packageObjects (obsoleting, installed)
recent = list of packageObjects |
source code
|
|
|
search(self,
args)
cli wrapper method for module search function, searches simple text
tags in a package object |
source code
|
|
|
|
|
updatePkgs(self,
userlist,
quiet=0)
take user commands and populate transaction wrapper with packages to
be updated |
source code
|
|
|
|
Inherited from yum.YumBase :
__del__ ,
add_enable_repo ,
bestPackagesFromList ,
buildTransaction ,
cleanExpireCache ,
cleanHeaders ,
cleanMetadata ,
cleanPackages ,
cleanRpmDB ,
cleanSqlite ,
cleanUsedHeadersPackages ,
close ,
closeRpmDB ,
costExcludePackages ,
deselectGroup ,
disablePlugins ,
doConfigSetup ,
doFileLogSetup ,
doGenericSetup ,
doGroupLists ,
doGroupSetup ,
doLock ,
doLoggingSetup ,
doPackageLists ,
doPluginSetup ,
doRpmDBSetup ,
doSackFilelistPopulate ,
doSackSetup ,
doUnlock ,
doUpdateSetup ,
downgrade ,
downgradeLocal ,
downloadHeader ,
downloadPkgs ,
excludePackages ,
findDeps ,
getInstalledPackageObject ,
getKeyForPackage ,
getKeyForRepo ,
getPackageObject ,
getReposFromConfig ,
getReposFromConfigFile ,
gpgKeyCheck ,
groupRemove ,
groupUnremove ,
history_redo ,
history_undo ,
includePackages ,
install ,
installLocal ,
processTransaction ,
readRepoConfig ,
reinstall ,
reinstallLocal ,
remove ,
returnInstalledPackagesByDep ,
returnPackageByDep ,
returnPackagesByDep ,
runTransaction ,
searchGenerator ,
searchPackageProvides ,
searchPackageTags ,
searchPackages ,
selectGroup ,
setCacheDir ,
sigCheckPkg ,
update ,
verifyChecksum ,
verifyHeader ,
verifyPkg ,
verifyTransaction ,
yumUtilsMsg
Inherited from yum.YumBase (private):
_add_prob_flags ,
_add_up_txmbr ,
_askForGPGKeyImport ,
_at_groupdowngrade ,
_at_groupinstall ,
_at_groupremove ,
_bestPackageFromList ,
_buildDepTree ,
_checkMissingObsoleted ,
_checkSignatures ,
_checkUpdatedLeftovers ,
_check_new_update_provides ,
_cleanFilelist ,
_cleanFiles ,
_delRepos ,
_delSacks ,
_deleteTs ,
_doSkipBroken ,
_doTestTransaction ,
_doTransaction ,
_does_this_update ,
_downloadPackages ,
_find_obsoletees ,
_getConfig ,
_getDepsToRemove ,
_getGroups ,
_getHistory ,
_getPackagesToRemove ,
_getPackagesToRemoveAllArch ,
_getRepos ,
_getRpmDB ,
_getSacks ,
_getTags ,
_getUpdates ,
_is_local_exclude ,
_limit_installonly_pkgs ,
_lock ,
_nevra_kwarg_parse ,
_newer_update_in_trans ,
_pkg2obspkg ,
_printDepTree ,
_printTransaction ,
_removePoFromTransaction ,
_retrievePublicKey ,
_rpmdb_warn_checks ,
_run_rpm_check_debug ,
_setGroups ,
_skipFromTransaction ,
_skipPackagesWithProblems ,
_test_loop ,
_transactionDataFactory ,
_unlock
Inherited from yum.depsolve.Depsolve :
allowedMultipleInstalls ,
cprof_resolveDeps ,
doTsSetup ,
initActionTs ,
isPackageInstalled ,
populateTs ,
prof_resolveDeps ,
resolveDeps ,
whatProvides
Inherited from yum.depsolve.Depsolve (private):
_checkConflicts ,
_checkFileRequires ,
_checkInstall ,
_checkRemove ,
_compare_providers ,
_delTsInfo ,
_dscb_procConflict ,
_dscb_procReq ,
_err_missing_requires ,
_getActionTs ,
_getTs ,
_getTsInfo ,
_isPackageInstalled ,
_prco_req2req ,
_processConflict ,
_processReq ,
_quickWhatProvides ,
_requiringFromInstalled ,
_requiringFromTransaction ,
_resolveRequires ,
_setTsInfo ,
_undoDepInstalls
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
Inherited from output.YumOutput :
calcColumns ,
depListOutput ,
displayPkgsInGroups ,
download_callback_total_cb ,
failureReport ,
fmtColumns ,
fmtKeyValFill ,
fmtSection ,
format_number ,
historyInfoCmd ,
historyInfoCmdPkgsAltered ,
historyListCmd ,
historySummaryCmd ,
infoOutput ,
interrupt_callback ,
listPkgs ,
listTransaction ,
matchcallback ,
matchcallback_verbose ,
postTransactionOutput ,
printtime ,
reportDownloadSize ,
setupKeyImportCallbacks ,
setupProgessCallbacks ,
setupProgressCallbacks ,
simpleEnvraList ,
simpleList ,
simpleProgressBar ,
updatesObsoletesList ,
userconfirm
Inherited from output.YumOutput (private):
_calcDataPkgColumns ,
_cli_confirm_gpg_key_import ,
_col_data ,
_displayPkgsFromNames ,
_enc ,
_group_names2aipkgs ,
_highlight ,
_historyInfoCmd ,
_history_get_transaction ,
_history_get_transactions ,
_history_list_transactions ,
_history_uiactions ,
_pwd_ui_username ,
_sub_highlight
|