From owner-freebsd-questions Tue Apr 3 1:22:20 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 1C27737B753 for ; Tue, 3 Apr 2001 01:22:11 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 71586 invoked by uid 100); 3 Apr 2001 08:22:10 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15049.34866.573264.741294@guru.mired.org> Date: Tue, 3 Apr 2001 03:22:10 -0500 To: FreeBSD Cc: questions@freebsd.org Subject: Re: Debian apt-get and FreeBSD In-Reply-To: <34898606@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG FreeBSD types: > 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. You can get the package name out of the port: su-2.04# pwd /usr/ports/shells/bash1 su-2.04# make -V PKGNAME bash-1.14.7 su-2.04# So the single command you want in the ports tree is: pkg_add -r `make -V PKGNAME` I'm not sure that a make target in the port system to do this makes sense, but it certainly wouldn't be hard to do. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message