when no arguments passwd, scan the db's dir
refactor unlink_pkg_files, account for repo root
add typedef struct repo repo_t
check for EEXIST, not ENOENT on symlink