Date: Wed, 09 Nov 2022 02:59:16 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 267657] pkg upgrade prompts to install if package is missing Message-ID: <bug-267657-227-F90YfxyokX@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-267657-227@https.bugs.freebsd.org/bugzilla/> References: <bug-267657-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267657 --- Comment #1 from Ryan <freebsd@haraschak.com> --- This becomes a problem when calling the following command from Ansible: `pkg upgrade -y [pkg name]` As this will now install the missing package(s) instead of only upgrading existing packages. Example command invocation directly on a test server (FreeBSD 13.1-RELEASE-= p3 GENERIC amd64): (pts/4)[root@server1:~]# pkg info nginx pkg: No package(s) matching nginx (pts/4)[root@server1:~]# pkg upgrade nginx Updating FreeBSD repository catalogue... FreeBSD repository is up to date. All repositories are up to date. The following 2 package(s) will be affected (of 0 checked): New packages to be INSTALLED: nginx: 1.22.1_1,3 Installed packages to be UPGRADED: pcre: 8.45_1 -> 8.45_3 Number of packages to be installed: 1 Number of packages to be upgraded: 1 The process will require 1 MiB more space. 2 MiB to be downloaded. Proceed with this action? [y/N]: --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-267657-227-F90YfxyokX>