*BSD News Article 94428


Return to BSD News archive

From: Philipp Mergenthaler <un1i@rz.uni-karlsruhe.de>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Installing Packages, Help!
Date: 25 Apr 1997 16:10:08 GMT
Organization: University of Karlsruhe, Germany
Lines: 42
Sender: Philipp Mergenthaler <un1i@ab221.rz.uni-karlsruhe.de>
Message-ID: <5jql10$laq$1@nz12.rz.uni-karlsruhe.de>
References: <Pine.SUN.3.95.970424121819.16241A-100000@garcia.efn.org>
NNTP-Posting-Host: ab221.rz.uni-karlsruhe.de
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
NNTP-Posting-User: un1i
X-Newsreader: TIN [UNIX 1.3 unoff BETA 970409; AIX 4.1]
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.Hawaii.Edu!news.lava.net!news.flex.com!www.nntp.primenet.com!nntp.primenet.com!news.maxwell.syr.edu!newsfeed.nacamar.de!fu-berlin.de!news.belwue.de!news.uni-stuttgart.de!rz.uni-karlsruhe.de!not-for-mail
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:39724

X-Comment-To: Deke Swallen 
 Deke Swallen <deke@efn.org> wrote:
> Hello,
> I am wondering how I could install the packages include in FreeBSD 2.2.1
> without a supported CD-ROM.  I'm not able to from a DOS partition. And
> ditto trying with disks.  I installed FBSD from a DOS partition but I
> can't with the packages.  But with the new 2.2.1 I was able to install the

The reason is probably that DOS cuts name to its 8+3 character format, but
the names of packages might be longer (e.g. xsysinfo-1.4.tgz)  ... and since
the last part of a name could be .gz or .tgz, this is really bad.

Solution: copy the file from the dos partition to e.g. /tmp, rename it to
its original name, and then run pkg_add.


> ports that way.  But none of the port files are executable. I'm guessing
> I'm supposed to decode them somehow....does anyone have any suggestions.
> Thanks for everyone's time

A port (e.g. xsysinfo) consists of a makefile and some direcories with
documentation and eventually patches for FreeBSD. It's not executable
 - the makefile directs how to compile the program. Just go into the
directory with the makefile and run "make" (as root). Make looks in
/usr/ports/distfiles if the sourcecode (here: xsysinfo-1.4.tar.gz) is there,
if not, it tries to fetch it from a FTP server. You don't need to unzip
the sourcecode. After make has completed successfully you need to run
"make install" to install the program, its manpage etc. into the proper
directories.

If you are getting ports via DOS disk/floppies, rename them to the original
name before running make.

To unzip a file with the suffix .gz : gunzip file
To untar a file with the suffix .tar: tar xvf file
Together			    : tar xvzf file

.tgz is short for .tar.gz


Hope this helps.
Bye, Philipp