Updating was fortune

Jerry McAllister jerrymc at msu.edu
Tue Jan 8 17:23:05 PST 2008


On Tue, Jan 08, 2008 at 04:07:32PM -0800, Jon Dowd wrote:

> Hi Jerry,
> 
> Could you point me to documentation pertaining to "full update of the
> OS and ports tree at the same time and then build and install all the
> system before installing the ports".
> 
> I'd like to learn the correct procedures, but I'm concerned I'll miss
> steps or take steps out of order.

Try the FreeBSD handbook.   It is online at:

     http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/

You should always look through that and the FAQs and search for 
other online publications before posting basic questions.  It
is all documented copiously.


For this, the section:
   23.4.1 The Canonical Way to Update Your System

Will cover it simply.

Unfortunately, the Handbook has not been updated to replace
the old CVsup with the current csup.   But, csup functions the
same and you can just follow the old directions.

This is a process for updating from one release to another, but you 
should do all of this with a new install if you are doing the install 
some amount of time after the release.   That is needed to get the
latest security fixes and to make sure the latest ports are in line
with the OS.

The basic process is to first make a backup unless this is a new
install - when you have nothing to lose.   

Do the csup.    I will include a typical supfile to use at the end.
The csup command is as follows assuming supfile is in /etc/supfile_62

   csup -g -L 2 /etc/supfile_62 

Then reboot to single user.

You might want to run this all under    script(1)
to get a file full of all the messages and commands in case
something fails.  You can never follow it on the screen.

Then, do:
   # make buildworld
   # make buildkernel
   # make installkernel
   exit script
   # reboot     to single user


Then:

Start another script

   # mergemaster -p
   # make installworld
   # mergemaster
   # reboot

exit script


A useful supfile to use with csup  -- assuming Version 6.2 RELEASE
This will get just the RELEASE and not current or stable which is
better if you are just learning.   Current and stable are for those
wanting the far edge.  I put my supfile in /etc/supfile_version.
You can put it anywhere you want that is accessible when doing the csup.

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  

*default host=cvsup.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default tag=RELENG_6_2
*default release=cvs 
*default delete use-rel-suffix

*default compress

## Main Source Tree.
# The easiest way to get the main source tree is to use the "src-all"
# mega-collection.  It includes all of the individual "src-*" collections.
src-all

ports-all tag=.

doc-all tag=.

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  


////jerry



> 
> Thanks for you assistance.
> 
> Jon.
> 
> On Jan 8, 2008 1:27 PM, Jerry McAllister <jerrymc at msu.edu> wrote:
> >
> > On Tue, Jan 08, 2008 at 09:44:40PM +0100, Willem Hendriks wrote:
> >
> > > > Is there a port for the game fortune? I recently installed 6.2 AMD64
> > > > and I can't find it when I do a 'pkg_add -rv fortune' or 'pkg_add -rv
> > > > fortune-mod'
> > > >
> > > > The ones I find I am not interested in; such as:
> > > > zh-fortunetw-1.3
> > > > wmfortune-0.241_2
> > > > fortune-mod-bible-1.0_1
> > > > fortune-mod-bofh-2.0_3
> > > > fortune-mod-culmea-culmilor-2005.12.15
> > > > fortune-mod-ferengi_rules_of_acquisition-2006.01.26
> > > > fortune-mod-futurama-0.2_3
> > > > fortune-mod-the-godfather-2.0
> > > > fortuneit-1.99
> > > > pl-fortunepl-0.0.20051022
> > > > ru-fortune-bashorgru-20070808
> > > > ru-fortuneru-0.9
> > > > fortunelock-0.1.2
> > > > e17-splash-fortune-1.1_1
> > > >
> > > > Am I missing something?
> > > >
> > > > Thanks for your help.
> > >
> > > You could get the latest sources with svcup, and do a make, make install in
> >                                         ^^^^^
> > > /usr/src/games/fortune
> >
> > Is that a new one on me or do you mean 'cvsup'  -- which has been
> > replaced with  'csup'?
> >
> > That would be the recommended way to update your ports tree.
> >
> > You want to use the directive:
> >   ports-all tag=.
> > in your supfile to pull in the latest ports tree - which is the only one
> > since it is not branched like the main OS.
> >
> > Actually, you should to a full update of the OS and ports tree
> > at the same time and then build and install all the system before
> > installing the ports.    It doesn't actually take very long any
> > more on recently built 1,000+ MHz hardware which is so much faster
> > than in the good old days of 80 MHz CPUs.
> >
> > ////jerry
> >
> > >
> > > Willem Hendriks
> >
> > > _______________________________________________
> > > freebsd-questions at freebsd.org mailing list
> > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > > To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
> >
> 
> 
> 
> -- 
> jondowd at gmail.com
> http://www.serveronthewall.com


More information about the freebsd-questions mailing list