Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Oct 2001 11:42:14 -0500
From:      Mike Meyer <mwm@mired.org>
To:        "Clarence Brown" <clabrown@granitepost.com>
Cc:        questions@freebsd.org
Subject:   Re: how to use sysinstall or pkg_add
Message-ID:  <15301.52198.603878.165954@guru.mired.org>
In-Reply-To: <46472108@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
Clarence Brown <clabrown@granitepost.com> types:
> OK, I'm stuck and frustrated on what should be a 
> simple step. As recommended in the handbook, I'm 
> trying to add the cvsupit package so I can update to 
> the latest stable release. I'm starting from the 4.3 CD 
> set, assuming that much of the source might be the 
> same reducing the amount of code transferred with CVS
> 
> I'm just trying to add a package off of the installation 
> CD as recommended by the Handbook, this is supposed 
> to be easy, RIGHT??

Yes, they are. But you do *not* want cvsup from the 4.3 CD set. It's
got an S1G bug and so won't work.

> 1. How am I supposed to add the cvsupit package 
> from the 4.3 install CD using /stand/sysinstall?

Don't. As to why it broke - I suspect it hung waiting for you to
answer the questions that were asked when you ran pkg_add directly.

> 2. If I can't use sysinstall and must manually run 
> pkg_add, where should I execute the pkg_add command 
> from? Do I change to the directory that contains the
> *.tgz package file?

pkg_add will work properly from anywhere so long as you give it the
proper file name. I'm not positive about fetching dependencies, as I
always use ports instead of packages.

> 3. Why does the pkg_add command ask me 
> questions about which branch to update my source 
> tree from? I'm NOT trying to update my source tree 
> at all yet. I thought I understood that adding a 
> package involved installing a precompiled binary, 
> not updating a source tree. The only reason I could 
> see to update the source tree would be in the ports 
> process where the port downloads source and 
> compiles it.

Because that's what cvsupit *does*. It installs the cvsup binary, then
configures things so you can track various FreeBSD branches. It needs
to know which ones to track - so it asks.

> 4. Since I just installed 4.3 from the CD, why is it 
> asking me about source for 5.0, 4.4, 3.? etc. Isn't 
> it dangerous to install utilities from the latest release 
> of 4.4 onto a 4.3 system?

Yes, it is, but it's not dangerous to have the sources for a different
system around, and all cvsup does it download sources. It's not even
dangerous to buildworld different systems that way, though it may not
work. For example, I might keep 5.0 sources on my fast box running
4-STABLE, buildworld on it and then install it on a test box.

What you need to do is ftp the package
ftp.freebsd.org:/pub/FreeBSD/ports/packages/All/cvsup-16.1e.tgz.
Install that with pkg_add cvsup-16.1e.tgz. That will install a working
version of cvsup, and has no dependencies.

After this, you can either configure cvsup yourself, and there's lots
of discussion in the mail list archives and the handbook; or you can
install the cvsupit port, which will use the cvsup you just installed,
and walk you through the configuration process (at least version 3.0
of the cvsupit port will).

	<mike
--
Mike Meyer <mwm@mired.org>			http://www.mired.org/home/mwm/
Q: How do you make the gods laugh?		A: Tell them your plans.

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?15301.52198.603878.165954>