From owner-freebsd-questions Mon Apr 2 18:33: 6 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.XtremeDev.com (xtremedev.com [216.241.38.65]) by hub.freebsd.org (Postfix) with ESMTP id 8DC5637B71D for ; Mon, 2 Apr 2001 18:32:51 -0700 (PDT) (envelope-from freebsd@XtremeDev.com) Received: by mail.XtremeDev.com (Postfix, from userid 1008) id D5A9C5B9D; Mon, 2 Apr 2001 19:32:42 -0600 (MDT) Received: from localhost (localhost [127.0.0.1]) by mail.XtremeDev.com (Postfix) with ESMTP id 9CF081C9D2; Mon, 2 Apr 2001 19:32:42 -0600 (MDT) Date: Mon, 2 Apr 2001 19:32:42 -0600 (MDT) From: FreeBSD To: =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= Cc: , Subject: Re: Debian apt-get and FreeBSD In-Reply-To: Message-ID: <20010402191727.E34270-100000@Amber.XtremeDev.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 2 Apr 2001, [ISO-8859-1] Mikko Ty=F6l=E4j=E4rvi wrote: > On Mon, 2 Apr 2001, FreeBSD wrote: > > > Is there currently a way to install the package via a make target in th= e > > ports tree? Ie., cd /usr/ports/*/apsfilter && make install-pkg ? > > Just out of curiosity. > > Err... what? > > If you have a package (an archive file with a .tgz suffix, containing > the pre-built software), you install it with "pkg_add". > > If you use the port, you automagically fetch the source code, apply > patches, build and install it with "make install" (or "make install > clean" to also get rid of all temporary files). > > (And, should you for some reason then want to create a package, you > can do a "make package", but that requires the software to have been > installed first, using "make install", and will produce the archive > file, the one with a .tgz suffix, for use by pkg_add on some other > machine (or on the same machine, if you first remove the installed > version using pkg_delete)) > > Dunno if that answers your question, but that is how it works ;-) 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. > > /Mikko > > > On Mon, 2 Apr 2001, Mikko Tyolajarvi wrote: > > > > > In local.freebsd.questions you write: > > > > > > >--- Mark Sergeant wrote: > > > >> I have to say I like the current system of cd /usr/ports/whatever = ; make > > > >> install clean a lot more than I ever did like debians apt-get. > > > >> Mind you I also have cvsup -g -L 2 ports-supfile as a crontab entr= y > > > >> running > > > >> once a week. > > > >> > > > >> Cheers, > > > >> > > > >> Mark > > > > > > >thanx, I guess I was too lazy to study both well enough. > > > > > > "pkg_add -r " is a really lazy way to install binary package= s. > > > > > > $.02, > > > /Mikko > > > > > > > > > Mikko Ty=F6l=E4j=E4rvi_______________________________________mikko@rsase= curity.com > RSA Security > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message