Add mp3 support in Fedora 10

Jack Wallen
Dec 25, 2008
Updated • Dec 3, 2012

One of more frustrating aspects of some modern Linux distributions is that they do not ship with mp3 support rolled in. This is, by design, done because of licensing issues. And granted using the ogg format is a much better solution in the end (as well as a much better sounding format) but for those of us who have massive amounts of mp3 files already located on multiple hard drives converting to ogg format would be a very time consuming option. To that end it is nice to be able to have mp3 support native on your machine.

Fortunately that is not difficult. And even more fotunate, here are the instructions.

The first thing you need to is close out all applications that might want to make use of an mp3 file. This could include Ryhthmbox, Amarok, Banshee, or xmms. Now open a terminal window because you are going to be issuing some commands in a moment. Once the terminal window is open you will first need to su to root. With root privileges it is time to get down to business.

The first set of commands to run will install the necessary repositories for yum to use. First issue:

rpm -ivh

Once that command completes issue:

rpm -ivh

Now it's time to install the actual plugins for support. Issue the command:

yum -y install gstreamer-plugins-bad gstreamer-plugins-ugly xine-lib-extras-nonfree

Now your system will allow mp3 playback in the major players. But there is still no xmms. To install xmms with mp3 support issue the following command:

yum install xmms xmms-mp3

Once this is finished your machine is all ready for full-blown mp3 playback in just about every type of application.

Final Thoughts

Yes it's true it would be nice if the major Linux distributions could ship with mp3 support built in. But that is not the case due to licensing. Fortunately getting this working is as simple as a few commands.


Previous Post: «
Next Post: «


  1. Ahad Khan said on April 13, 2010 at 10:53 pm

    thanks…its perfect …
    gud job!

  2. Ajesh John said on February 23, 2010 at 10:51 am
    Reply works….

  3. Lulu said on May 28, 2009 at 12:39 pm


  4. Nande said on May 24, 2009 at 7:37 pm

    thanks! is really good.
    i think we should try to use mp3 as little as we can
    any time i backup my cd for listen on the pc i do it on ogg. and i only convert them to mp3 to play them on my portable-mp3-player.

  5. ike said on May 24, 2009 at 6:57 pm

    I’m getting slow playback which is weird, all the songs sound slower and deeper. any ideas?

  6. fran de kasalbito said on May 18, 2009 at 11:18 pm

    Perfecto !. Muy bien explicado y funciona !. la verdad es que no tenia soporte de MP3 en Fedora y lo hacia menos apetecible que Kubuntu o Suse.

  7. Javier said on May 13, 2009 at 6:49 pm

    Yes the second command returned an “error: 404” message (still using rpm instead rmp), but seems that it is not necessary however. I skipped such step and continued with third and fourth commands and it worked out.
    I’m listening mp3’s now,
    Thanks a lot.

  8. Anonymous said on April 28, 2009 at 2:09 pm

    how to get all combined rpm packages for linux audio and video playbacks alltogethor

  9. Anonymous said on April 13, 2009 at 1:45 am

    Ahh it works, listening to sleepbot now., thank you so much!!

  10. umesh sharma said on March 17, 2009 at 11:19 am

    its working fine.

  11. John said on February 2, 2009 at 10:09 pm

    2nd cmd does NOT work!!!!

  12. Andy Gonzales del Valle said on January 30, 2009 at 2:43 pm

    It works!!


  13. Alexander said on January 18, 2009 at 3:29 pm

    I am not sure if the second command is essential for MP3 play back. I issued the first rpm command, then the yum command, and now can play MP3s. What is the second rpm command actually working to do?

  14. Jnanesh said on December 31, 2008 at 9:18 am

    Thanks Buddy…
    it worked for me….

  15. kevwil said on December 30, 2008 at 8:57 am

    First time I installed Fedora 5, I was not able play mp3 files, this is also happen with Fedora 10, but like what this article said, we have to install manually using rpm or yum.

    But, if you don’t want the yum installed directly to internet or if you don’t have internet connection (manual installation), you have to change the location of repositories first to cdrom mount.

  16. jack said on December 25, 2008 at 3:56 pm

    roguespear – yes it would be nice if more companies would support ogg and flac. the Sansa Fuze was supposed to add ogg support in their last update but they didn’t.

    michael – thank you for correcting that.

    dotan – yeah, some distros make it much easier. i generally say Fedora is not for the new user based on issues such as this.

  17. Dotan Cohen said on December 25, 2008 at 8:44 am

    In Ubuntu one simply clicks an mp3 file, and the system asks if he wants to install mp3 support. No terminal, no thinking, just click and go. It could not be easier.

  18. michael said on December 25, 2008 at 8:32 am

    Lest i forgot, thanks for the simple summary nonetheless!

  19. michael said on December 25, 2008 at 8:31 am

    There is a typo in the second rpm command, (rmp). Correct command is “rpm -ivh“.

    Always run through it again before you post, cutting and pasting from your doc.

  20. RogueSpear said on December 25, 2008 at 5:09 am

    “Yes it’s true it would be nice if the major Linux distributions could ship with mp3 support built in.”

    Actually, what would be nice would be for more, if not all, vendors supporting ogg and flac. The stereo system in my car for instance only supports MP3 and WMA :/

    I haven’t read any conspiracy theories about this, but one would have to think that there was a fairly major campaign to keep those formats off of so many devices.

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

We love comments and welcome thoughtful and civilized discussion. Rudeness and personal attacks will not be tolerated. Please stay on-topic.
Please note that your comment may not appear immediately after you post it.