PDA

View Full Version : uninstalled sane & scanner app in fc17, lost 80% of system



frogola
15th October 2012, 04:11 PM
I uninstalled the SANE drivers and HP scanner apps [because I'll never use a scanner on this PC] and now I seem to have lost about 80 percent of the installed apps, including the add/remove software app itself, nautilus, firefox, and tons of other stuff which I never would have dreamed required scanner support.

Long question short: is there a way to repair my fc17_64 installation without a total reinstall? If so how? I reinstalled xsane.x86_64, sane-backends.x86_64, nautilus and firefox but still appear to have a system with giant holes in it.

Thanks from this stupid idiot,
-F

DBelton
15th October 2012, 04:34 PM
try undoing the transaction using yum history..



su -
(root password)

yum history


This will give you the transactions that yum has done in the past...
For example:


[root@tower20 boot]# yum history
Loaded plugins: langpacks, presto
ID | Login user | Date and tiroot | Action(s) | Altered
-------------------------------------------------------------------------------
56 | root <root> | 2012-10-13 10:49 | Update | 2
55 | root <root> | 2012-10-13 10:48 | Erase | 1
54 | root <root> | 2012-10-12 19:08 | Update | 27 ss
53 | root <root> | 2012-10-12 09:21 | Update | 3 ss
52 | root <root> | 2012-10-11 18:21 | I, U | 121
51 | root <root> | 2012-10-10 12:49 | E, I, U | 47 EE
50 | root <root> | 2012-10-08 20:36 | Update | 33
49 | root <root> | 2012-10-07 21:30 | Update | 8
48 | root <root> | 2012-10-07 09:55 | I, U | 52 EE
47 | root <root> | 2012-10-06 09:40 | Install | 1
46 | root <root> | 2012-10-06 09:37 | E, I, U | 9
45 | root <root> | 2012-10-06 09:28 | I, O, U | 52
44 | root <root> | 2012-10-05 01:30 | I, U | 78 EE
43 | root <root> | 2012-10-03 01:18 | E, I, U | 51
42 | root <root> | 2012-10-03 01:11 | Erase | 1
41 | root <root> | 2012-10-03 01:06 | Erase | 1
40 | root <root> | 2012-10-02 14:45 | Install | 1
39 | root <root> | 2012-10-01 21:34 | I, U | 51
38 | root <root> | 2012-10-01 17:52 | Install | 25
37 | root <root> | 2012-10-01 15:48 | Install | 39
history list



If you can tell from the list you get, which transaction is the one that removed all of the packages, then you can tell yum to undo that transaction...



su -
(root password)

yum history undo last

or

yum history undo 56


Would both have the same effect in my case.. 56 is the last transaction, and yum would try to undo it..

frogola
15th October 2012, 05:08 PM
Very cool tip DB, thanks. Unfortunately yum reported 'nothing to do' when I attempted to undo my transaction. I am reinstalling fc17 since it's only been installed for a few days and I have reached the point of diminishing returns on my repair attemtps.

I expect I'll find the yum history useful in the future so your advice is not wasted.

-F

jwmueller
15th October 2012, 11:23 PM
It might be too late now if you've started a re-install... /var/log/yum.log has the detail information about packages added/updated/removed. You could use that to manually re-install the affected packages. grep/awk might be helpful to reformat the entries and greatly reduce the amount of typing required.