Fetch pkgsrc index with pkg_search

reed at reedmedia.net reed at reedmedia.net
Tue Dec 11 07:17:59 PST 2007


On Tue, 11 Dec 2007, Matthias Schmidt wrote:

> Would it be possible to add the pkgsrc INDEX to an official server?
> This enables users to use pkg_search on DragonFly without the need to
> download the whole tree and only install binary packages.

We have a documented data file -- see pkg_summary(5) manual page.

Here is a small part of a shell script I use:

TAG=2007Q3
OPERATING_SYSTEM=`uname -s`
##OS_VERSION=`uname -r`
OS_VERSION=4.0
PLATFORM=`uname -p` # should I use -m?
PKG_REPO=${OPERATING_SYSTEM}/${PLATFORM}/${OS_VERSION}_${TAG}/All
DOWNLOAD_URL="http://ftp.NetBSD.org/pub/pkgsrc/packages/${PKG_REPO}/"
ftp ${DOWNLOAD_URL}/pkg_summary.gz





More information about the Users mailing list