Date: Sat, 8 Oct 2011 19:16:14 -0500 From: "Conrad J. Sabatier" <conrads@cox.net> To: Allen <Unix.Hacker@comcast.net> Cc: freebsd-questions@freebsd.org Subject: Re: pkg_upgrade seems to try server that isn't right Message-ID: <20111008191614.27d9e7b0@cox.net> In-Reply-To: <4E900B3F.9010400@comcast.net> References: <4E900B3F.9010400@comcast.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 08 Oct 2011 04:35:11 -0400 Allen <Unix.Hacker@comcast.net> wrote: [snip] > I noticed a little while ago I had "upgrade_pkg" and since I have 0 > Ports (I don't need to squeeze out extra performance, I'm not running > a Server, so I only compile when I have to, and I like Binaries more > so I generally install my software either with sysinstall, or, > pkg_add -r whateverIWant) and then, get emailed that my software has > a security flaw, and from there it usually went down hill. > > Well, now I have Hardware security in place, and that allowed me to > not worry about it as much, su, I started reading the man page. I saw > that I could do this: > > upgrade_pkg -a > > When I ran this, I noticed it was trying to get to a server about > FreeBSD Release 8, and freebsd-update, uses the right one. > freebsd-update grabs patches no problem, but for software packages it > doesn't touch them, though I DO wish it did.... If I could code in C, > the first thing I would do, would be to build a Package for FreeBSD > that basically was like this: > > fbsdupdate --update --all > > That would download, and install, ALL Security and Bug Fixes, no > matter if it was in the base system, the ports, or whatever. Since > I'm no coder, I can't though. But I did wonder why it wouldn't work. > > I read through the man page, looking to see if it showed a file it > uses to decide where to contact the server, but there isn't one. So > basically, how do you make upgrade_pkg work the way it says in the > man page? > > I basically figured I'd run upgrade_pkg -af and let it update and > reinstall everything, and Hoped that would patch it, but it kept going > for some FreeBSD8-RELEASE server saying it couldn't contact it, and > as I said, freebsd-update works fine, grabbing things from the server > for FreeBSD-RELEASE 8.2 which is what I'm running. I assume you mean "pkg_upgrade" (not "upgrade_pkg")? See the "ENVIRONMENT" section of the man page. All of the pkg_* tools are consistent in how they reference these variables. -- Conrad J. Sabatier conrads@cox.net
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111008191614.27d9e7b0>