From owner-freebsd-questions@FreeBSD.ORG Sun Sep 12 13:50:41 2010 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 08469106566B for ; Sun, 12 Sep 2010 13:50:41 +0000 (UTC) (envelope-from kayasaman@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 806828FC1D for ; Sun, 12 Sep 2010 13:50:40 +0000 (UTC) Received: by eyx24 with SMTP id 24so2794871eyx.13 for ; Sun, 12 Sep 2010 06:50:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type; bh=/WH+VowmlBmvYS45BuBvYgVI9pZVvjG1h/HJUwrQtl4=; b=AsRnNqChMaKRsa39c2dD/6IeBYa91Q/ALJF31X6en2ZNpQpUEez5pg9Hp0CKfRcO99 9kwhkH3ezrmCjJ+ycAih5+Et8bcANukvWZjIYoOXt9p1IKR5T/AgyYUwLEndpElJI8Gm Srd49hTAjR91+pz8JiSZzezWacKKtWOENthqg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; b=W8b0DUVZAguS+muQeBDYbbG+5K6va7pbvnCrEoT3VI1iyAOlHw4o0d8S8AjePkgm0s z/VDhZcoXKbZwfGtLGYtBirZDEB+GEN4r8MEsqs/GKBf2qnSwEIE7H+LqHH9y2xcMJK7 Kx/tdjOSjU0CMhWGs0AnwgDSw7sDiiMn2jtaw= Received: by 10.14.47.79 with SMTP id s55mr1883422eeb.22.1284299439507; Sun, 12 Sep 2010 06:50:39 -0700 (PDT) Received: from [172.16.0.4] ([212.156.209.87]) by mx.google.com with ESMTPS id a48sm7472381eei.7.2010.09.12.06.50.38 (version=SSLv3 cipher=RC4-MD5); Sun, 12 Sep 2010 06:50:38 -0700 (PDT) Message-ID: <4C8CDAAD.2070606@gmail.com> Date: Sun, 12 Sep 2010 16:50:37 +0300 From: Kaya Saman User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.8) Gecko/20100227 Lightning/1.0b1 Thunderbird/3.0.3 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4C8C0110.20801@gmail.com> <4C8CBADC.3070904@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Upgrading packages - portupgrade confusion 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, 12 Sep 2010 13:50:41 -0000 Hi Jerry and Michael, thanks for all the advise and information!! I think I was confusing terminologies a little.... I was trying to imply that I have been building from ports all this time and *not* using pkg_add to obtain pre-built packages. I think mainly it's just that I've been using package managers too much with Linux and OpenSolaris distros that it got burned into my brain..... not to mention that yesterday was a 14 hour shift without break which didn't help. The thing I don't quite understand though is that if the ports tree > gets refreshed, do the packages get upgraded or will I need to > rebuild them?? You have to rebuild them. Does this apply to ports too?? "portupgrade -a" or "portmanager -u" depending on what application you are using. Switching between multiple port maintenance applications is not the worse thing you could do; however, I would not recommend it as an everyday occurrence. Ok so "portupgrade -a" upgrades all ports according to the manual. On 09/12/2010 03:52 PM, Michael Powell wrote: > [...] > To elaborate a little. csup -L 2 ports is what refreshes the ports tree. > Portupgrade is a third party app you can install to assist in automating the > updating process. Once you've installed portupgrade there are man pages for > portsdb, pkgdb, and portversion to see what the switches described above do. > The commands above are just strung together to prepare a system for > updating. portupgrade -a is actually what does the actual updating. > > There are other tools as well, I'm just not as familiar with them. I think > the other one is called portmaster. It may even be better, I don't know as I > tend to stick with what I know as long as it keeps doing the job. > > [ Ok, so if I understand correctly now is that the csup command refreshes the ports tree while portupgrade upgrades the actual port itself.... eg: cd /usr/ports/*/nano make install clean although not the case but say if this was to build version 1.8 of the Nano text editor, running: csup -L 2 portupgrade nano would upgrade the installed version to 1.9?? Of course the current version of Nano is totally different I am just trying to understand here!! > [...] > I don't know if I can properly explain well enough, but I'll take a stab at > it anyways. But I believe the first answer here would be no. Refreshing the > ports tree does not install or update any installed software. > > I kind of keyed in on your mentioning of portupgrade. Portupgrade is a tool > for automating the upgrading of installed software. While I believe it, and > possibly portmaster can operate on pre-built packages I myself stopped using > packages a long time ago. I compile everything. > > Ok I think this practically explains what I've just been trying to say above. > > [...] > Hope this helps. I'm not the best at explaining things, but the Handbook is > a most excellent resource to be studied extensively. It is written much > better than anything I can manage. And while much of it may seem cryptic at > first glance, most of what you need to know is in there. > > Yep I think this helps a lot!!! :-) > -Mike > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > Many thanks and best regards, Kaya