GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
PKG_FETCH(1) FreeBSD General Commands Manual PKG_FETCH(1)

pkg_fetch
a remote package fetcher

pkg_fetch [-hfqRv] pkgname[@] ...

The pkg_fetch command downloads binary packages from remote sites. It can optionally download packages recursively through dependencies.

The following command line arguments are supported:

pkgname
Specify a full pkgname, a pkgname without version, or a full URI.

If pkgname is a full package name with version, pkg_fetch will use “All” directory on a server for fetching.

If pkgname is a name without version, it will be fetched from “Latest” directory. You can force using of “Latest” directory for ambiguous cases adding @ to the pkgname.

If a full URI is supplied, required packages are also fetched from the same site when -R is specified.

 
Show help and exit.

 
Download a package even if it is recorded as installed. By default, pkg_fetch skips the packages which are recorded as installed.

 
Do not read the configuration file - $PREFIX/etc/pkgtools.conf.

Remove existing packages if they are corrupt.

 
Download the packages required by the given packages as well.

 
Turn on verbose output.

URI of the root of your preferred mirror site. Default is “ftp://ftp.FreeBSD.org”. The site must have a directory “/pub/FreeBSD/ports/$arch/packages-$release/”.

URI of the directory to fetch packages from. This variable precedes all other package site related variables, i.e. PACKAGEROOT and PKG_SITES. Use of this variable is discouraged. Use PKG_SITES.

List of URI's to fetch packages from separated by space. Each site directory must contain directories named “All” and “Latest”.

Base directory where pkg_fetch saves downloaded packages. Default is “$PORTSDIR/packages”.

Alternative location for the installed package database. Default is “/var/db/pkg”.

Alternative command for downloading files. Default is “/usr/bin/fetch -ao '%2$s' '%1$s'”, where every actual command line is composed as:

sprintf(PKG_FETCH, URI, path)

For example, try “wget -O '%2$s' '%1$s'” or “curl '%s' -o '%s'”.

 
(In that order) Temporary directory where pkg_fetch downloads files temporarily. If neither is not defined, “/var/tmp” is used.

Alternative location for the ports tree. Default is “/usr/ports”.

Configuration file for the pkgtools suite. Default is “$PREFIX/etc/pkgtools.conf”.

/usr/ports
Default location of the ports tree
/usr/ports/packages/All
Default location to save downloaded files into.
/var/tmp
Default location to save downloaded files into temporarily.
$PREFIX/etc/pkgtools.conf
Default location of the pkgtools configuration file.

fetch(1), pkg_add(1), portinstall(1), portupgrade(1), pkgtools.conf(5), ports(7)

Akinori MUSHA ⟨knu@iDaemons.org⟩
June 13, 2006 FreeBSD

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.