Date: Tue, 3 Apr 2001 03:22:10 -0500 From: Mike Meyer <mwm@mired.org> To: FreeBSD <freebsd@XtremeDev.com> Cc: questions@freebsd.org Subject: Re: Debian apt-get and FreeBSD Message-ID: <15049.34866.573264.741294@guru.mired.org> In-Reply-To: <34898606@toto.iv>
next in thread | previous in thread | raw e-mail | index | archive | help
FreeBSD <freebsd@XtremeDev.com> 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. <mike -- Mike Meyer <mwm@mired.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15049.34866.573264.741294>