Tried to install atop inwards i of the CentOS servers. Due to the fact this server is locked down, the install procedure failed. Next affair I know yum is giving me grief alongside the next error
There are unfinished transactions remaining. You mightiness reckon running yum-complete-transaction get-go to destination them.
The plan yum-complete-transaction is establish inwards the yum-utils package.
Next upward I tried to produce an yum update in addition to it gave me an error. Nothing serious, but simply annoying that CentOS is halfway stuck installing atop.
root@someserver [ ]# yum update
Loaded plugins: fastestmirror
Setting upward Update Process
Loading mirror speeds from cached hostfile
Resolving Dependencies
There are unfinished transactions remaining. You mightiness reckon running yum-complete-transaction get-go to destination them.
The plan yum-complete-transaction is establish inwards the yum-utils package.
--> Running transaction check
---> Package kernel.x86_64 0:2.6.32-504.1.3.el6 volition survive installed
--> Finished Dependency Resolution
--> Running transaction check
---> Package kernel.x86_64 0:2.6.32-358.6.2.el6 volition survive erased
--> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================
Installing:
kernel x86_64 2.6.32-504.1.3.el6 updates 29 M
Removing:
kernel x86_64 2.6.32-358.6.2.el6 @updates 116 M
Transaction Summary
============================================================================================================================================
Install 1 Package(s)
Remove 1 Package(s)
Total download size: 29 M
Is this ok [y/N]: N
Exiting on user Command
So to resolve this yum-complete-transaction is required to consummate the unfinished transactions, which is the mess created yesteryear a failed atop installation.
yum-complete-transaction(8) – Linux human being page
yum-complete-transaction is a plan which finds incomplete or aborted yum transactions on a organisation in addition to attempts to consummate them. It looks at the transaction-all* in addition to transaction-done* files which tin unremarkably survive establish inwards /var/lib/yum if a yum transaction aborted inwards the midpoint of execution.
If it finds to a greater extent than than i unfinished transaction it volition crusade to consummate the well-nigh recent i first. You tin run it to a greater extent than than i time to build clean upward all unfinished transactions.
Fixing “There are unfinished transactions remaining. You mightiness reckon running yum-complete-transaction get-go to destination them” inwards CentOS
First you lot ask to install yum-utils packet which contains yum-complete-transaction. To install yum-utils, role the next comand:
root@someserver[ ]# yum install yum-utils
(or)
someuser@someserver[ ]# sudo yum install yum-utils
Loaded plugins: fastestmirror
Setting upward Install Process
Loading mirror speeds from cached hostfile
Resolving Dependencies
There are unfinished transactions remaining. You mightiness reckon running yum-complete-transaction get-go to destination them.
The plan yum-complete-transaction is establish inwards the yum-utils package.
--> Running transaction check
---> Package yum-utils.noarch 0:1.1.30-30.el6 volition survive installed
--> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================
Installing:
yum-utils noarch 1.1.30-30.el6 base of operations 110 k
Transaction Summary
============================================================================================================================================
Install 1 Package(s)
Total download size: 110 k
Installed size: 307 k
Is this ok [y/N]: y
Downloading Packages:
yum-utils-1.1.30-30.el6.noarch.rpm | 110 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : yum-utils-1.1.30-30.el6.noarch 1/1
Verifying : yum-utils-1.1.30-30.el6.noarch 1/1
Installed:
yum-utils.noarch 0:1.1.30-30.el6
Complete!
Now simply consequence the next dominance to produce a cleanup only.
root@someserver [ ]# yum-complete-transaction --cleanup-only
(or)
someuser@someserver [ ]# sudo yum-complete-transaction --cleanup-only
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Cleaning upward unfinished transaction journals
Cleaning upward 2014-10-29.11:34.57
Next verify using yum update command
root@someserver [ ]# yum update
(or)
someuser@someserver [ ]# sudo yum update
Loaded plugins: fastestmirror
Setting upward Update Process
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package kernel.x86_64 0:2.6.32-504.1.3.el6 volition survive installed
--> Finished Dependency Resolution
--> Running transaction check
---> Package kernel.x86_64 0:2.6.32-358.6.2.el6 volition survive erased
--> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================
Installing:
core x86_64 2.6.32-504.1.3.el6 updates 29 M
Removing:
core x86_64 2.6.32-358.6.2.el6 @updates 116 M
Transaction Summary
============================================================================================================================================
Install 1 Package(s)
Remove 1 Package(s)
Total download size: 29 M
Is this ok [y/N]: n
Exiting on user Command
As you lot tin encounter at i time yum commands tin survive run without the unfinished transactions warning.



