install_files


Description:

[ Version ( since = "0.8.1" ) ]
public Results install_files (Bitfield transaction_flags, string[] files, Cancellable? cancellable, ProgressCallback progress_callback) throws Error

Install a file locally, and get the deps from the repositories.

This is useful for double clicking on a .rpm or .deb file.

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

files

a file such as "/home/hughsie/Desktop/hal-devel-0.10.0.rpm"

cancellable

a Cancellable or null

progress_callback

the function to run when the progress changes

progress_user_data

data to pass to progress_callback

Returns:

a Results object, or null for error