Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190554 - emerge can't uninstall a half-installed package
Summary: emerge can't uninstall a half-installed package
Status: RESOLVED DUPLICATE of bug 23851
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-28 18:10 UTC by Robert Forsman
Modified: 2007-08-28 18:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Forsman 2007-08-28 18:10:28 UTC
If emerge fails while copying files (due to partition being full?) it leaves you with an a pile of files scattered around, and a half-installed package in /var/db/pkg that you can't uninstall (named -MERGING-something )

There needs to be a clean way to uninstall the files and reclaim the disk space.

emerge --unmerge -- -MERGING-something 
does not work.

I'm thinking a --depclean should offer to uninstall such a package.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-08-28 18:14:28 UTC
Dupe of Bug 137751 which is dupe of Bug 23851

*** This bug has been marked as a duplicate of bug 23851 ***
Comment 2 Robert Forsman 2007-08-28 18:24:09 UTC
I'm sure that solving bug 23851 would prevent the problem I had, but are you absolutely certain that there are no other ways for emerge to fail that leave behind a -MERGING directory.
Comment 3 Robert Forsman 2007-08-28 18:31:16 UTC
I was able to remove the package by renaming the directory in /var/db/pkg to something that did not begin with a -.  Then emerge --unmerge could remove it.