Classes for subcommands of the yum command line interface.
Verify that the program is being run by the root user.
Parameters: | base – a yum.Yumbase object. |
---|---|
Raises : | cli.CliError |
Verify that there are gpg keys for the enabled repositories in the rpm database.
Parameters: | base – a yum.Yumbase object. |
---|---|
Raises : | cli.CliError |
Verify that extcmds contains the name of at least one package for basecmd to act on.
Parameters: |
|
---|---|
Raises : | cli.CliError |
Verify that extcmds contains the name of at least one item for basecmd to act on. Generally, the items are command-line arguments that are not the name of a package, such as a file name passed to provides.
Parameters: |
|
---|---|
Raises : | cli.CliError |
Verify that extcmds contains the name of at least one group for basecmd to act on.
Parameters: |
|
---|---|
Raises : | cli.CliError |
Verify that extcmds contains at least one argument, and that all arguments in extcmds are valid options for clean.
Parameters: |
|
---|---|
Raises : | cli.CliError |
Verify that the arguments given to ‘yum shell’ are valid. yum shell can be given either no argument, or exactly one argument, which is the name of a file.
Parameters: |
|
---|---|
Raises : | cli.CliError |
Verify that there is at least one enabled repo.
Parameters: |
|
---|---|
Raises : | cli.CliError: |
An abstract base class that defines the methods needed by the cli to execute a specific command. Subclasses must override at least getUsage() and getSummary().
Verify that various conditions are met so that the command can run.
Parameters: |
|
---|
Execute the command
Parameters: |
|
---|---|
Returns: | (exit_code, [ errors ]) |
exit_code is:
0 = we're done, exit
1 = we've errored, exit with error string
2 = we've got work yet to do, onto the next stage
Output msg the first time that this method is called, and do nothing on subsequent calls. This is to prevent duplicate messages from being printed for the same command.
Parameters: |
|
---|
Return a list of strings that are the names of the command. The command can be called from the command line by using any of these names.
Returns: | a list containing the names of the command |
---|
Return a one line summary of what the command does.
Returns: | a one line summary of what the command does |
---|
Return a usage string for the command, including arguments.
Returns: | a usage string for the command |
---|
Return whether a transaction set must be set up before the command can run
Parameters: |
|
---|---|
Returns: | True if a transaction set is needed, False otherwise |
Bases: yumcommands.YumCommand
A class containing methods needed by the cli to execute the install command.
Verify that conditions are met so that this command can run. These include that the program is being run by the root user, that there are enabled repositories with gpg keys, and that this command is called with appropriate arguments.
Parameters: |
|
---|
Execute this command.
Parameters: |
|
---|---|
Returns: | (exit_code, [ errors ]) |
exit_code is:
0 = we're done, exit
1 = we've errored, exit with error string
2 = we've got work yet to do, onto the next stage
Return a list containing the names of this command. This command can be called from the command line by using any of these names.
Returns: | a list containing the names of this command |
---|
Return a one line summary of this command.
Returns: | a one line summary of this command |
---|
Return a usage string for this command.
Returns: | a usage string for this command |
---|
Bases: yumcommands.YumCommand
A class containing methods needed by the cli to execute the update command.
Verify that conditions are met so that this command can run. These include that there are enabled repositories with gpg keys, and that this command is being run by the root user.
Parameters: |
|
---|
Execute this command.
Parameters: |
|
---|---|
Returns: | (exit_code, [ errors ]) |
exit_code is:
0 = we're done, exit
1 = we've errored, exit with error string
2 = we've got work yet to do, onto the next stage
Return a list containing the names of this command. This command can by called from the command line by using any of these names.
Returns: | a list containing the names of this command |
---|
Return a one line summary of this command.
Returns: | a one line summary of this command |
---|
Return a usage string for this command.
Returns: | a usage string for this command |
---|
Bases: yumcommands.YumCommand
A class containing methods needed by the cli to execute the distro-synch command.
Verify that conditions are met so that this command can run. These include that the program is being run by the root user, and that there are enabled repositories with gpg keys.
Parameters: |
|
---|
Execute this command.
Parameters: |
|
---|---|
Returns: | (exit_code, [ errors ]) |
exit_code is:
0 = we're done, exit
1 = we've errored, exit with error string
2 = we've got work yet to do, onto the next stage
Return a list containing the names of this command. This command can be called from the command line by using any of these names.
Returns: | a list containing the names of this command |
---|
Return a one line summary of this command.
Returns: | a one line summary of this command |
---|
Return a usage string for this command.
Returns: | a usage string for this command |
---|
Bases: yumcommands.YumCommand
A class containing methods needed by the cli to execute the update command.
Execute this command.
Parameters: |
|
---|---|
Returns: | (exit_code, [ errors ]) |
exit_code is:
0 = we're done, exit
1 = we've errored, exit with error string
2 = we've got work yet to do, onto the next stage
Return a list containing the names of this command. This command can be called from the command line by using any of these names.
Returns: | a list containing the names of this command |
---|
Return a one line summary of this command.
Returns: | a one line summary of this command |
---|
Return a usage string for this command.
Returns: | a usage string for this command |
---|
Return whether a transaction set must be set up before this command can run.
Parameters: |
|
---|---|
Returns: | True if a transaction set is needed, False otherwise |
Bases: yumcommands.InfoCommand
A class containing methods needed by the cli to execute the list command.
Return a list containing the names of this command. This command can be called from the command line by using any of these names.
Returns: | a list containing the names of this command |
---|
Return a one line summary of this command.
Returns: | a one line summary of this command |
---|
Bases: yumcommands.YumCommand
A class containing methods needed by the cli to execute the erase command.
Verify that conditions are met so that this command can run. These include that the program is being run by the root user, and that this command is called with appropriate arguments.
Parameters: |
|
---|
Execute this command.
Parameters: |
|
---|---|
Returns: | (exit_code, [ errors ]) |
exit_code is:
0 = we're done, exit
1 = we've errored, exit with error string
2 = we've got work yet to do, onto the next stage
Return a list containing the names of this command. This command can be called from the command line by using any of these names.
Returns: | a list containing the names of this command |
---|
Return a one line summary of this command.
Returns: | a one line summary of this command |
---|
Return a usage string for this command.
Returns: | a usage string for this command |
---|
Return whether a transaction set must be set up before this command can run.
Parameters: |
|
---|---|
Returns: | True if a transaction set is needed, False otherwise |
Return whether a transaction set for removal only must be set up before this command can run.
Parameters: |
|
---|---|
Returns: | True if a remove-only transaction set is needed, False otherwise |
Bases: yumcommands.YumCommand
Single sub-command interface for most groups interaction.
Verify that conditions are met so that this command can run. The exact conditions checked will vary depending on the subcommand that is being called.
Parameters: |
|
---|
Execute this command.
Parameters: |
|
---|---|
Returns: | (exit_code, [ errors ]) |
exit_code is:
0 = we're done, exit
1 = we've errored, exit with error string
2 = we've got work yet to do, onto the next stage
Return a list containing the names of this command. This command can be called from the command line by using any of these names.
Returns: | a list containing the names of this command |
---|
Return a one line summary of this command.
Returns: | a one line summary of this command |
---|
Return a usage string for this command.
Returns: | a usage string for this command |
---|
Return whether a transaction set must be set up before this command can run.
Parameters: |
|
---|---|
Returns: | True if a transaction set is needed, False otherwise |
Return whether a transaction set for removal only must be set up before this command can run.
Parameters: |
|
---|---|
Returns: | True if a remove-only transaction set is needed, False otherwise |
Bases: yumcommands.YumCommand
A class containing methods needed by the cli to execute the makecache command.
Verify that conditions are met so that this command can run; namely that there is an enabled repository.
Parameters: |
|
---|
Execute this command.
Parameters: |
|
---|---|
Returns: | (exit_code, [ errors ]) |
exit_code is:
0 = we're done, exit
1 = we've errored, exit with error string
2 = we've got work yet to do, onto the next stage
Return a list containing the names of this command. This command can be called from the command line by using any of these names.
Returns: | a list containing the names of this command |
---|
Return a one line summary of this command.
Returns: | a one line summary of this command |
---|
Return a usage string for this command.
Returns: | a usage string for this command |
---|
Return whether a transaction set must be set up before this command can run.
Parameters: |
|
---|---|
Returns: | True if a transaction set is needed, False otherwise |
Bases: yumcommands.YumCommand
A class containing methods needed by the cli to execute the clean command.
Verify that conditions are met so that this command can run. These include that there is at least one enabled repository, and that this command is called with appropriate arguments.
Parameters: |
|
---|
Execute this command.
Parameters: |
|
---|---|
Returns: | (exit_code, [ errors ]) |
exit_code is:
0 = we're done, exit
1 = we've errored, exit with error string
2 = we've got work yet to do, onto the next stage
Return a list containing the names of this command. This command can be called from the command line by using any of these names.
Returns: | a list containing the names of this command |
---|
Return a one line summary of this command.
Returns: | a one line summary of this command |
---|
Return a usage string for this command.
Returns: | a usage string for this command |
---|
Return whether a transaction set must be set up before this command can run.
Parameters: |
|
---|---|
Returns: | True if a transaction set is needed, False otherwise |
Bases: yumcommands.YumCommand
A class containing methods needed by the cli to execute the provides command.
Verify that conditions are met so that this command can run; namely that this command is called with appropriate arguments.
Parameters: |
|
---|
Execute this command.
Parameters: |
|
---|---|
Returns: | (exit_code, [ errors ]) |
exit_code is:
0 = we're done, exit
1 = we've errored, exit with error string
2 = we've got work yet to do, onto the next stage
Return a list containing the names of this command. This command can be called from the command line by using any of these names.
Returns: | a list containing the names of this command |
---|
Return a one line summary of this command.
Returns: | a one line summary of this command |
---|
Return a usage string for this command.
Returns: | a usage string for this command |
---|
Bases: yumcommands.YumCommand
A class containing methods needed by the cli to execute the update command.
Verify that conditions are met so that this command can run; namely that there is at least one enabled repository.
Parameters: |
|
---|
Execute this command.
Parameters: |
|
---|---|
Returns: | (exit_code, [ errors ]) |
exit_code is:
0 = we're done, exit
1 = we've errored, exit with error string
2 = we've got work yet to do, onto the next stage
Return a list containing the names of this command. This command can be called from the command line by using any of these names.
Returns: | a list containing the names of this command |
---|
Return a one line summary of this command.
Returns: | a one line summary of this command |
---|
Return a usage string for this command.
Returns: | a usage string for this command |
---|
Bases: yumcommands.YumCommand
A class containing methods needed by the cli to execute the search command.
Verify that conditions are met so that this command can run; namely that this command is called with appropriate arguments.
Parameters: |
|
---|
Execute this command.
Parameters: |
|
---|---|
Returns: | (exit_code, [ errors ]) |
exit_code is:
0 = we're done, exit
1 = we've errored, exit with error string
2 = we've got work yet to do, onto the next stage
Return a list containing the names of this command. This command can be called from the command line by using any of these names.
Returns: | a list containing the names of this command |
---|
Return a one line summary of this command.
Returns: | a one line summary of this command |
---|
Return a usage string for this command.
Returns: | a usage string for this command |
---|
Return whether a transaction set must be set up before this command can run.
Parameters: |
|
---|---|
Returns: | True if a transaction set is needed, False otherwise |
Bases: yumcommands.YumCommand
A class containing methods needed by the cli to execute the update command.
Parameters: |
|
---|
Execute this command.
Parameters: |
|
---|---|
Returns: | (exit_code, [ errors ]) |
exit_code is:
0 = we're done, exit
1 = we've errored, exit with error string
2 = we've got work yet to do, onto the next stage
Return a list containing the names of this command. This command can be called from the command line by using any of these names.
Returns: | a list containing the names of this command |
---|
Return a one line summary of this command.
Returns: | a one line summary of this command |
---|
Return a usage string for this command.
Returns: | a usage string for this command |
---|
Bases: yumcommands.YumCommand
A class containing methods needed by the cli to execute the localinstall command.
Verify that conditions are met so that this command can run. These include that there are enabled repositories with gpg keys, and that this command is called with appropriate arguments.
Parameters: |
|
---|
Execute this command.
Parameters: |
|
---|---|
Returns: | (exit_code, [ errors ]) |
exit_code is:
0 = we’re done, exit 1 = we’ve errored, exit with error string 2 = we’ve got work yet to do, onto the next stage
Return a list containing the names of this command. This command can be called from the command line by using any of these names.
Returns: | a list containing the names of this command |
---|
Return a one line summary of this command.
Returns: | a one line summary of this command |
---|
Return a usage string for this command.
Returns: | a usage string for this command |
---|
Return whether a transaction set must be set up before this command can run.
Parameters: |
|
---|---|
Returns: | True if a transaction set is needed, False otherwise |
Bases: yumcommands.YumCommand
A class containing methods needed by the cli to execute the resolvedep command.
Execute this command.
Parameters: |
|
---|---|
Returns: | (exit_code, [ errors ]) |
exit_code is:
0 = we're done, exit
1 = we've errored, exit with error string
2 = we've got work yet to do, onto the next stage
Return a list containing the names of this command. This command can be called from the command line by using any of these names.
Returns: | a list containing the names of this command |
---|
Return a one line summary of this command.
Returns: | a one line summary of this command |
---|
Return a usage string for this command.
Returns: | a usage string for this command |
---|
Bases: yumcommands.YumCommand
A class containing methods needed by the cli to execute the shell command.
Verify that conditions are met so that this command can run; namely that this command is called with appropriate arguments.
Parameters: |
|
---|
Execute this command.
Parameters: |
|
---|---|
Returns: | (exit_code, [ errors ]) |
exit_code is:
0 = we're done, exit
1 = we've errored, exit with error string
2 = we've got work yet to do, onto the next stage
Return a list containing the names of this command. This command can be called from the command line by using any of these names.
Returns: | a list containing the names of this command |
---|
Return a one line summary of this command.
Returns: | a one line summary of this command |
---|
Return a usage string for this command.
Returns: | a usage string for this command |
---|
Return whether a transaction set must be set up before this command can run.
Parameters: |
|
---|---|
Returns: | True if a transaction set is needed, False otherwise |
Bases: yumcommands.YumCommand
A class containing methods needed by the cli to execute the deplist command.
Verify that conditions are met so that this command can run; namely that this command is called with appropriate arguments.
Parameters: |
|
---|
Execute this command.
Parameters: |
|
---|---|
Returns: | (exit_code, [ errors ]) |
exit_code is:
0 = we're done, exit
1 = we've errored, exit with error string
2 = we've got work yet to do, onto the next stage
Return a list containing the names of this command. This command can be called from the command line by using any of these names.
Returns: | a list containing the names of this command |
---|
Return a one line summary of this command.
Returns: | a one line summary of this command |
---|
Return a usage string for this command.
Returns: | a usage string for this command |
---|
Bases: yumcommands.YumCommand
A class containing methods needed by the cli to execute the repolist command.
Execute this command.
Parameters: |
|
---|---|
Returns: | (exit_code, [ errors ]) |
exit_code is:
0 = we're done, exit
1 = we've errored, exit with error string
2 = we've got work yet to do, onto the next stage
Return a list containing the names of this command. This command can be called from the command line by using any of these names.
Returns: | a list containing the names of this command |
---|
Return a one line summary of this command.
Returns: | a one line summary of this command |
---|
Return a usage string for this command.
Returns: | a usage string for this command |
---|
Return whether a transaction set must be set up before this command can run.
Parameters: |
|
---|---|
Returns: | True if a transaction set is needed, False otherwise |
Bases: yumcommands.YumCommand
A class containing methods needed by the cli to execute the help command.
Verify that conditions are met so that this command can run; namely that this command is called with appropriate arguments.
Parameters: |
|
---|
Execute this command.
Parameters: |
|
---|---|
Returns: | (exit_code, [ errors ]) |
exit_code is:
0 = we're done, exit
1 = we've errored, exit with error string
2 = we've got work yet to do, onto the next stage
Return a list containing the names of this command. This command can be called from the command line by using any of these names.
Returns: | a list containing the names of this command |
---|
Return a one line summary of this command.
Returns: | a one line summary of this command |
---|
Return a usage string for this command.
Returns: | a usage string for this command |
---|
Return whether a transaction set must be set up before this command can run.
Parameters: |
|
---|---|
Returns: | True if a transaction set is needed, False otherwise |
Bases: yumcommands.YumCommand
A class containing methods needed by the cli to execute the reinstall command.
Verify that conditions are met so that this command can run. These include that the program is being run by the root user, that there are enabled repositories with gpg keys, and that this command is called with appropriate arguments.
Parameters: |
|
---|
Execute this command.
Parameters: |
|
---|---|
Returns: | (exit_code, [ errors ]) |
exit_code is:
0 = we're done, exit
1 = we've errored, exit with error string
2 = we've got work yet to do, onto the next stage
Return a list containing the names of this command. This command can be called from the command line by using any of these names.
Returns: | a list containing the names of this command |
---|
Return a one line summary of this command.
Returns: | a one line summary of this command |
---|
Return a usage string for this command.
Returns: | a usage string for this command |
---|
Return whether a transaction set must be set up before this command can run.
Parameters: |
|
---|---|
Returns: | True if a transaction set is needed, False otherwise |
Bases: yumcommands.YumCommand
A class containing methods needed by the cli to execute the downgrade command.
Verify that conditions are met so that this command can run. These include that the program is being run by the root user, that there are enabled repositories with gpg keys, and that this command is called with appropriate arguments.
Parameters: |
|
---|
Execute this command.
Parameters: |
|
---|---|
Returns: | (exit_code, [ errors ]) |
exit_code is:
0 = we're done, exit
1 = we've errored, exit with error string
2 = we've got work yet to do, onto the next stage
Return a list containing the names of this command. This command can be called from the command line by using any of these names.
Returns: | a list containing the names of this command |
---|
Return a one line summary of this command.
Returns: | a one line summary of this command |
---|
Return a usage string for this command.
Returns: | a usage string for this command |
---|
Return whether a transaction set must be set up before this command can run.
Parameters: |
|
---|---|
Returns: | True if a transaction set is needed, False otherwise |
Bases: yumcommands.YumCommand
A class containing methods needed by the cli to execute the version command.
Execute this command.
Parameters: |
|
---|---|
Returns: | (exit_code, [ errors ]) |
exit_code is:
0 = we're done, exit
1 = we've errored, exit with error string
2 = we've got work yet to do, onto the next stage
Return a list containing the names of this command. This command can be called from the command line by using any of these names.
Returns: | a list containing the names of this command |
---|
Return a one line summary of this command.
Returns: | a one line summary of this command |
---|
Return a usage string for this command.
Returns: | a usage string for this command |
---|
Return whether a transaction set must be set up before this command can run.
Parameters: |
|
---|---|
Returns: | True if a transaction set is needed, False otherwise |
Bases: yumcommands.YumCommand
A class containing methods needed by the cli to execute the history command.
Verify that conditions are met so that this command can run. The exact conditions checked will vary depending on the subcommand that is being called.
Parameters: |
|
---|
Execute this command.
Parameters: |
|
---|---|
Returns: | (exit_code, [ errors ]) |
exit_code is:
0 = we're done, exit
1 = we've errored, exit with error string
2 = we've got work yet to do, onto the next stage
Return a list containing the names of this command. This command can be called from the command line by using any of these names.
Returns: | a list containing the names of this command |
---|
Return a one line summary of this command.
Returns: | a one line summary of this command |
---|
Return a usage string for this command.
Returns: | a usage string for this command |
---|
Return whether a transaction set must be set up before this command can run.
Parameters: |
|
---|---|
Returns: | True if a transaction set is needed, False otherwise |
Bases: yumcommands.YumCommand
A class containing methods needed by the cli to execute the check-rpmdb command.
Execute this command.
Parameters: |
|
---|---|
Returns: | (exit_code, [ errors ]) |
exit_code is:
0 = we're done, exit
1 = we've errored, exit with error string
2 = we've got work yet to do, onto the next stage
Return a list containing the names of this command. This command can be called from the command line by using any of these names.
Returns: | a list containing the names of this command |
---|
Return a one line summary of this command.
Returns: | a one line summary of this command |
---|
Return a usage string for this command.
Returns: | a usage string for this command |
---|
Return whether a transaction set must be set up before this command can run.
Parameters: |
|
---|---|
Returns: | True if a transaction set is needed, False otherwise |
Bases: yumcommands.YumCommand
A class containing methods needed by the cli to execute the load-transaction command.
Execute this command.
Parameters: |
|
---|---|
Returns: | (exit_code, [ errors ]) |
exit_code is:
0 = we're done, exit
1 = we've errored, exit with error string
2 = we've got work yet to do, onto the next stage
Return a list containing the names of this command. This command can be called from the command line by using any of these names.
Returns: | a list containing the names of this command |
---|
Return a one line summary of this command.
Returns: | a one line summary of this command |
---|
Return a usage string for this command.
Returns: | a usage string for this command |
---|
Return whether a transaction set must be set up before this command can run.
Parameters: |
|
---|---|
Returns: | True if a transaction set is needed, False otherwise |