Full system update.
Alexandr Alexeev
afiskon at gmail.com
Fri Oct 26 01:41:39 UTC 2012
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 <matthew at freebsd.org> 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
More information about the freebsd-questions
mailing list