Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I want to get rid of the automatically installed solitaire "games" in my brand new Fedora 18. I tried the gnome way, but nothing gets listed when I search for "silitaire". I tried the command line way:

$ su -c 'yum remove *solitaire'
Password:
Loaded plugins: langpacks, presto, refresh-packagekit
No Match for argument: *solitaire
No Packages marked for removal

share|improve this question
add comment

2 Answers 2

up vote 2 down vote accepted

The program you are looking for is /usr/bin/sol, part of package aisleriot. In any case, you should be able to:

yum erase /usr/bin/sol

(yum understands package names, file names and features provided; and also handles groups of packages).

share|improve this answer
    
Thanks, that worked AND it removed the annoying "Games" submenu. However, I would appreciate ideas on how would have I been able to track the package myself. –  Vorac Feb 13 '13 at 0:21
    
Sorry, forgot about that. With rpm -qf /the/file/of/interest you get the RPM package to which it belongs, if any. –  vonbrand Feb 13 '13 at 1:27
add comment

To find the mapping from a desktop file entry to a program/package, is kind of magic from the yum POV. In theory you might expect to be able to do:

yum search solitaire

...and it will show either gnome-games or aisleriot as a package, however at least the gnome-games package doesn't show up here.

You can use google, "gnome solitare" will give you the aisleriot and gnome-games pages as the first two hits ... and the former does explicitly mention it is known as "sol" as well.

If you know that desktop files are in /usr/share/applications you can do:

% fgrep -i solitaire /usr/share/applications/*  

...and that will tell you the filename which you can use "yum provides" on (or on the command name without that file). Or you can do it the graphical way:

  1. open the menu editor (alacarte -- can be found by "yum search menu editor")

  2. Find menu entry you want to delete.

  3. Look in properties for command name.

  4. yum provides sol

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.