Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Apr 2001 20:53:58 +1000
From:      Sue Blake <sue@welearn.com.au>
To:        FreeBSD <freebsd@XtremeDev.com>
Cc:        =?iso-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= <mikko@dynas.se>, bzdik@yahoo.com, questions@FreeBSD.ORG
Subject:   Re: Debian apt-get and FreeBSD
Message-ID:  <20010403205356.A20611@welearn.com.au>
In-Reply-To: <20010402191727.E34270-100000@Amber.XtremeDev.com>; from FreeBSD on Mon, Apr 02, 2001 at 07:32:42PM -0600
References:  <Pine.BSF.4.33.0104021743570.80911-100000@explorer.rsa.com> <20010402191727.E34270-100000@Amber.XtremeDev.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Apr 02, 2001 at 07:32:42PM -0600, FreeBSD wrote:
> 
> Well yeah, I understand the idea behind ports. But I just thought it would
> be easier to cd /usr/ports/shells/bash1 && make install-pkg. Since I
> can't do pkg_add -r bash (pkg_add -r bash defaults to bash2, but what if
> I want bash1 for the sake of the argument). I'd have to ftp to
> ftp://ftp.freebsd.org/pub/FreeBSD/ports/packages/All and see what the full
> name of it is, and do a pkg_add -r
> ftp://ftp.freebsd.org/pub/FreeBSD/ports/packages/All/bash-2.04.tgz, or
> bash-1.14.7.tgz as the case may be. Guess it's just a matter of either
> cd'ing to a ports tree and doing one command for a package, or doing an
> ftp lookup on the name first, then typing out the full name of the
> package. Dunno if what I said makes any sense. O'well, I'm probably just
> being pedantic.

If all you want is to fetch and install a package, e.g. where space is
tight, it is not essential to have the whole ports tree. You can just
use the /usr/ports/INDEX file (downloadable) with something like

 $ grep ^bash /usr/ports/INDEX | awk -F\| '{print $1 ".tgz"}'
 bash-1.14.7.tgz
 bash-2.04.tgz

or 

 $ grep ^bash-1 /usr/ports/INDEX | awk -F\| '{print $1 ".tgz"}'
 bash-1.14.7.tgz

or just type the first part of the command and do the rest with your eyes

or put it into a script which proceeds with the pkg_add after passing a few
checks such as a successful grep resulting in only one line of output,
otherwise displays its results for you to decide.


-- 

Regards,
        -*Sue*-
 
 

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?20010403205356.A20611>