Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Apr 2001 19:32:42 -0600 (MDT)
From:      FreeBSD <freebsd@XtremeDev.com>
To:        =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= <mikko@dynas.se>
Cc:        <bzdik@yahoo.com>, <questions@freebsd.org>
Subject:   Re: Debian apt-get and FreeBSD
Message-ID:  <20010402191727.E34270-100000@Amber.XtremeDev.com>
In-Reply-To: <Pine.BSF.4.33.0104021743570.80911-100000@explorer.rsa.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <msergeant@snsonline.net> 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 <pkgname>" 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010402191727.E34270-100000>