Skip site navigation (1)Skip section navigation (2)

FreeBSD Man Pages

Man Page or Keyword Search:
Man Architecture
Apropos Keyword Search (all sections) Output format
home | help
PKG-LOCK(8)             FreeBSD System Manager's Manual            PKG-LOCK(8)

NAME
     pkg lock, pkg unlock - lock or unlock packages

SYNOPSIS
     pkg lock [-qy] -a
     pkg lock [-giqxy] pkg-name
     pkg unlock [-qy] -a
     pkg unlock [-giqxy] pkg-name

DESCRIPTION
     pkg lock is used to lock packages against reinstallation, modification or
     deletion.  pkg unlock unlocks the named packages.  Either variant only
     has an effect on currently installed packages.  Consequently it is
     impossible to block installation of a new package by using this
     mechanism, unless such an installation implies updating a locked package.

     The impact of locking a package is wider than simply preventing
     modifications to the package itself.  Any operation implying modification
     of the locked package will be blocked.  This includes:

     +o   Attempts to reinstall, up- or downgrade or delete the locked package
         itself.
     +o   Installation, up- or downgrade of a package where the resultant
         package would have a dependency on a different version of the locked
         package.
     +o   Deletion, up- or downgrade of any package the locked package depends
         upon, either directly or as a consequence of installing or upgrading
         some third package.

OPTIONS
     The following options are supported by pkg lock:

     -a  Lock or unlock all installed packages.

     -g  Treat pkg-name as a shell glob pattern.

     -i  Make the default or the regular expression (-x) pkg-name matching
         case insensitive.

     -q  Operate quietly: do not output anything other than confirmatory
         questions.

     -x  Treat pkg-name as a regular expression according to the "modern" or
         "extended" syntax of re_format(7).

     -y  Assume "yes" as the answer to all questions.

ENVIRONMENT
     The following environment variables affect the execution of pkg lock.
     See pkg.conf(5) for further description.

     PKG_DBDIR

     ASSUME_ALWAYS_YES

FILES
     See pkg.conf(5).

SEE ALSO
     pkg.conf(5), pkg(8), pkg-add(8), pkg-annotate(8), pkg-audit(8),
     pkg-autoremove(8), pkg-backup(8), pkg-check(8), pkg-clean(8),
     pkg-config(8), pkg-convert(8), pkg-create(8), pkg-delete(8),
     pkg-fetch(8), pkg-info(8), pkg-install(8), pkg-query(8), pkg-register(8),
     pkg-repo(8), pkg-rquery(8), pkg-search(8), pkg-set(8), pkg-shell(8),
     pkg-shlib(8), pkg-stats(8), pkg-update(8), pkg-updating(8),
     pkg-upgrade(8), pkg-version(8), pkg-which(8)

FreeBSD 11.0-PRERELEASE        February 25, 2013       FreeBSD 11.0-PRERELEASE

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | ENVIRONMENT | FILES | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=pkg-lock&sektion=8&manpath=FreeBSD+10.0-RELEASE>

home | help