From owner-freebsd-questions@FreeBSD.ORG Fri Oct 26 01:41:39 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9B82ADE1; Fri, 26 Oct 2012 01:41:39 +0000 (UTC) (envelope-from afiskon@gmail.com) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 360C68FC0A; Fri, 26 Oct 2012 01:41:38 +0000 (UTC) Received: by mail-vb0-f54.google.com with SMTP id v11so3245688vbm.13 for ; Thu, 25 Oct 2012 18:41:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=wQTuEOoFjiIc0kTsyHjwdm+KwJlWzxcJaZcrp0lO0hE=; b=rXTynHRW6v6anhTXfD+0Ihia1eMB4FZrKQxnsiVZwXznp9dUTJYkSVQMpuBzfXhmrj sjM4ABLeNwmkvpppI+5i8RKlru70vXWLJRf2RtoCXg93PSTWUGQzZhAmQxCOJWzFUcTO tkZqeCZFA7pRMXsah/2QFfdIm+M/r5/PX++9bRTLMCgtyWk3dsEheQ5CV3PhkXMzEcK9 kmrVk+V6ESpa56nUeT1bekvNNmmScw1oSZEOkfDzT4cJuWjt7eIuqaHfD7UmKLnXCu/5 JIyOoHRB2IcNps6oGOmlWoAiXqQg1VKiN/xIK1b0wvQ1oYqcg/ydJZil2aMa5OFa5Um/ 7OuQ== MIME-Version: 1.0 Received: by 10.220.154.6 with SMTP id m6mr34675226vcw.51.1351215698188; Thu, 25 Oct 2012 18:41:38 -0700 (PDT) Received: by 10.220.186.197 with HTTP; Thu, 25 Oct 2012 18:41:38 -0700 (PDT) In-Reply-To: <508996BB.2050306@FreeBSD.org> References: <508996BB.2050306@FreeBSD.org> Date: Fri, 26 Oct 2012 05:41:38 +0400 Message-ID: Subject: Re: Full system update. From: Alexandr Alexeev To: Matthew Seaman Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Oct 2012 01:41:39 -0000 The closest equivalent of `sudo apt-get dist-upgrade` in FreeBSD is `pkg_upgrade -a`. This tool is a part of bsdadminscripts package. If you also wanted to upgrade a kernel, look at freebsd-update. But don't forget that in FreeBSD all is not so simple like in Debian. You have to monitor /usr/ports/UPDATING file and release notes for the new branches of FreeBSD. "Last, and really not recommended at all, you could use the existing pkg_tools binary packages. This, however, is a trap for the newbies and leads to much wailing and gnashing of teeth. Especially if you try and mix stuff you compiled yourself and the pre-compiled packages." I've been successfully using binary packages (pkg_add -r ...) and ports in the same time for ~3 years. I don't wail and my teeth are OK. What am I doing wrong? On Thu, Oct 25, 2012 at 11:44 PM, Matthew Seaman wrote: > On 25/10/2012 20:19, Ashkan Rahmani wrote: >> How I can update system completely some thing like apt-get dist-upgrade in >> Debian? > > You can't. With FreeBSD it's always a two step thing, because it has > the distinction between the base system and ported software. > > You probably want freebsd-update(8) for updating the base system, as > that's downloading pre-compiled updates, similar (in a very loose way) > to apt-get. The man page will answer most, if not all, or your > questions. There are other ways: see the Handbook for details, but > these all involve compiling the OS from source. Not a bad or > particularly difficult thing, but time-consuming. > > For updating the ports: there's the well established method, which is to > update the ports tree using portsnap(8) and then rebuild any out of date > ports: use portmaster(8) for that. (There are other alternatives to > both those programs, but I reckon those are the best to get started with.) > > Then there is pkgng. This is a binary package manager -- pretty much > the most apt-get like thing in FreeBSD at the moment. However pkgng is > brand new, currently the focus of much active development and still > considered pretty experimental. pkgng itself works pretty well (even if > I say so myself) but what is lacking at the moment is the package > building infrastructure to provide it with a comprehensive standard > repository of all the software available from ports for all supported > architectures and OS versions. If you're running one of the 9.x > releases on AMD64 or i386 and pkgbeta happens to contain exactly the > package set you want, then you're in luck. If not, then you're back to > compiling all the ports yourself and setting up your own repo. > > Last, and really not recommended at all, you could use the existing > pkg_tools binary packages. This, however, is a trap for the newbies and > leads to much wailing and gnashing of teeth. Especially if you try and > mix stuff you compiled yourself and the pre-compiled packages. > > Cheers, > > Matthew > > -- > Dr Matthew J Seaman MA, D.Phil. > PGP: http://www.infracaninophile.co.uk/pgpkey > > -- Best regards, Alex Alexeev http://twitter.com/afiskon