freebsd / pkg

Package management tool for FreeBSD. Help at #pkg on Libera Chat or pkg@FreeBSD.org
Other
744 stars 278 forks source link

pkg add (force) installs non-compatible arch package #1384

Open fichtner opened 8 years ago

fichtner commented 8 years ago

Shouldn't this be a hard failure?

# pkg add -f https://pkg.opnsense.org/freebsd:10:x86:32/15.7.25/OpenSSL/Latest/pkg.txz
Fetching pkg.txz: 100%    2 MiB 354.6kB/s    00:07    
Installing pkg-1.6.2...
pkg: wrong architecture: FreeBSD:10:i386 instead of FreeBSD:10:amd64
package pkg is already installed, forced install
Extracting pkg-1.6.2: 100%
Message from pkg-1.6.2:
If you are upgrading from the old package format, first run:

  # pkg2ng
# pkg
ELF interpreter /libexec/ld-elf.so.1 not found
Abort
fichtner commented 8 years ago

If this isn't relevant at all I will close?