ZOSOpenTools / meta

Meta repository to tie together the various underlying z/OS Open Source tools repositories here
https://zosopentools.github.io/meta/
Apache License 2.0
37 stars 25 forks source link

Add update as a synonym for upgrade #695

Open catherdersoftware opened 4 months ago

catherdersoftware commented 4 months ago

As we tend to speak of updates in our ecosystem, it would be helpful to support updateas a synonym for upgrade. Microsoft wingetalready has this feature.

IgorTodorovskiIBM commented 4 months ago

Of the package managers that I've used, update and upgrade have a different meaning.

For brew:

brew update and brew upgrade are different. Update is for Homebrew itself. Upgrade is for individual software packages.

Apt-get is similar I believe.

With that said, adding support for update is a good idea. @DevonianTeuchter @MikeFultonDev @HarithaIBM what do you think?

HarithaIBM commented 4 months ago

Right, understanding this bit further:

DevonianTeuchter commented 4 months ago

This was something originally supported and removed in favour of just having a single "update" verb at the request of others 🙂. It really depends on experience of other package managers as to which verb to use. A synonym is doable though might lead to complications (with --help etc where logic would be needed to determine which verb to display; there was an issue with install/update that highlighted this #metaport/51 )

jshimoda9323 commented 3 months ago

I would like to add my support for a version of zopen that supports --update that merely fetches the latest release information into a local index, and --upgrade that actually performs the upgrade - similar to apt-get. Using this, we could also improve the performance of zopen list significantly by only comparing locally installed packages with the local index.