|
ginnOS
The reference: libc, the libraries and the kernel
|
librat: remove an installed package. More...
#include "internal.h"#include <errno.h>#include <stdlib.h>#include <string.h>#include <sys/stat.h>#include <unistd.h>Functions | |
| rat_disk_t | rat_disk_state (const rat_t *rat, const rat_entry_t *entry) |
| compare a file or link of a record with the disk | |
| int | rat_remove (rat_t *rat, const char *name, rat_note_t note, void *context, rat_error_t *err) |
| remove an installed package: its files, its links, and its folders that are then empty and that the base or another package does not use. | |
librat: remove an installed package.
the files and links of the package go, then its folders, the deepest first, when they are empty and the base image and the other packages do not use them. the record goes last, so an interrupted remove still has a record until the transaction is done. a settings file (under etc/) that the person changed stays, but the <path>.ratnew of a settings file goes: nothing uses it after the remove.
| rat_disk_t rat_disk_state | ( | const rat_t * | rat, |
| const rat_entry_t * | entry ) |
compare a file or link of a record with the disk
| int rat_remove | ( | rat_t * | rat, |
| const char * | name, | ||
| rat_note_t | note, | ||
| void * | context, | ||
| rat_error_t * | err ) |
remove an installed package: its files, its links, and its folders that are then empty and that the base or another package does not use.
| note | gets a line for each file that was changed after the install. |