libalpm
Arch Linux Package Manager Library
Functions
remove.c File Reference
#include <fnmatch.h>
#include <stdlib.h>
#include <stdio.h>
#include <alpm.h>
#include <alpm_list.h>
#include "pacman.h"
#include "util.h"
#include "conf.h"
Include dependency graph for src/pacman/remove.c:

Go to the source code of this file.

Functions

int pacman_remove (alpm_list_t *targets)
 Remove a specified list of packages.

Function Documentation

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: