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_REPLACE(1) FreeBSD General Commands Manual PKG_REPLACE(1)

pkg_replace
a utility for upgrading installed packages

pkg_replace [-habBcCdfFiJknNOpPPqrRuvVwW] [--automatic] [--batch] [--clean] [--cleanup] [--config] [--debug] [--exclude pkgname] [--force-config] [--noclean] [--nocleanup] [--noconfig] [--version] [-j jobs] [-l file] [-L prefix] [-m make_args] [-M make_env] [-x pkgname] [[pkgname[=package]] [package] [pkgorigin] ...]

The pkg_replace command is used to upgrade installed packages.

The following options are supported:
Show help and exit.
Do with all the installed packages.
Keep backup packages of the old versions. By default, the created backup package will be deleted after installation.
Do not backup old packages.
Set automatic flag for the package. This affects the operation of pkg-autoremove(8).
Run an upgrading process in a batch mode (with BATCH=yes).
, --config
Do “make config-conditional” before build.
, --force-config
Do “make config” before build.
Do “make clean” before build.
Do “make clean” after build. This is the default.
, -R
In addition to the specified packages, replace all packages that required by those packages as well.
Debug mode. Execute with “set -x” option.
Force to replace packages.
Fetch distfiles or packages, do not replace.
Turn on interactive mode.
jobs
Number of parallel jobs. Default value gets from `sysctl -n hw.ncpu`.
Do not install the target packages, but install the dependencies.
Force the upgrade of a package even if some of the requisite packages have failed to upgrade in advance.
FILE
Save the results to FILE. By default, pkg_replace does not save results.
PREFIX
Save the logs in the files that begins with PREFIX.
ARGS
Specify arguments to append to each make(1) command. Please see section EXAMPLES.
ARGS
Specify arguments to prepend to each make(1) command.
Do not actually replace any packages.
Do not read the configuration file.
Install new packages, do not replace.
Do not check the dependencies before building the target packages.
Do “make package”.
Use binary packages instead of installing from source. pkg_replace finds them from the directory specified by PKGREPOSITORY, and the remote site specified by PACKAGEROOT.
Be forced to use binary packages. Never use the port even if a package is not available either locally or remotely.
In addition to the specified packages, replace all packages that depend on those packages as well.
Do not preserve old shared libraries. By default, pkg_replace preserves old shared libraries in PKGCOMPATDIR.
Turn on verbose output.
List the installed packages that need updating.
Print pkg_replace version.
, --noclean
Do not “make clean” before each build. This is the default.
, --nocleanup
Do not “make clean” after each installation.
, --exclude GLOB
Do not replace packages matching the specified glob pattern.

  • pkgname examples:

    name-version, name and shell glob.
    glib-2.36.3_2, glib and “glib*”
  • pkgorigin examples:

    devel/glib20
  • Path:

    Absolute and relative paths are allowed.
  • Install glib:

    pkg_replace -N devel/glib20
  • Install py-cairo with FLAVOR=py37

    pkg_replace -m FLAVOR=py37 -N graphics/py-cairo
    or
    pkg_replace -N graphics/py-cairo@py37
  • Replace glib:

    pkg_replace glib
  • Replace perl and all packages that depend on it:

    pkg_replace -r perl
  • If the xterm package is already installed, replace it with xterm-220:

    pkg_replace /usr/ports/packages/All/xterm-220.tbz
  • Replace XFree86-libraries with /usr/ports/x11/xorg-libraries:

    pkg_replace XFree86-libraries=/usr/ports/x11/xorg-libraries
  • Replace XFree86-libraries with pkgorigin x11/xorg-libraries:

    pkg_replace XFree86-libraries=x11/xorg-libraries
  • Replace XFree86-libraries with /var/tmp/xorg-libraries-6.9.0 package:

    pkg_replace XFree86-libraries=/var/tmp/xorg-libraries-6.9.0.tbz
  • Replace graphics/py-cairo with FLAVOR=py37

    pkg_replace -m FLAVOR=py37 graphics/py-cairo
    or
    pkg_replace graphics/py-cairo@py37

The portupgrade(1) options -A, -B, -D, -e, -o, -q, -s, -S, -u and -y are no longer supported.

portupgrade(1), pkg(8) ports(7),

Securedog ⟨securedog@users.sourceforge.jp⟩
Ken DEGUCHI ⟨kdeguchi@sz.tokoha-u.ac.jp⟩

Sure to be some.
March 4, 2022 FreeBSD 13.1-RELEASE

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.