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

remove old packages after successful update #435

Closed
bos opened this issue May 24, 2012 · 2 comments
Closed

remove old packages after successful update #435

bos opened this issue May 24, 2012 · 2 comments

Comments

@bos
Copy link
Contributor

bos commented May 24, 2012

(Imported from Trac #442, reported by guest on 2009-01-05)

After a successful cabal update command, the old version of the package could be removed. (It required to rebuild/reinstall all the dependent packages as well. It is reported in #441 ticket.)

I do not think it should be a default behavior, but make it possible would be really nice. :)

@bos
Copy link
Contributor Author

bos commented May 24, 2012

(Imported comment by @dcoutts on 2009-01-05)

Currently we never uninstall packages. See #234.

Perhaps the best user interface would be some sort of clean / collect command to uninstall old versions of packages that are no longer needed (like nix). This would involve tracking the packages that the user deliberately installed, see #199. It's a bit tricky since we do not know all libs that are wanted by the user, in particular it's difficult to figure out if the user wants multiple versions of a package installed (unless multiple versions are required by other things they do want installed).

@tibbe
Copy link
Member

tibbe commented May 15, 2014

Closing as there's been no activity in years.

We're cleaning up the bug tracker to make it useful again and are thus closing bugs that haven't seen any activity in a long time. Please re-open (or file a new bug) if the problem reappears.

@tibbe tibbe closed this as completed May 15, 2014
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

2 participants