Bug 200508 - pkg upgrade doesn't work for pkg-name-version
Summary: pkg upgrade doesn't work for pkg-name-version
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-pkg (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-29 00:20 UTC by philk
Modified: 2018-01-12 14:16 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description philk 2015-05-29 00:20:09 UTC
The pkg upgrade doesn't do what is says in the man page.

 pkg upgrade [<pkg-origin|pkg-name|pkg-name-version> ...]

Specifically it doesn't work if you specify pkg-name-version.

Test case:

# pkg info -E curl
curl-7.42.0
# pkg upgrade curl-7.42.0
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
Checking integrity... done (0 conflicting)
Your packages are up to date.
# pkg search curl | grep ^curl-7
curl-7.42.1
# pkg upgrade curl
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.

The following 3 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        perl5.18: 5.18.4_14

Installed packages to be UPGRADED:
        curl: 7.42.0 -> 7.42.1
        ca_root_nss: 3.18.1 -> 3.19

The process will require 43 MiB more space.
14 MiB to be downloaded.
Comment 1 Walter Schwarzenfeld freebsd_triage 2018-01-12 06:25:02 UTC
If I understand it right, I think this is solved.
Comment 2 Baptiste Daroussin freebsd_committer freebsd_triage 2018-01-12 14:16:33 UTC
this is expected and intended for now, this might be improved later