[MacPorts] #59836: port should explicitly say when to use sudo when upgrading (was: Impossible to upgrade my ports with error not giving any clue to search why...)
MacPorts
noreply at macports.org
Thu Dec 12 16:04:10 UTC 2019
#59836: port should explicitly say when to use sudo when upgrading
--------------------------+--------------------
Reporter: manulcaux | Owner: (none)
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: base | Version: 2.6.2
Resolution: | Keywords:
Port: |
--------------------------+--------------------
Changes (by mf2k):
* component: ports => base
* keywords: upgrade =>
* type: defect => enhancement
* port: all =>
Old description:
> I just wanted to keep my port installation up to date and operate as
> usual, i.e. first update MacPorts and then upgrade outdated ports.
>
> Here is the messages I got :
>
> [Emmanuels:/Applications/cassis5.1last] caux% sudo port selfupdate
> Password:
> ---> Updating MacPorts base sources using rsync
> MacPorts base version 2.6.2 installed,
> MacPorts base version 2.6.2 downloaded.
> ---> Updating the ports tree
> ---> MacPorts base is already the latest version
>
> The ports tree has been updated. To upgrade your installed ports, you
> should run
> port upgrade outdated
> [Emmanuels:/Applications/cassis5.1last] caux% port upgrade outdated
> Error: Follow https://guide.macports.org/#project.tickets to report a
> bug.
> [Emmanuels:/Applications/cassis5.1last] caux%
>
> In fact, it works if I type
> sudo port upgrade outdated
>
> this should be made clear that sudo is mandatory, first in the output
> message given after the selupdate, and second in the error message sent
> if the user forgot to use sudo !
>
> And why the sudo is not taken by default when I used it a few second
> before launching sudo port self update ??
New description:
I just wanted to keep my port installation up to date and operate as
usual, i.e. first update MacPorts and then upgrade outdated ports.
Here is the messages I got :
{{{
[Emmanuels:/Applications/cassis5.1last] caux% sudo port selfupdate
Password:
---> Updating MacPorts base sources using rsync
MacPorts base version 2.6.2 installed,
MacPorts base version 2.6.2 downloaded.
---> Updating the ports tree
---> MacPorts base is already the latest version
The ports tree has been updated. To upgrade your installed ports, you
should run
port upgrade outdated
[Emmanuels:/Applications/cassis5.1last] caux% port upgrade outdated
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
[Emmanuels:/Applications/cassis5.1last] caux%
}}}
In fact, it works if I type
{{{
sudo port upgrade outdated
}}}
this should be made clear that sudo is mandatory, first in the output
message given after the selupdate, and second in the error message sent if
the user forgot to use sudo !
And why the sudo is not taken by default when I used it a few second
before launching sudo port self update ??
--
--
Ticket URL: <https://trac.macports.org/ticket/59836#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list