Date: Thu, 29 Dec 2011 12:14:08 -0500 From: Chuck Swiger <cswiger@mac.com> To: Walter Alejandro Iglesias <roquesor@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Same version on binary packages and updated ports Message-ID: <51AF4F0E-AD5A-4D0A-BC33-4C452B2D1650@mac.com> In-Reply-To: <20111229161611.GA81214@chancha.local> References: <20111229161611.GA81214@chancha.local>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51AF4F0E-AD5A-4D0A-BC33-4C452B2D1650>