Fedora Linux Support Community & Resources Center

Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

Go Back   FedoraForum.org > Fedora Support > General Support

General Support Fedora general support. Ask questions here that do not belong in any other forum.

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2009-03-08, 04:55 PM CDT
wombat53 Offline
Registered User
 
Join Date: Jun 2008
Age: 56
Posts: 45
Unhappy yum-complete-transaction should be run??? Many apps to be erased....

Sometimes when running yum to add a package I get a message saying that there are incomplete transactions and suggests running "yum-complete-transaction " program.
When I do this I get something that starts like this:
--> Running transaction check
---> Package MAKEDEV.i386 0:3.23-4 set to be erased
---> Package NetworkManager-gnome.i386 1:0.7.0-0.9.3.svn3623.fc9 set to be erased
---> Package PolicyKit.i386 0:0.8-2.fc9 set to be erased
---> Package a2ps.i386 0:4.13b-71.fc9 set to be erased
---> Package acl.i386 0:2.2.47-1.fc9 set to be erased
---> Package alsa-lib.i386 0:1.0.16-3.fc9 set to be erased
---> Package alsa-utils.i386 0:1.0.16-2.fc9 set to be erased
---> Package audit.i386 0:1.7.2-6.fc9 set to be erased
---> Package audit-libs.i386 0:1.7.2-6.fc9 set to be erased
---> Package audit-libs-python.i386 0:1.7.2-6.fc9 set to be erased
---> Package authconfig.i386 0:5.4.2-1.fc9 set to be erased
---> Package authconfig-gtk.i386 0:5.4.2-1.fc9 set to be erased
---> Package bittorrent.noarch 0:4.4.0-6.fc9 set to be erased
---> Package bluez-gnome.i386 0:0.25-1.fc9 set to be erased
etc...........................
I don't think I want all these (essential?) packages erased. How can I remove this yum incomplete transaction status?
Thanks
George
  #2  
Old 2009-03-08, 05:04 PM CDT
JonathanR Offline
Registered User
 
Join Date: Aug 2007
Age: 38
Posts: 226
yum-complete-transaction is a program which finds incomplete or aborted yum transactions on a system and attempts to complete them. It looks at the transaction-all* and transaction-done* files which can normally be found in /var/lib/yum if a yum transaction aborted in the middle of execution.

If it finds more than one unfinished transaction it will attempt to complete the most recent one first. You can run it more than once to clean up all unfinished transactions.

http://linux.die.net/man/8/yum-complete-transaction
__________________
man first, info second, google is your freind, and there is always The Complete Computer Resource Smart package manager Forums
  #3  
Old 2009-03-08, 05:13 PM CDT
wombat53 Offline
Registered User
 
Join Date: Jun 2008
Age: 56
Posts: 45
Jonathan - but thing is, I don't think I want all these packages removed!!!!! There is a --cleanup-only option to this command, but I'm unwilling to use it until I understand it better.....
" --cleanup-only
Only clean up only transaction journal files and exit."
What does this mean, exactly?
wombat53
  #4  
Old 2009-03-10, 05:27 AM CDT
RahulSundaram Offline
Community Manager
 
Join Date: May 2005
Posts: 2,838
Hi,

As you might already know, RPM uses a database to keep track of package information. When you run yum, it creates a transaction journal to keep track of it's status and it gets automatically removed if completed normally. If you quit yum in the middle of a operation, it will abort and the journal will tell yum what to do to complete it. In your case, you can just cleanup the journal and move on. Yum normally wouldn't ask to remove packages to complete a transaction and that looks like it might be a bug. You might want to file a bug report in http://bugzilla.redhat.com about this before you run a cleanup.
__________________
Rahul
http://fedoraproject.org/wiki/RahulSundaram
  #5  
Old 2009-03-10, 09:14 AM CDT
wombat53 Offline
Registered User
 
Join Date: Jun 2008
Age: 56
Posts: 45
Rahul- so then, are you suggesting I simply run it with the --cleanup-only option and this will do as it says, remove the "hanging" journal entries, and I will no longer be prompted again to execute the tum-complete-transaction program, that everything will be "resolved", so to speak?
Thanks
George
  #6  
Old 2009-03-10, 09:17 AM CDT
RahulSundaram Offline
Community Manager
 
Join Date: May 2005
Posts: 2,838
Hi,

Correct but it looks like a bug in yum-complete-transaction and I would prefer you file a bug report and attach the journal files in the bug report before you run the cleanup option.

If you want to confirm that your repository is ok, you can package-cleanup --problems as well
__________________
Rahul
http://fedoraproject.org/wiki/RahulSundaram
  #7  
Old 2009-03-10, 09:48 AM CDT
wombat53 Offline
Registered User
 
Join Date: Jun 2008
Age: 56
Posts: 45
Rahul - is "package-cleanup --problems " to be run before, after, instead of, or in addition to the yum-complete-transaction --cleanup only? If in addition to, in what sequence.
Again, thanks

