Module yumcommands
[hide private]
[frames] | no frames]

Module yumcommands

source code

Classes for subcommands of the yum command line interface.

Classes [hide private]
  YumCommand
  InstallCommand
  UpdateCommand
  InfoCommand
  ListCommand
  EraseCommand
  GroupCommand
  GroupListCommand
  GroupInstallCommand
  GroupRemoveCommand
  GroupInfoCommand
  MakeCacheCommand
  CleanCommand
  ProvidesCommand
  CheckUpdateCommand
  SearchCommand
  UpgradeCommand
  LocalInstallCommand
  ResolveDepCommand
  ShellCommand
  DepListCommand
  RepoListCommand
  HelpCommand
  ReInstallCommand
  DowngradeCommand
  VersionCommand
  HistoryCommand
  CheckRpmdbCommand
Functions [hide private]
 
checkRootUID(base)
Verify that the program is being run by the root user.
source code
 
checkGPGKey(base) source code
 
checkPackageArg(base, basecmd, extcmds) source code
 
checkItemArg(base, basecmd, extcmds) source code
 
checkGroupArg(base, basecmd, extcmds) source code
 
checkCleanArg(base, basecmd, extcmds) source code
 
checkShellArg(base, basecmd, extcmds)
Verify that the arguments given to 'yum shell' are valid.
source code
 
_add_pkg_simple_list_lens(data, pkg, indent='')
Get the length of each pkg's column.
source code
 
_list_cmd_calc_columns(base, ypl)
Work out the dynamic size of the columns to pass to fmtColumns.
source code
Variables [hide private]
  __package__ = None
Function Details [hide private]

checkRootUID(base)

source code 

Verify that the program is being run by the root user.

Parameters:
  • base - a YumBase object.

checkShellArg(base, basecmd, extcmds)

source code 

Verify that the arguments given to 'yum shell' are valid.

yum shell can be given either no args, or exactly one argument, which is the name of a file. If these are not met, raise cli.CliError.

_add_pkg_simple_list_lens(data, pkg, indent='')

source code 

Get the length of each pkg's column. Add that to data. This "knows" about simpleList and printVer.