From owner-freebsd-questions@FreeBSD.ORG Sun Oct 9 00:16:39 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DBC7A1065672 for ; Sun, 9 Oct 2011 00:16:39 +0000 (UTC) (envelope-from conrads@cox.net) Received: from eastrmfepo103.cox.net (eastrmfepo103.cox.net [68.230.241.215]) by mx1.freebsd.org (Postfix) with ESMTP id 8189F8FC14 for ; Sun, 9 Oct 2011 00:16:39 +0000 (UTC) Received: from eastrmimpo03.cox.net ([68.1.16.126]) by eastrmfepo103.cox.net (InterMail vM.8.01.04.00 201-2260-137-20101110) with ESMTP id <20111009001633.ZBHT3815.eastrmfepo103.cox.net@eastrmimpo03.cox.net>; Sat, 8 Oct 2011 20:16:33 -0400 Received: from serene.no-ip.org ([98.164.86.236]) by eastrmimpo03.cox.net with bizsmtp id iQGQ1h00H55wwzE02QGVlq; Sat, 08 Oct 2011 20:16:33 -0400 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A020209.4E90E7E1.0048,ss=1,re=0.000,fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=1.1 cv=ASjpOCvEPoSfhuYnpalwTqAN2s78hBywh12H8bbbxwo= c=1 sm=1 a=fahu9-ItEukA:10 a=G8Uczd0VNMoA:10 a=kj9zAlcOel0A:10 a=uAbGmPAyUfLL1M3oYAsfuA==:17 a=C_IRinGWAAAA:8 a=kviXuzpPAAAA:8 a=kUE9_nA9OwfoA5gzE7oA:9 a=CjuIK1q_8ugA:10 a=si9q_4b84H0A:10 a=4vB-4DCPJfMA:10 a=uAbGmPAyUfLL1M3oYAsfuA==:117 X-CM-Score: 0.00 Authentication-Results: cox.net; none Received: from cox.net (localhost [127.0.0.1]) by serene.no-ip.org (8.14.5/8.14.5) with ESMTP id p990GJks038997; Sat, 8 Oct 2011 19:16:22 -0500 (CDT) (envelope-from conrads@cox.net) Date: Sat, 8 Oct 2011 19:16:14 -0500 From: "Conrad J. Sabatier" To: Allen Message-ID: <20111008191614.27d9e7b0@cox.net> In-Reply-To: <4E900B3F.9010400@comcast.net> References: <4E900B3F.9010400@comcast.net> X-Mailer: Claws Mail 3.7.10 (GTK+ 2.24.6; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: pkg_upgrade seems to try server that isn't right X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Oct 2011 00:16:39 -0000 On Sat, 08 Oct 2011 04:35:11 -0400 Allen 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