From owner-freebsd-questions Tue Apr 3 3:53:37 2001 Delivered-To: freebsd-questions@freebsd.org Received: from phoenix.welearn.com.au (unknown [139.130.44.81]) by hub.freebsd.org (Postfix) with ESMTP id 14FDC37B71C for ; Tue, 3 Apr 2001 03:53:33 -0700 (PDT) (envelope-from sue@phoenix.welearn.com.au) Received: (from sue@localhost) by phoenix.welearn.com.au (8.9.3/8.9.3) id UAA25218; Tue, 3 Apr 2001 20:54:02 +1000 (EST) (envelope-from sue) Date: Tue, 3 Apr 2001 20:53:58 +1000 From: Sue Blake To: FreeBSD Cc: =?iso-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= , bzdik@yahoo.com, questions@FreeBSD.ORG Subject: Re: Debian apt-get and FreeBSD Message-ID: <20010403205356.A20611@welearn.com.au> References: <20010402191727.E34270-100000@Amber.XtremeDev.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <20010402191727.E34270-100000@Amber.XtremeDev.com>; from FreeBSD on Mon, Apr 02, 2001 at 07:32:42PM -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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