George
  #8  
Old 2009-03-10, 10:11 AM CDT
RahulSundaram Offline
Community Manager
 
Join Date: May 2005
Posts: 2,838
First run the yum complete transaction command, followed up package-cleanup
__________________
Rahul
http://fedoraproject.org/wiki/RahulSundaram
  #9  
Old 2009-03-10, 11:01 AM CDT
wombat53 Offline
Registered User
 
Join Date: Jun 2008
Age: 56
Posts: 45
Rahul - thanks. Let me try this later today and report back.
George
  #10  
Old 2009-03-10, 12:24 PM CDT
wombat53 Offline
Registered User
 
Join Date: Jun 2008
Age: 56
Posts: 45
Rahul: Is "package-cleanup --problems" the entire command I run (with no other options)?
George
  #11  
Old 2009-03-10, 12:55 PM CDT
RahulSundaram Offline
Community Manager
 
Join Date: May 2005
Posts: 2,838
Hi,

Yes. Why do you ask and confirm so many times. Just try it out.
__________________
Rahul
http://fedoraproject.org/wiki/RahulSundaram
  #12  
Old 2009-03-10, 02:18 PM CDT
AdamW's Avatar
AdamW Online
Fedora QA Community Monkey
 
Join Date: Dec 2008
Location: Vancouver, BC
Posts: 1,331
Rahul: when I was updating Rawhide the other day, the udev update killed GNOME, so the yum process died halfway through. It was left in a similar situation - yum-complete-transaction wanted to 'erase' a bunch of packages. I went ahead and let it, and everything worked.

It's not actually removing the packages, just the duplicate entries in the RPM database. When yum does an update, it updates every package first, then removes all the old versions from the database as the final step. If the yum process dies for some reason before this final step is done, you'll wind up with duplicate entries for all the upgraded packages in the RPM database. yum-complete-transaction should just clean up the dupe entries, and the correct versions of the packages won't actually be removed.

OP: I bet if you do:

rpm -q NetworkManager-gnome

(for example - any package on the list would be fine), you'll see there's two versions installed, and the one yum-complete-transaction wants to 'erase' is the older one. In this case, letting it run *should* be fine (though I disclaim all responsibility if it eats your puppy :>)
__________________
Adam Williamson | awilliam AT redhat DOT com
Fedora QA Community Monkey
IRC: adamw | Fedora Talk: adamwill AT fedoraproject DOT org
http://www.happyassassin.net
  #13  
Old 2009-03-10, 02:28 PM CDT
RahulSundaram Offline
Community Manager
 
Join Date: May 2005
Posts: 2,838
Hi,

Ah, well there is a simple check to confirm this theory. Either run rpm on one of the packages being listed are about to be removed by yum or run package-cleanup --dupes and check the listing first.
__________________
Rahul
http://fedoraproject.org/wiki/RahulSundaram
  #14  
Old 2009-03-10, 07:05 PM CDT
wombat53 Offline
Registered User
 
Join Date: Jun 2008
Age: 56
Posts: 45
I followed both your suggestions (Adma and Rahul) and yum-complete-transaction seemed to run fine - alone - (after first running the --cleanup-only option before that).
AT Rahul's suggestion I later ran package-cleanup --dupes and see a report like this:
bittorrent-4.4.0-6.fc9.noarch
bittorrent-4.4.0-7.fc9.noarch
fetchmail-6.3.8-7.fc9.i386
fetchmail-6.3.8-6.fc9.i386
liberation-fonts-1.04-1.fc9.noarch
liberation-fonts-1.0-4.fc9.noarch etc.........................
So it appears that rpm has a record of both old and newer versions in its books. Is there away to "clean up it's book-keeping", so there is only one occurrence of each package in rpm's "books"?
George
  #15  
Old 2009-03-10, 07:07 PM CDT
leigh123linux's Avatar
leigh123linux Offline
Administrator
 
Join Date: Oct 2006
Location: Hampshire UK
Posts: 16,644
Try
Code:
su
package-cleanup --cleandupes
Closed Thread

Tags
yum issues

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
yum-complete-transaction broken axet Software 3 2009-12-25 03:18 AM CST
Yum Complete Transaction won't complete power78 General Support 2 2009-10-15 03:59 PM CDT
yum-complete transaction question: --cleanup-only option? wombat53 Software 0 2009-03-09 11:12 AM CDT
Help, Erased /etc/init.d/network moxie General Support 5 2007-12-26 07:16 PM CST
Erased /bin ... and crashed. NingunOtro General Support 5 2005-10-09 10:56 PM CDT

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 11:58 AM CST.

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo



All trademarks, and forum posts in this site are property of their respective owner(s).

FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
Translated to other languages supported by vB Enterprise Translator 2.3.8