remove.c File Reference

#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <alpm.h>
#include <alpm_list.h>
#include "pacman.h"
#include "util.h"
#include "callback.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.

Variables

pmdb_tdb_local


Function Documentation

int pacman_remove ( alpm_list_t targets  ) 

Remove a specified list of packages.

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

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

References _, alpm_db_readgrp(), alpm_dep_get_string(), alpm_grp_get_name(), alpm_grp_get_pkgs(), alpm_list_add(), alpm_list_getdata(), alpm_list_next(), alpm_miss_get_dep(), alpm_miss_get_target(), alpm_option_get_lockfile(), alpm_pkg_get_name(), alpm_strerrorlast(), alpm_trans_addtarget(), alpm_trans_commit(), alpm_trans_get_pkgs(), alpm_trans_init(), alpm_trans_prepare(), cb_trans_conv(), cb_trans_evt(), cb_trans_progress(), config, __config_t::flags, FREELIST, list_display(), PM_ERR_HANDLE_LOCK, PM_ERR_UNSATISFIED_DEPS, pm_errno, PM_LOG_ERROR, pm_printf(), PM_TRANS_FLAG_CASCADE, PM_TRANS_FLAG_RECURSE, PM_TRANS_TYPE_REMOVE, and yesno().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

pmdb_t* db_local

Definition at line 48 of file pacman.c.


Generated on Mon Jan 14 23:58:54 2008 for libalpm by  doxygen 1.5.4