pkg force to add a package
Tomasz Sowa
tomek at ttmath.org
Thu Feb 11 10:38:37 UTC 2016
On 2016.02.10 23:50, Baptiste Daroussin wrote:
[...]
> What you were looking for was pkg install ./nettle-3.2.tar which will replace
> the old nettle already installed.
Thanks, it works almost well but...sample without the internet connection:
[second_machine]/home/tomek# ls nettle* gnutls*
gnutls-3.3.17.1_2.tar nettle-3.2.tar
[second_machine]/home/tomek# pkg install -Uf ./nettle-3.2.tar
The following 2 package(s) will be affected (of 0 checked):
Installed packages to be UPGRADED:
nettle: 2.7.1 -> 3.2
gnutls: 3.3.15 -> 3.3.17.1_2
The process will require 709 KiB more space.
2 MiB to be downloaded.
Proceed with this action? [y/N]: y
And it waits for something forever... When I connect to the internet then:
[second_machine]/home/tomek# pkg install -Uf ./nettle-3.2.tar
The following 2 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
nettle: 3.2
gnutls: 3.3.17.1_2
The process will require 11 MiB more space.
2 MiB to be downloaded.
Proceed with this action? [y/N]: y
[second_machine] Fetching gnutls-3.3.17.1_2.txz: 100% 2 MiB 327.1kB/s 00:06
Checking integrity... done (0 conflicting)
[second_machine] [1/2] Installing nettle-3.2...
[second_machine] [1/2] Extracting nettle-3.2: 100%
[second_machine] [2/2] Installing gnutls-3.3.17.1_2...
[second_machine] [2/2] Extracting gnutls-3.3.17.1_2: 100%
It seems nettle has been installed from the local package but gnutls
has been downloaded from a remote repo. Is there an option to install
all packages from my local disk?
I was trying to use a wildcard but it gives me:
[second_machine]# pkg install -Uf *
pkg: /usr/home/tomek/penik/pakiety_2016.02.07/appstream-glib-0.4.1.tar is not a valid package: no manifest found
pkg: No packages available to install matching 'appstream-glib-0.4.1' have been found in the repositories
and I don't see an option to skip the broken package.
--
Tomek
More information about the freebsd-pkg
mailing list