remove_packages
Description:
[ Version ( since = "0.8.1" ) ]
public Results remove_packages (Bitfield transaction_flags, string[] package_ids, bool allow_deps, bool autoremove, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
public Results remove_packages (Bitfield transaction_flags, string[] package_ids, bool allow_deps, bool autoremove, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Remove a package (optionally with dependancies) from the system.
If allow_deps
is set to false
, and other packages would have to be removed, then the transaction would fail.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
Parameters:
this |
a valid Client instance |
transaction_flags |
a transaction type bitfield |
package_ids |
a null terminated array of package_id structures such as "hal;0.0.1;i386;fedora" |
allow_deps |
if other dependent packages are allowed to be removed from the computer |
autoremove |
if other packages installed at the same time should be tried to remove |
cancellable |
a Cancellable or |
progress_callback |
the function to run when the progress changes |
progress_user_data |
data to pass to |
Returns:
a Results object, or |