apk info does not recognise -I parameter, only the longer --rinstall-if
Environment: Alpine 3.13, apk-tools-2.12.0-r4
Example, I guess it is self-explanatory:
# apk info -I lxc
apk: unrecognized option: I
apk-tools 2.12.0, compiled for x86_64.
usage: apk info [<OPTIONS>...] PACKAGES...
or: apk info -W FILE
Description:
apk info prints information known about the listed packages. By default, it
prints the description, webpage, and installed size of the package
(equivalent to apk info -dws).
Global options:
-f, --force Enable selected --force-* options (deprecated)
-i, --interactive Ask confirmation before performing certain
operations
-p, --root <ROOT> Manage file system at ROOT
-q, --quiet Print less information
-U, --update-cache Alias for '--cache-max-age 1'
-v, --verbose Print more information (can be specified twice)
-V, --version Print program version and exit
-X, --repository <REPO>
Specify additional package repository
--allow-untrusted Install packages with untrusted signature or no
signature
--arch ARCH Temporarily override architecture, to be combined
with --root
--cache-dir CACHEDIR Temporarily override the cache directory
--cache-max-age AGE Maximum AGE (in minutes) for index in cache before
it's refreshed
--force-binary-stdout
Continue even if binary data will be printed to the
terminal
--force-broken-world Continue even if WORLD cannot be satisfied
--force-non-repository
Continue even if packages may be lost on reboot
--force-old-apk Continue even if packages use unsupported features
--force-overwrite Overwrite files in other packages
--force-refresh Do not use cached files (local or from proxy)
--keys-dir KEYSDIR Override directory of trusted keys
--no-cache Do not use any local cache path
--no-network Do not use the network
--no-progress Disable progress bar even for TTYs
--print-arch Print default arch and exit
--progress Show progress
--progress-fd FD Write progress to the specified file descriptor
--purge Delete modified configuration files on package
removal and uninstalled packages from cache on cache
clean
--repositories-file REPOFILE
Override system repositories, see repositories
--wait TIME Wait for TIME seconds to get an exclusive repository
lock before failing
Info options:
-a, --all List all information known about the package
-d, --description Print the package description
-e, --installed Check package installed status
-L, --contents List files included in the package
-i, --install-if List the package's install_if rule
-I, --rinstall-if List other packages whose install_if rules refer to
this package
-r, --rdepends List reverse dependencies of the package (all other
packages which depend on the package)
-R, --depends List the dependencies of the package
-s, --size Print the package's installed size
-w, --webpage Print the URL for the package's upstream webpage
-W, --who-owns Print the package which owns the specified file
--license Print the package SPDX license identifier
--replaces List the other packages for which this package is
marked as a replacement
--triggers Print active triggers for the package
For more information: man 8 apk-info
# apk info --rinstall-if lxc
lxc-4.0.6-r1 affects auto-installation of:
lxc-lvm-4.0.6-r1
lxc-openrc-4.0.6-r1
lxc-doc-4.0.6-r1
#