---
title: Install mpg123-core on Fedora using the Snap Store | Snapcraft
description: Get the latest version of mpg123-core for on Fedora - mpg123-core (full
  containment)
url: https://snapcraft.io/install/mpg123-core/fedora
---

[Canonical Snapcraft](https://snapcraft.io/)

# Install mpg123-core on **Fedora**

# mpg123-core

[Steve Barriault (skidooman)](https://snapcraft.io/publisher/skidooman "View all snaps from Steve Barriault (skidooman)")

* [Steve Barriault (skidooman)](https://snapcraft.io/publisher/skidooman "View all snaps from Steve Barriault (skidooman)")

[Install](https://snapcraft.io/install/mpg123-core/fedora#install)

#### mpg123-core (full containment)

mpg123 is an application available in the Ubuntu archive. All I did is to snap it. But since Ubuntu Core does not ship with ALSA, I also included some ALSA utilities such as speaker-test and aplay.

INTERFACES THAT NEED CONNECTING

Please keep in mind that Ubuntu Core installs snaps in strict confinement mode by default. This means you need to connect interfaces.

Here's what I am now seeing on my RaspPI:

skidooman@ubuntu:~$ sudo snap connections mpg123-core
Interface Plug Slot Notes
alsa mpg123-core:alsa :alsa manual
network mpg123-core:network :network -
network-bind mpg123-core:network-bind :network-bind -

The network and network-bind interfaces should be connected automatically. However, alsa and home will need to be connected. In order to do so, on your Ubuntu Core, at command line, type

sudo snap connect mpg123-core:alsa

JUKEBOX

The Jukebox capability is enabling mpg123-core to be able to launch music "at a distance". For example, say that you have a Ubuntu Core on a RaspPI running mpg123-core snap. In order to "launch" Jukebox, write the following into the browser of your choice:

http://<computer name, url or ip>:5000/jukebox?command=start

IF you have mp3 files in /var/snap/mpg123-core/current/, then Jukebox will select one of them and play it on the output outlet of your choice.

Typing this url will stop the music:

http://<computer name, url or ip>:5000/jukebox?command=stop

There is no option for multiple tunes, specific tunes, etc. Eventually maybe I can implement it, or an eventual collaborator can do it.

USAGE AND OUTPUT SELECTION

For the speaker-test and aplay tools

I worked a lot on this. First try this:

sudo mpg123-core.speaker-test -Dhw:Headphones

(For where that -D flags comes from, keep on reading - it MAY be different for you!)

Then, you can try to play something from aplay as well (it only takes WAV files, and then there are sometimes limitations on the type of WAV files it can play - sampling, etc - so beware)

sudo mpg123-core.aplay -Dhw:Headphones <file.wav>

For mpg123 proper

The command line looks different. Don't use -D, use -o

sudo mpg123-core.mpg123 -o alsa:hw:Headphones <file.mp3>

At this point, I only used ALSA, and it works.

For Jukebox

By default, the flag being passed to ALSA is hw:Headphones, which is valid on my system. If you need to change, you need to write a valid json file named /var/snap/mpg123-core/current/output.json

For example:

{"output":"hw:Headphones"}

How to determine the string that fits your system

Now, if you do not know how to get that string ('hw:Headphones'), I struggled with this also, so here is the procedure I figured out:

skidooman@ubuntu:~$ sudo mpg123-core.aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
default
hw:CARD=b1,DEV=0
bcm2835 HDMI 1, bcm2835 HDMI 1
Direct hardware device without any conversions
hw:CARD=Headphones,DEV=0
bcm2835 Headphones, bcm2835 Headphones
Direct hardware device without any conversions

As you can see, hw:Headphones maps to hw:CARD=Headphones. If I wanted to use HDMI instead, I would ASSUME:

hw:b1 would work - but since my lab's monitor has no sound, I cannot test it.

UBUNTU NOT CORE (or another Linux etc)

I worked on this snap for Ubuntu Core only. If you do not know what Ubuntu Core is, it is our version of Embedded Linux.

Obviously, installing on Ubuntu Core supposes that there is a sound card on your board and it is working at a kernel level.

---

That is all I can think about. Hopefully it helps someone else in the community. Happy Ubuntu-ing!

Skidooman, VP Field Engineering IoT, Canonical (but this snap is NOT supported by Canonical...)

### Package name

* mpg123-core

---

### License

* unset

---

### Last updated

* 27 March 2024 - latest/stable

This snap hasn't been updated in a while. It might be unmaintained and have stability or security issues.

---

##### Report a Snap Store violation

* [Report this Snap](https://snapcraft.io/install/mpg123-core/fedora#report-snap-modal)

---

## Enable snaps on Fedora and install mpg123-core

Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.

Snaps are discoverable and installable from the [Snap Store](https://snapcraft.io/store), an app store with an audience of millions.

### Enable snapd

Snap can be installed on Fedora from the command line:

```
sudo dnf install snapd
```

Either log out and back in again, or restart your system, to ensure snap’s paths are updated correctly.

To enable *classic* snap support, enter the following to create a symbolic link between `/var/lib/snapd/snap` and `/snap`:

```
sudo ln -s /var/lib/snapd/snap /snap
```

### Install mpg123-core

To install mpg123-core, simply use the following command:

```
sudo snap install mpg123-core
```

### Other popular snaps…

[See more...](https://snapcraft.io/search?categories=featured)

[See more in Featured](https://snapcraft.io/search?categories=featured)

### More things to do…

#### [Get the snap store](https://snapcraft.io/snap-store)

Browse and find snaps from the convenience of your desktop using the snap store snap.

#### [Learn more about snaps](https://snapcraft.io/docs)

Interested to find out more about snaps? Want to publish your own application? Visit [snapcraft.io](https://snapcraft.io/) now.

[Back to top](https://snapcraft.io/install/mpg123-core/fedora)

© 2026 Canonical Ltd.
Ubuntu and Canonical are registered trademarks of Canonical Ltd.

Powered by [Charmed Kubernetes](https://www.ubuntu.com/kubernetes)

[Join the forum](https://forum.snapcraft.io/), contribute to or report problems with,
[snapd](https://bugs.launchpad.net/snapd),
[Snapcraft](https://bugs.launchpad.net/snapcraft),
or [this site](https://github.com/canonical/snapcraft.io/issues/new).

* [Share on Twitter](https://twitter.com/snapcraftio)
* [Share on Facebook](https://www.facebook.com/snapcraftio)
* [Share on YouTube](https://www.youtube.com/snapcraftio)

* [Terms of Service](https://ubuntu.com/legal/terms-and-policies/snap-store-terms)
* [Data privacy](https://www.ubuntu.com/legal/data-privacy)
* [Manage your tracker settings](https://snapcraft.io/install/mpg123-core/fedora)
* [Service status](https://status.snapcraft.io/)
* [Other functions](https://dashboard.snapcraft.io/)
* [Contact us](https://snapcraft.io/about/contact-us)
