libalpm
Arch Linux Package Manager Library
|
#include <alpm_list.h>
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. |
int pacman_database | ( | alpm_list_t * | targets | ) |
Modify the 'local' package database.
targets | a list of packages (as strings) to modify |
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().
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().
int pacman_query | ( | alpm_list_t * | targets | ) |
Definition at line 487 of file query.c.
References _, alpm_db_get_pkg(), alpm_db_get_pkgcache(), ALPM_ERR_PKG_NOT_FOUND, alpm_errno(), alpm_list_next(), ALPM_LOG_ERROR, ALPM_LOG_WARNING, alpm_option_get_localdb(), alpm_pkg_free(), alpm_pkg_load(), alpm_strerror(), check_syncdbs(), config, __alpm_list_t::data, __config_t::group, __config_t::handle, __config_t::op_q_foreign, __config_t::op_q_isfile, __config_t::op_q_owns, __config_t::op_q_search, __config_t::op_q_upgrade, and pm_printf().
Referenced by main().
int pacman_remove | ( | alpm_list_t * | targets | ) |
Remove a specified list of packages.
targets | a list of packages (as strings) to remove from the system |
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().
int pacman_sync | ( | alpm_list_t * | targets | ) |
Definition at line 899 of file src/pacman/sync.c.
References _, alpm_list_diff(), alpm_list_free(), alpm_list_strdup(), ALPM_LOG_DEBUG, ALPM_LOG_ERROR, alpm_logaction(), alpm_option_get_syncdbs(), ALPM_TRANS_FLAG_NEEDED, ALPM_TRANS_FLAG_RECURSE, check_syncdbs(), config, __config_t::flags, FREELIST, __config_t::group, __config_t::handle, list_display(), __config_t::op_q_list, __config_t::op_s_clean, __config_t::op_s_downloadonly, __config_t::op_s_info, __config_t::op_s_search, __config_t::op_s_sync, __config_t::op_s_upgrade, pm_printf(), __config_t::print, trans_init(), trans_release(), and yesno().
Referenced by main().
int pacman_upgrade | ( | alpm_list_t * | targets | ) |
Upgrade a specified list of packages.
targets | a list of packages (as strings) to upgrade |
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().
int sync_prepare_execute | ( | void | ) |
Definition at line 774 of file src/pacman/sync.c.
References _, alpm_dep_compute_string(), ALPM_DEP_MOD_ANY, ALPM_ERR_CONFLICTING_DEPS, ALPM_ERR_DLT_INVALID, ALPM_ERR_FILE_CONFLICTS, ALPM_ERR_PKG_INVALID, ALPM_ERR_PKG_INVALID_ARCH, ALPM_ERR_PKG_INVALID_CHECKSUM, ALPM_ERR_PKG_INVALID_SIG, ALPM_ERR_UNSATISFIED_DEPS, alpm_errno(), ALPM_FILECONFLICT_FILESYSTEM, ALPM_FILECONFLICT_TARGET, alpm_list_next(), ALPM_LOG_ERROR, alpm_strerror(), alpm_trans_commit(), alpm_trans_get_add(), alpm_trans_prepare(), config, _alpm_fileconflict_t::ctarget, __alpm_list_t::data, _alpm_depmissing_t::depend, display_targets(), _alpm_fileconflict_t::file, FREELIST, __config_t::handle, _alpm_depend_t::mod, __config_t::op_s_downloadonly, _alpm_conflict_t::package1, _alpm_conflict_t::package2, pm_printf(), __config_t::print, print_packages(), _alpm_conflict_t::reason, _alpm_depmissing_t::target, _alpm_fileconflict_t::target, trans_release(), _alpm_fileconflict_t::type, and yesno().
Referenced by pacman_upgrade().