RE: Wow
December 4, 2006
Here’s a tool I put together to help with that problem,
It should probably go into yum-utils before long but there’s still some question if we shouldn’t handle the ‘something aborted the transaction badly, let’s restart in the middle’ problem internal to yum.
Update: Looks like you’re not alone
December 4, 2006 at 4:03 am
The .deb/apt world has the concept of “half-installed” or “half-removed”, which allows for the cleaning up of aborted operations in a much cleaner way (if a package is half-removed, the next time you fire up apt it knows it’s supposed to complete the removal, but that it might be in an inconsistent state). The RPM world appears to lack this concept.
December 4, 2006 at 8:15 am
How do you guarantee it is actually half-installed/half-removed and not “a quarter” installed? What are the checkpoints that are defined?
December 27, 2006 at 11:07 am
Doesn’t work I’m afraid:
# ./dupes-cli.py
Setting up repositories
…and then nothing.
December 27, 2006 at 2:40 pm
It doesn’t output anything? Not even a message about ‘no dupes to remove’?
January 8, 2007 at 1:54 pm
# ./dupes-cli.py
gives the following results (I skip begining) :
…..
Reading repository metadata in from local files
Setting up Package Sacks
skipping reposetup, pkgsack exists
Traceback (most recent call last):
File “./dupes-cli.py”, line 75, in ?
main()
File “./dupes-cli.py”, line 63, in main
num = setupOldDupes(my)
File “./dupes-cli.py”, line 36, in setupOldDupes
dupedict = findDupes(my)
File “./dupes-cli.py”, line 19, in findDupes
for (n,a,e,v,r) in my.rpmdb.simplePkgList():
AttributeError: RpmDBHolder instance has no attribute ‘simplePkgList’
since there is still a conflit on my fc5 between
python and python-devel
(Error: python-devel conflicts with python
January 8, 2007 at 3:46 pm
That means the version of yum you have is too old. The dupes-cli.py will probably only work with yum 3.0 and up.
January 11, 2007 at 5:53 pm
A friend upgrade from FC4 to FC6, it crash before in ts. Over 1000 dups! dupes-cli fixed the most.
Thanks! Please include in yum-utils.