Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement upgrade feature #5151

Closed
XVilka opened this issue Feb 16, 2018 · 3 comments
Closed

Implement upgrade feature #5151

XVilka opened this issue Feb 16, 2018 · 3 comments

Comments

@XVilka
Copy link

XVilka commented Feb 16, 2018

Many years passed and people still struggle how to update all packages, like e.g. opam upgrade can.
There is even a workaround like:

cabal list --simple-output --installed | awk '{print $1}' | uniq | xargs -I {} cabal install {} --reinstall

(taken from https://stackoverflow.com/questions/6905163/whats-the-best-workaround-for-not-having-cabal-upgrade/6905267#6905267 )

Would be nice to finally have it. (Yes, I know about Stack, but it's still far from being widely used).

@hvr
Copy link
Member

hvr commented Feb 16, 2018

This may have made sense in the old-build paradigm, but it doesn't apply anymore in the nix-style local builds paradigm (where a world file doesn't make much sense anymore), where the package db (which is called a "nix-style store") is merely a binary cache. It's not a stateful pkg db you can "upgrade". Or did I misunderstand your suggestion?

See also http://cabal.readthedocs.io/en/latest/nix-local-build-overview.html

@23Skidoo
Copy link
Member

Check out cabal outdated and #4831.

@gbaz
Copy link
Collaborator

gbaz commented Aug 28, 2021

closing as obsolete

@gbaz gbaz closed this as completed Aug 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants