Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Jul 1998 14:09:22 -0600 (MDT)
From:      Brett Taylor <brett@peloton.physics.montana.edu>
To:        Woody <woody@localline.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: updates
Message-ID:  <Pine.BSF.3.96.980703135510.18244A-100000@peloton.physics.montana.edu>
In-Reply-To: <Pine.BSF.3.95.980703122346.25752A-100000@localline.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

> I am the new security admin here at localline....I am not too familiar
> with FreeBSD and the way you go about getting updates for various
> binaries and what not that can cause nasty things to happen to your
> system. I am a big Linux user and used to, say, Red Hat's format....how
> do I go about getting updates for the version we are running which is
> 2.2.6? 

I'm not sure here whether you mean source updates for the basic system or
updates to the ports/packages installed later.  Fortunately, the answer is
the same either way - CVSup.

source - You can follow the 2.2-STABLE build by using CVSup.  You'll need
a source supfile and of course CVSup.  The best thing to do first is to
look and see if you have the CVSup package installed - ls /var/db/pkg and
look for either

cvsup-bin-15.4 (you'll need 15.4)   or
cvsup-15.4

If there is a different version there, then pkg_delete cvsup-version#. 
Once you've done this, or if it is not there, do this:

fetch ftp://ftp.freebsd.org/pub/FreeBSD/packages/net/cvsup-bin-15.4.tgz

Once that's downloaded, do a pkg_add cvsup-bin-15.4.tgz and it will add
the appropriate files/binaries to your system.

You can now use CVSup to fetch the current STABLE sources.  You'll need a
supfile for the sources - you can find the example in
/usr/share/examples/cvsup.  I use the following to trake the STABLE
sources:

peloton: {8} more /usr/local/etc/cvsup/src_supfile 
*default tag=RELENG_2_2
*default host=cvsup.freebsd.org
*default release=cvs
*default prefix=/usr
*default base=/usr/local/etc/cvsup
*default release=cvs delete use-rel-suffix 
src-all
src-secure

Then read the following tutorial on making world:

http://www.nothing-going-on.demon.co.uk/FreeBSD/make-world/make-world.html

There's also a section in the Handbook about staying up to date:
	/usr/share/doc/handbook/index.html

For other packages/ports you can do a similar thing.  If you have the room
it's nice to have the ports tree installed (you can use /stand/sysinstall
to put this on - it's in post configuration, custom install - look for
ports and select it).  In either case you can grab packages in the same
way as was described for CVSup above, or use a port.  All the
ports/packages that are installed are listed in /var/db/pkg.  

You can keep your ports tree up to date also by using CVSup.  Again, see
the Handbook or the examples to create a port-supfile.  Updating the ports
tree will NOT update your installed ports however - you will still need to
pkg_delete the old and make install or pkg_add the newer versions. 

Good luck and check the handbook for more information and feel free to
ask further questions here!

Brett
***********************************************************
Brett Taylor 		brett@peloton.physics.montana.edu
http://peloton.physics.montana.edu/brett/

How many Microsoft employees does it take to change a light
bulb? Zero. They declared Darkness[tm] the standard.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980703135510.18244A-100000>