From owner-freebsd-questions@FreeBSD.ORG Thu Dec 29 18:14:28 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 4419E106566B for ; Thu, 29 Dec 2011 18:14:28 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout019.mac.com (asmtpout019.mac.com [17.148.16.94]) by mx1.freebsd.org (Postfix) with ESMTP id 2A5468FC08 for ; Thu, 29 Dec 2011 18:14:28 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from [17.113.34.32] by asmtp019.mac.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPSA id <0LWZ00GSB6JL0P80@asmtp019.mac.com> for freebsd-questions@freebsd.org; Thu, 29 Dec 2011 17:14:11 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.5.7110,1.0.211,0.0.0000 definitions=2011-12-29_06:2011-12-29, 2011-12-29, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1012030000 definitions=main-1112290158 From: Chuck Swiger In-reply-to: <20111229161611.GA81214@chancha.local> Date: Thu, 29 Dec 2011 12:14:08 -0500 Message-id: <51AF4F0E-AD5A-4D0A-BC33-4C452B2D1650@mac.com> References: <20111229161611.GA81214@chancha.local> To: Walter Alejandro Iglesias X-Mailer: Apple Mail (2.1084) Cc: freebsd-questions@freebsd.org Subject: Re: Same version on binary packages and updated ports 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: Thu, 29 Dec 2011 18:14:28 -0000 On Dec 29, 2011, at 11:16 AM, Walter Alejandro Iglesias wrote: > I am giving my firsts steps with FreeBSD. Greetings and welcome... > In a RELEASE fresh install, after updating the ports using i.e. > portsnap, the packages downloaded with pkp_add -r are older > versions respect their port counterparts, leading to > dependencies issues. So, once the ports tree is updated: There are tools like portmaster & portupgrade which help manage the issue of changing dependencies. > 1) Am I forced to compile all? Mostly, no. There are a few ports which cannot be made available as packages, typically due to licensing issues. > 2) Should I use STABLE to get the same versions with pkg_add > than compiling up to date ports? Are STABLE packages compiled > from this ports? -STABLE refers to the FreeBSD OS. There is no such thing as -STABLE for ports/packages. > 3) In case my assumption above is correct; taking in care that > in a production system it is advisable (handbook) to stay with > RELEASE, should I avoid updating the ports tree in i.e. a server > machine? The ports tree and the OS aren't directly related. People ought to be fine running a -RELEASE version of FreeBSD with the latest ports tree (or packages compiled from the ports tree). > What to do with broken ports in this case? Fix them? Revert to a working backup? > Resuming, is there a default way to install-update the software > keeping ports and binary packages in one piece? portupgrade and portmaster (mentioned earlier) do this. They can be told to use precompiled packages in preference to building locally, and you can even set up a local package repository if you want to build your own packages with specific options that you prefer. > What is advisable in general terms for a desktop and what for a server? Well, a casual desktop user tends to upgrade whenever they feel motivated to, whereas a server ought to be managed. Part of managing a server is deciding when and how often to update it, based on workload, fault-tolerance, security, and other concerns. You might start by using portaudit, and upgrading ports whenever a security issue is noticed with a port that you have installed. > It will be enough for me if someone just point me to documentation. It's not clear whether you'd read the Handbook? http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html Regards, -- -Chuck