Sun, 21 Feb 2016 01:06:37 -0500 Ежи рыбы <[email protected]> > Ah, the update seems to run smoothly now. Should PKG_PATH supersede the > settings in /etc/pkg.conf?
The pkg.conf is system-wide package system configuration: $ man 5 pkg.conf http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man5/pkg.conf.5 If PKG_PATH is not defined, pkg_add will use the path named by installpath within pkg.conf(5). The PKG_PATH is explained in pkg_add (install software package distributions) manual page: $ man 1 pkg_add http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man1/pkg_add.1 Search for string PKG_PATH, plus details in section ENVIRONMENT (near the end of the manpage) PKG_PATH If a given package name cannot be found, the directories named by PKG_PATH are searched. It should contain a series of entries separated by colons. Each entry consists of a directory name. URL schemes such as FTP, HTTP, HTTPS, or SCP are also appropriate. The current directory may be indicated implicitly by an empty directory name, or explicitly by a single period (‘./’). Special sequences ‘%a’, ‘%c’, ‘%m’, ‘%v’ will be expanded with the same semantics as installpath in pkg.conf(5). NB: The manual pages quoted here may change in the future, so be sure to reread them instead of relying to the info in this email message. The practice to reread manual pages and FAQ documents is critical to functional self support (productivity). http://www.openbsd.org/faq/index.html > Thanks > > On 2/21/2016 12:16 AM, [email protected] wrote: > > Sat, 20 Feb 2016 22:59:59 -0500 Ежи рыбы <[email protected]> > >> $ printenv PKG_PATH > >> ftp://ftp5.usa.openbsd.org/pub/OpenBSD/snapshots/packages/amd64 > >> $ egrep -v '(^#|^$)' /etc/{,examples/}pkg.conf > >> /etc/pkg.conf:installpath = > >> http://ftp5.usa.openbsd.org/pub/OpenBSD/%c/packages/%a/ > > > > Try setting this in ~/.profile to match what you have in /etc/pkg.conf > > > > export > > PKG_PATH=http://ftp5.usa.openbsd.org/pub/OpenBSD/snapshots/packages/`arch > > -s`/ > > > > NB: use plain text message to reply > > > > 20.02.2016, 22:19, <[email protected]>: > >> > >>> Sat, 20 Feb 2016 17:45:02 -0500 Ежи рыбы <[email protected]> > >>> > >>> When attempting to update packages with: # pkg_add -vui > >>> the update fails, with a series of error messages > >>> ftp: /root/.netrc: Permission denied > >> > >> 1) What does this printenv(1) produce? > >> > >> $ printenv PKG_PATH > >> > >> 2) What do you have in pkg.conf(5)? > >> > >> $ egrep -v '(^#|^$)' /etc/{,examples/}pkg.conf > >> > >> 3) Compare this with the mirrors list: > >> > >> http://www.openbsd.org/ftp.html > >> http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/www/build/mirrors.dat > >> http://spacehopper.org/mirmon/ > >> > >> 4) Try ftp(1) connect manually with the results from 1) & 2) like > >> this > >> > >> $ ftp -d \ > >> ftp://ftp5.usa.openbsd.org/pub/OpenBSD/snapshots/packages/amd64/
