View Full Version : Cleaning duplicate files?

28th September 2012, 01:47 AM
I'm having issues with duplicate files. First thing I've done was run 'yum-complete-transaction --cleanup --only' and then I've run ' package-cleanup --cleandupes'

The problem I'm having with 'package-cleanup --cleandupes is that once the terminal has found the packages to cleanup I answer 'Y' to begin the clean up. The program starts to list the duplicate files to erase then begins to erase them only to stop dead in it's tracks after it gets down 2 or 3 files in the queue. Konsole cursor stops blinking and remains stationary which tells me the system is probably locked up.

How can I fix this ?. I want to update my files (and there are some) but I can't get rid of anything because the system is locking up trying to erase the duplicate files.

Any help is appreciated.

Rich :doh:

---------- Post added at 06:47 PM ---------- Previous post was at 06:40 PM ----------

================================================== ================================================== ================================================== ================================================== ===========
Package Arch Version Repository Size
================================================== ================================================== ================================================== ================================================== ===========
mplayer-common x86_64 1.0-0.140.20120205svn.fc17 @rpmfusion-free-updates 1.3 M
php-symfony2-Config noarch 2.0.16-1.fc17 installed 107 k
php-symfony2-CssSelector noarch 2.0.16-1.fc17 installed 62 k
php-symfony2-HttpFoundation noarch 2.0.16-1.fc17 installed 175 k
php-symfony2-Yaml noarch 2.0.16-1.fc17 installed 52 k
syncevolution x86_64 1:1.2.2-1.fc17 @updates 2.1 M
syncevolution-libs x86_64 1:1.2.2-1.fc17 @updates 4.2 M
usb_modeswitch x86_64 1.2.3-1.fc17 installed 328 k
usb_modeswitch-data noarch 20120120-1.fc17 @updates 84 k
Removing for dependencies:
dvdstyler x86_64 1:2.3-1.fc17 @rpmfusion-free-updates 8.3 M
gecko-mediaplayer x86_64 1.0.6-1.fc17 installed 549 k
get_iplayer noarch 2.80-5.fc17 @rpmfusion-free 377 k
gmtk x86_64 1.0.6-1.fc17 installed 198 k
gnome-mplayer x86_64 1.0.6-2.fc17 installed 304 k
k9copy x86_64 2.3.8-2.fc17 @rpmfusion-free 3.4 M
kplayer x86_64 1:0.7.0-7.20081211cvs.fc17 @rpmfusion-free 11 M
mencoder x86_64 1.0-0.140.20120205svn.fc17 @rpmfusion-free-updates 2.3 M
mjpegtools x86_64 2.0.0-4.fc17 @rpmfusion-free 1.3 M
mjpegtools-gui x86_64 2.0.0-4.fc17 @rpmfusion-free 80 k
mplayer x86_64 1.0-0.140.20120205svn.fc17 @rpmfusion-free-updates 3.2 M
mplayer-gui x86_64 1.0-0.140.20120205svn.fc17 @rpmfusion-free-updates 3.9 M
php-symfony2-DependencyInjection noarch 2.0.16-1.fc17 installed 273 k
php-symfony2-DomCrawler noarch 2.0.16-1.fc17 installed 53 k
php-symfony2-Validator noarch 2.0.16-1.fc17 installed 176 k
smplayer x86_64 0.8.0-2.fc17 @rpmfusion-free 8.8 M
syncevolution-perl x86_64 1:1.2.2-1.fc17 @updates 53 k
vdr-mp3 x86_64 0.10.2-4.fc17 @rpmfusion-free 361 k
vdr-mplayer x86_64 0.10.2-4.fc17 @rpmfusion-free 199 k
vdrsync noarch 0.1.3-15.PRE1.050322.fc17 @rpmfusion-free 489 k

Transaction Summary
================================================== ================================================== ================================================== ================================================== ===========
Remove 9 Packages (+20 Dependent packages)

Installed size: 54 M
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Traceback (most recent call last):
File "/usr/bin/package-cleanup", line 400, in <module>
util = PackageCleanup()
File "/usr/bin/package-cleanup", line 60, in __init__
File "/usr/bin/package-cleanup", line 395, in main
File "/usr/share/yum-cli/utils.py", line 436, in doUtilTransaction
return_code = self.doTransaction()
File "/usr/share/yum-cli/cli.py", line 658, in doTransaction
resultobject = self.runTransaction(cb=cb)
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1656, in runTransaction
lastdbv = self.history.last()
File "/usr/lib/python2.7/site-packages/yum/history.py", line 1265, in last
ret = self.old([], 1, complete_transactions_only)
File "/usr/lib/python2.7/site-packages/yum/history.py", line 1214, in old
executeSQL(cur, sql, params)
File "/usr/lib/python2.7/site-packages/yum/sqlutils.py", line 166, in executeSQLQmark
return cursor.execute(query)
sqlite3.OperationalError: database is locked
[root@localhost richard]#

Here is my my most recent output in Konsole. . . .