libalpm
Arch Linux Package Manager Library
Functions
pacman.h File Reference
#include <alpm_list.h>
Include dependency graph for pacman.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int pacman_database (alpm_list_t *targets)
 Modify the 'local' package database.
int pacman_deptest (alpm_list_t *targets)
int pacman_query (alpm_list_t *targets)
int pacman_remove (alpm_list_t *targets)
 Remove a specified list of packages.
int pacman_sync (alpm_list_t *targets)
int sync_prepare_execute (void)
int pacman_upgrade (alpm_list_t *targets)
 Upgrade a specified list of packages.

Function Documentation

int pacman_database ( alpm_list_t targets)

Modify the 'local' package database.

Parameters:
targetsa list of packages (as strings) to modify
Returns:
0 on success, 1 on failure

Definition at line 38 of file database.c.

References _, alpm_db_get_pkg(), alpm_db_set_pkgreason(), alpm_errno(), alpm_list_next(), ALPM_LOG_ERROR, alpm_option_get_localdb(), ALPM_PKG_REASON_DEPEND, ALPM_PKG_REASON_EXPLICIT, alpm_strerror(), ALPM_TRANS_FLAG_ALLDEPS, ALPM_TRANS_FLAG_ALLEXPLICIT, config, __alpm_list_t::data, __config_t::flags, __config_t::handle, pm_printf(), trans_init(), and trans_release().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int pacman_deptest ( alpm_list_t targets)

Definition at line 30 of file deptest.c.

References alpm_db_get_pkgcache(), alpm_find_satisfier(), alpm_list_add(), alpm_list_free(), alpm_list_next(), alpm_option_get_localdb(), config, __alpm_list_t::data, and __config_t::handle.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int pacman_query ( alpm_list_t targets)
int pacman_remove ( alpm_list_t targets)

Remove a specified list of packages.

Parameters:
targetsa list of packages (as strings) to remove from the system
Returns:
0 on success, 1 on failure

Definition at line 79 of file src/pacman/remove.c.

References _, alpm_dep_compute_string(), ALPM_ERR_PKG_INVALID_ARCH, ALPM_ERR_UNSATISFIED_DEPS, alpm_errno(), alpm_list_find(), alpm_list_next(), ALPM_LOG_ERROR, ALPM_LOG_WARNING, alpm_pkg_get_name(), alpm_strerror(), alpm_trans_commit(), alpm_trans_get_remove(), alpm_trans_prepare(), config, __alpm_list_t::data, _alpm_depmissing_t::depend, display_targets(), __config_t::flags, FREELIST, __config_t::handle, __config_t::holdpkg, noyes(), pm_printf(), __config_t::print, print_packages(), _alpm_depmissing_t::target, trans_init(), trans_release(), and yesno().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int pacman_sync ( alpm_list_t targets)
int pacman_upgrade ( alpm_list_t targets)

Upgrade a specified list of packages.

Parameters:
targetsa list of packages (as strings) to upgrade
Returns:
0 on success, 1 on failure

Definition at line 40 of file upgrade.c.

References _, alpm_add_pkg(), alpm_errno(), alpm_fetch_pkgurl(), alpm_list_add(), alpm_list_next(), ALPM_LOG_ERROR, alpm_option_get_default_siglevel(), alpm_pkg_free(), alpm_pkg_load(), alpm_strerror(), config, __alpm_list_t::data, __config_t::explicit_adds, __config_t::flags, __config_t::handle, pm_printf(), sync_prepare_execute(), trans_init(), and trans_release().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int sync_prepare_execute ( void  )