Ask Your Question

find program for a file

asked 2016-05-27 10:02:07 -0500

donal gravatar image

Hey, I'm a noob. If I want to find a suitable program for a specific file type (e.g. epub), what do I do?

I would like to use the package manager (or some inbuilt tool) to tell me what program is appropriate for a particular file? Or, if it is not installed, what programs I could install

edit retag flag offensive close merge delete



You should create better titles for your questions. Generic and undescriptive titles means you’ll not get help and others wouldn’t find the help that you’ve been offered later.

Aeyoun gravatar imageAeyoun ( 2016-05-28 14:51:22 -0500 )edit

3 Answers

Sort by » oldest newest most voted

answered 2016-05-29 07:49:53 -0500

geforce gravatar image

You can use dnf to query mimetypes

$ sudo dnf repoquery --whatprovides 'mimehandler(application/*epub*)'
Last metadata expiration check: 1:27:35 ago on Sun May 29 12:21:50 2016.
edit flag offensive delete link more


Nice! I didn't know about this, so good to add to my toolbox. Thanks @leigh123linux

snowolfe gravatar imagesnowolfe ( 2016-05-31 03:15:27 -0500 )edit

answered 2016-05-29 04:40:07 -0500

snowolfe gravatar image

As noted by @Aeyoun - you can use the search feature of GNOME Software, which will hopefully give you a match of one or more applications that you can use for that file type. Install and remove applications, as appropriate, to try the different suggestions.

Using the command-line:

  • Use sudo dnf search epub (replace epub with some other keyword or file extension to find other suitable applications).
  • Use sudo dnf search '*KEYWORD*' to search for a word using globbing (the '*').
  • Use sudo dnf search all '*KEYWORD*' to include searching the full description and URLs as well.
  • Use sudo dnf info PACKAGE-NAME to find out more about the application - usually including URLs that allow you to investigate the app further.

You can review apps that are already installed, that may be of use, by using man -k KEYWORD

edit flag offensive delete link more


If a file has a strange extension, you can use file $filename to get more information about this filetype. Otherwise you can search the internet for open $fileextension on linux and you'll often find a solution ;)

sedrubal gravatar imagesedrubal ( 2016-05-29 07:00:44 -0500 )edit

answered 2016-05-28 14:50:14 -0500

Aeyoun gravatar image

You can use the GNOME Software center thingy. It’s installed by default and you can find it in the application list by searching for “software” or “app store”.

The program you’ll want for ePubs is Calibre. GNOME Books looks like an interesting option, but trust me – it’s really broken and the project appears abandoned.

edit flag offensive delete link more

Question Tools


Asked: 2016-05-27 10:02:07 -0500

Seen: 199 times

Last updated: May 29 '16