diff --git a/usr.sbin/pkg_manage/pkg_manage.c b/usr.sbin/pkg_manage/pkg_manage.c index bac4feebcfd..58cbed851b3 100644 --- a/usr.sbin/pkg_manage/pkg_manage.c +++ b/usr.sbin/pkg_manage/pkg_manage.c @@ -349,6 +349,8 @@ install_package(char *fname) fprintf(stderr, "install_package(): Error malloc'ing tmp_file\n"); exit(-1); } + if (!getenv("PKG_PATH")) + putenv("/usr/ports/packages:/usr/ports/packages/all:."); exec_catch_errors(PKG_ADD, fname, tmp_file); unlink(tmp_file);