Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Oct 2001 20:51:41 -0500
From:      "Clarence Brown" <clabrown@granitepost.com>
To:        <freebsd-questions@freebsd.org>
Subject:   how to use sysinstall or pkg_add
Message-ID:  <004001c151f7$4689ea20$8f6896d1@granitepost.com>

next in thread | raw e-mail | index | archive | help
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

Things seemed to fall apart with the first step of
simply adding the cvsupit package...

I've tried to add the cvsupit-3.0 package using the 
/stand/sysinstall utility. I mark the package and 
it automatically marks cvsup-bin-16.1 as a dependency, 
which makes sense. Next I get a screen showing 2 
fields "cvsupit-3.0" and "/usr/ports/net/cvsupit". I tell 
it OK to install, and it seems to do cvsup-bin-16.1 OK, 
then stops with the messages

"Adding packages/All/cvsupit-3.0.tgz from acd0c"

"package cvsupit-3.0 read successfully - waiting for pkg_add(1)"

It HANGS at this point. I can abort the process 
with ^C, but I've let it sit overnight to see if waiting 
would help, but it doesn't. I also can't seem to find 
this error message listed with any steps to correct it. 
Neither the documentation for pkg_add or sysinstall
address this problem. 

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

I searched the mail archive and found one thread 
with the suggestion to try running pkg_add manually, 
so I turned to the man page and handbook to try 
to figure out how to run pkg_add. As usual, I find 
that the documentation seems to bare little resemblance 
to the actual process. It implies that I should more or 
less type in the pkg_add command and then the 
precompiled package should be installed without fuss.

I tried changing to the directory on the CD and 
running pkg_add from there:

cd /dist/packages/All/
pkg_add cvsupit-3.0.tgz

This presents a "pretty" text dialog titled:
"Branch Selection Menu" with a paragraph 
of text about selecting which tree to update my 
source files from, including "." the 5.0 head, 
RELENG_4, RELENG_3, RELENG_2_2, 
cvs and none. I'm running a 4.3 system just 
installed from the CD , so I probably don't want 
to run code from ANY of those selections, because 
that would be mixing code from 4.4 with my 4.3 
kernel, right? Besides that, why is it asking me 
about updating my source tree when I'm adding 
a package, which the documentation tells me is 
precompiled and doesn't involve source files.

I've got some little questions.

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

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?

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.

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?

OK, so how do I make this work?

Thanks, Cla.




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?004001c151f7$4689ea20$8f6896d1>