Updating ports tree
It's meant to be informative like a tutorial, but more of a "free discussion" format.If you have any subjects you want us to explore, or even just a good name... 2014-11-26 We've got a fun idea for the holidays this year: just like we ask during the interviews, we want to hear how all the viewers and listeners first got into BSD.This is called the "ports tree." By following the directions in those makefiles, Free BSD is able to automatically download the source code for third party programs, apply any patches that are needed to make it build cleanly, compile the software and finally package it up for you. As of the time of this writing, there are two package formats you can use: the legacy pkg_add format and the newer pkgng format.A lot of magic is going on behind the scenes when you type "make install clean." The ports collection provides a way to customize every package you install, from the CFLAGS to the options you want enabled or disabled. For versions of Free BSD before 10.0, you will need to run the following before installing any ports: # Build all ports' -march against my cpu for best performance CPUTYPE?The "clean" target will remove anything that was left over from the build. To remove a package you installed, you can run: Installing hundreds of programs like this can get a bit tiring, so there are tools you can use to ease the administration. It's a shell script that can be used for installing and upgrading ports. The second is to check for any big changes that need workarounds.You can install multiple ports with one command with it and do lots of other great tricks. There's a special file, /usr/ports/UPDATING, that documents any special steps that need to be taken before upgrading ports. Each new entry is prepended to the top of the list, so you only need to check the entries since the last time you read it.
New discussion segment 2015-01-17 We're thinking about adding a new segment to the show where we discuss a topic that the listeners suggest.
When a port is already installed, you don't need to specify the category it's under.
That's only when installing them for the first time.
The ports system uses a list of "make targets" in order to know what to do.
Some common examples include "fetch," "configure," "patch," "install," "clean," "config," "package" and "deinstall." You don't need to memorize all of them, since ports is smart enough to know what to do and in what order.