Monday 16 May 2011

How to Restore /usr/share/application directory?

Today by mistake i deleted the files inside /usr/share/applications directory, as a result my Fedora 13 application launcher got wiped off. I was thinking
of formating and reinstalling the OS again, but that's going to be a costly operation for me. So did a bit of searching and found the below solution and it worked well.

`rpm -Va | grep missing`  command will give the list of missing files from the packages installed in your Operating System.

missing     /usr/share/applications/evince.desktop
missing     /usr/share/applications/mozilla-thunderbird.desktop
missing     /usr/share/applications/rpmfusion-gnome-mplayer.desktop
missing     /usr/share/applications/vlc.desktop
missing     /usr/share/applications/openoffice.org-calc.desktop
missing     /usr/share/applications/fedora-gnash.desktop
missing     /usr/share/applications/system-config-users.desktop
missing     /usr/share/applications/openoffice.org-base.desktop
missing     /usr/share/mozilla/extensions/

From this list i took the files which has /usr/share/application in its path and then reinstalled them using yum reinstall. This solved the problem.

No comments:

Post a Comment