Discussion:
Force pkg to re/install packages without dependencies
Mamontov Roman
2021-04-28 08:08:24 UTC
Permalink
Hello.

After upgrade from stable/12 to stable/13 I have packages with changed ABI:
(ABI changed: 'freebsd:12:x86:64' -> 'freebsd:13:x86:64')
How I can force pkg to reinstall (or install) packages without dependencies?
Man show me option "-M, --ignore-missing ", but when I try to install some
packages i see, that pkg want to install other packages:

# pkg install -M php74
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 10 package(s) will be affected (of 0 checked):

Installed packages to be REMOVED:
git-tiny: 2.31.1_1

New packages to be INSTALLED:
php74: 7.4.16

Installed packages to be UPGRADED:
curl: 7.75.0 -> 7.76.0
libnghttp2: 1.42.0 -> 1.43.0

Installed packages to be REINSTALLED:
clamav-0.103.2,1 (ABI changed: 'freebsd:12:x86:64' -> 'freebsd:13:x86:64')
json-c-0.15_1 (ABI changed: 'freebsd:12:x86:64' -> 'freebsd:13:x86:64')
libargon2-20190702 (ABI changed: 'freebsd:12:x86:64' -> 'freebsd:13:x86:64')
libmspack-0.10.1 (ABI changed: 'freebsd:12:x86:64' -> 'freebsd:13:x86:64')
libxml2-2.9.10_3
pcre2-10.36 (ABI changed: 'freebsd:12:x86:64' -> 'freebsd:13:x86:64')

Number of packages to be removed: 1
Number of packages to be installed: 1
Number of packages to be upgraded: 2
Number of packages to be reinstalled: 6

How I can install/reinstall only wanted packages?
Theron
2021-04-29 07:16:22 UTC
Permalink
Post by Mamontov Roman
Hello.
(ABI changed: 'freebsd:12:x86:64' -> 'freebsd:13:x86:64')
How I can force pkg to reinstall (or install) packages without dependencies?
Man show me option "-M, --ignore-missing ", but when I try to install some
# pkg install -M php74
That option can work by separating fetch from install:

# pkg fetch portname
# pkg add -M /var/cache/pkg/portname.txz

Why do you want to leave dependencies not updated?
Mamontov Roman
2021-04-29 07:51:27 UTC
Permalink
Post by Theron
Post by Mamontov Roman
Hello.
(ABI changed: 'freebsd:12:x86:64' -> 'freebsd:13:x86:64')
How I can force pkg to reinstall (or install) packages without dependencies?
Man show me option  "-M, --ignore-missing ", but when I try to install some
# pkg install -M php74
# pkg fetch portname
# pkg add -M /var/cache/pkg/portname.txz
Thanks. But why in above example pkg want to remove git-tiny?
Post by Theron
Why do you want to leave dependencies not updated?
Because when I do batch upgrade, pkg will install some new packages (they come
from upgrading something packages - i.e install python 3 as new dependency
for example) that don't need me.

Loading...