public class YumProxy extends Object
| Constructor and Description |
|---|
YumProxy() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanMetadata()
Clean the yum metadata Equal to "yum clean metadata"
|
void |
init(ResourceContext resourceContext)
Initialize the proxy with the current system information.
|
void |
install(Collection<String> packages)
Install the specified packages.
|
void |
remove(Collection<String> packages)
Remove the specified packages.
|
void |
update()
Update packages Equal to "yum update"
|
String |
version()
Get the version of the yum executable.
|
public void init(ResourceContext resourceContext)
resourceContext - contains things like plugin config and system informationpublic String version() throws Exception
Exceptionpublic void install(Collection<String> packages) throws Exception
packages - A list of packages to install.Exception - On any error.public void remove(Collection<String> packages) throws Exception
packages - A list of packages to remove.Exception - On any error.public void cleanMetadata()
throws Exception
Exception - On any error.Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.