How do you install mpd in Linux using apt-get command?
Here is a tutorial to learn how to install mpd using apt-get command.
Step 1: Open terminal with su access and enter the command as shown below:
apt-get install mpd -y
Step 2: After completion, the install command exits and instructs the user to restart the running instances of mpd if it is running already.
Result of the Command Execution shown below:
root@hiox:~ apt-get install mpd -y
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
libjna java libsm dev libatk1.0 0 jsvc libts 0.0 0 libnet daemon perl
libpcsclite1 libtalloc2 libjaxp1.3 java gconf2 common libgtk2.0 common
libdb je java libxfixes3 junit4 espeak libmtp8 libg15daemon client1
libnb apisupport1 java hicolor icon theme libxcomposite1 libice dev
liboro java libappframework java libpth20 ttf dejavu extra liblcms1
libnb javaparser java libdb4.7 java libxerces2 java libiceutil33
xfonts encodings libsensors4 libgcj bc gcj 4.4 base libgudev 1.0 0 libsnmp15
libpthread stubs0 smbclient libjtidy java libjzlib java libatk1.0 data
libprotobuf5 libicu4j java libfreemarker java libservlet2.4 java
ttf dejavu core libdb4.7 java gcj rrdtool dnsutils libcommons beanutils java
libyaml syck perl junit icedtea netx libqt4 network libqt4 dbus libasm2 java
libxxf86vm1 default jdk doc libnm util1 libtagc0 libgl1 mesa dri libdbi perl
libnb platform devel java libgl1 mesa glx libdate manip perl munin node
liblog log4perl perl gconf2 java common javahelp2 libwbclient0 librrd4
icedtea 6 jre cacao gcj 4.4 jre lib libnspr4 0d libswingx java libdotconf1.0
default jre headless libhtml template perl libcairo2 libjs prototype
gnome keyring subversion openvpn blacklist libcommons logging java
mysql server core 5.1 jetty xfonts utils libcommons compress java
openjdk 6 jre lib libthai data x11proto kb dev libswingworker java
libqt4 opengl libmysqlclient16 libgcj10 jruby1.1 libfuse2 librrds perl
libsnmp base libqt4 sql sqlite libdirectfb 1.2 0 libg15render1 libsvn1
libdatrie1 openjdk 6 jre headless xtrans dev fontconfig libportaudio2
libnet cidr perl libxfont1 samba common libgconf2 4 libffi5 ant
libpango1.0 common x11proto input dev libnb platform11 java libgp11 0
default jdk libjsch java libsvn java libgcr0 libpixman 1 0 libjetty java doc
libcups2 libxml commons resolver1.1 java libpkcs11 helper1 libcobertura java
default jre libjs scriptaculous ant optional libqtcore4 libxinerama1 libgif4
libcommons net java libxft2 speech dispatcher mysql client core 5.1
fontconfig config espeak data libnm glib2 libsnmp session perl libxt dev
tzdata java libevent 1.4 2 radiusclient1 libspeexdsp1 libnet server perl
lm sensors libthai0 libdbd mysql perl libidl0 libneon27 gnutls libglade2 0
liblzo2 2 libspeechd2 libqt4 sql libqt4 svg libnb java3 java
libservlet2.5 java libxrender1 openssl blacklist libradius1 libespeak1
fancontrol libservlet2.3 java libxau dev x ttcidfont conf munin common
libqt4 xml libslf4j java libcommons daemon java libnfsidmap2 libtiff4
libfontenc1 libjasper1 libswing layout java ttf dejavu libplrpc perl
libregexp java wwwconfig common libgnome keyring0 libsocket6 perl libqtgui4
liborbit2 libg15 1 tsconf libzeroc ice33 libtag1c2a libavahi client3
libnet snmp perl libsysfs2 ant optional gcj libpq5 libgpgme11 librpcsecgss3
libfontconfig1 libavahi compat libdnssd1 ca certificates java
libio multiplex perl libhamcrest java liblucene2 java libpango1.0 0
libx11 dev openjdk 6 doc libxdamage1 libcommons collections3 java
libbeansbinding java samba common bin libcelt0 0 libgcj common openvpn
libqt4 sql mysql netcat traditional fuse utils libxcb render0 libgtk2.0 bin
libglu1 mesa dbus x11 libxcb1 dev libgssglue1 openjdk 6 jdk ant gcj
libcommons digester java libaudio2 libxcursor1 libxt6 portmap libini4j java
libjetty java openjdk 6 jre defoma libpam gnome keyring liblog4j1.2 java
mysql common libxcb render util0 libnb svnclientadapter java libjline java
mysql server 5.1 libxrandr2 libnss3 1d x11proto core dev javascript common
libmng1 libgtk2.0 0 libnb ide12 java dvb apps libxdmcp dev
libpthread stubs0 dev mysql client 5.1 libio socket inet6 perl
libtag1 vanilla
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libao2 libaudiofile0 libcue1 libfaad2 libmms0 libmpcdec3
libresid builder0c2a libshout3 libsidplay2 libwavpack1
Suggested packages:
libesd0 libesd alsa0 mpd client icecast2 pulseaudio
The following NEW packages will be installed:
libao2 libaudiofile0 libcue1 libfaad2 libmms0 libmpcdec3
libresid builder0c2a libshout3 libsidplay2 libwavpack1 mpd
0 upgraded, 11 newly installed, 0 to remove and 90 not upgraded.
Need to get 837kB of archives.
After this operation, 2,626kB of additional disk space will be used.
Get:1 http://old releases.ubuntu.com/ubuntu/ lucid/main libao2 0.8.8 5ubuntu2 [28.3kB]
Get:2 http://old releases.ubuntu.com/ubuntu/ lucid/main libaudiofile0 0.2.6 8ubuntu1 [84.3kB]
Get:3 http://old releases.ubuntu.com/ubuntu/ lucid/universe libcue1 1.3.0 1 [23.9kB]
Get:4 http://old releases.ubuntu.com/ubuntu/ lucid/universe libfaad2 2.7 4 [171kB]
Get:5 http://old releases.ubuntu.com/ubuntu/ lucid/universe libmms0 0.4 2 [29.1kB]
Get:6 http://old releases.ubuntu.com/ubuntu/ lucid/main libmpcdec3 1:1.2.2 2.1ubuntu1 [28.2kB]
Get:7 http://old releases.ubuntu.com/ubuntu/ lucid/universe libresid builder0c2a 2.1.1 8 [36.1kB]
Get:8 http://old releases.ubuntu.com/ubuntu/ lucid/main libshout3 2.2.2 5ubuntu1 [40.2kB]
Get:9 http://old releases.ubuntu.com/ubuntu/ lucid/universe libsidplay2 2.1.1 8 [113kB]
Get:10 http://old releases.ubuntu.com/ubuntu/ lucid/main libwavpack1 4.60.1 1 [83.5kB]
Get:11 http://old releases.ubuntu.com/ubuntu/ lucid/universe mpd 0.15.4 1ubuntu3 [198kB]
Fetched 837kB in 1s (469kB/s)
Selecting previously deselected package libao2.
(Reading database ... (Reading database ... 5%(Reading database ... 10%(Reading database ... 15%(Reading database ... 20%(Reading database ... 25%(Reading database ... 30%(Reading database ... 35%(Reading database ... 40%(Reading database ... 45%(Reading database ... 50%(Reading database ... 55%(Reading database ... 60%(Reading database ... 65%(Reading database ... 70%(Reading database ... 75%(Reading database ... 80%(Reading database ... 85%(Reading database ... 90%(Reading database ... 95%(Reading database ... 100%(Reading database ... 57852 files and directories currently installed.)
Unpacking libao2 (from .../libao2_0.8.8 5ubuntu2_amd64.deb) ...
Selecting previously deselected package libaudiofile0.
Unpacking libaudiofile0 (from .../libaudiofile0_0.2.6 8ubuntu1_amd64.deb) ...
Selecting previously deselected package libcue1.
Unpacking libcue1 (from .../libcue1_1.3.0 1_amd64.deb) ...
Selecting previously deselected package libfaad2.
Unpacking libfaad2 (from .../libfaad2_2.7 4_amd64.deb) ...
Selecting previously deselected package libmms0.
Unpacking libmms0 (from .../libmms0_0.4 2_amd64.deb) ...
Selecting previously deselected package libmpcdec3.
Unpacking libmpcdec3 (from .../libmpcdec3_1%3a1.2.2 2.1ubuntu1_amd64.deb) ...
Selecting previously deselected package libresid builder0c2a.
Unpacking libresid builder0c2a (from .../libresid builder0c2a_2.1.1 8_amd64.deb) ...
Selecting previously deselected package libshout3.
Unpacking libshout3 (from .../libshout3_2.2.2 5ubuntu1_amd64.deb) ...
Selecting previously deselected package libsidplay2.
Unpacking libsidplay2 (from .../libsidplay2_2.1.1 8_amd64.deb) ...
Selecting previously deselected package libwavpack1.
Unpacking libwavpack1 (from .../libwavpack1_4.60.1 1_amd64.deb) ...
Selecting previously deselected package mpd.
Unpacking mpd (from .../mpd_0.15.4 1ubuntu3_amd64.deb) ...
Processing triggers for man db ...
Processing triggers for ureadahead ...
Setting up libao2 (0.8.8 5ubuntu2) ...
Setting up libaudiofile0 (0.2.6 8ubuntu1) ...
Setting up libcue1 (1.3.0 1) ...
Setting up libfaad2 (2.7 4) ...
Setting up libmms0 (0.4 2) ...
Setting up libmpcdec3 (1:1.2.2 2.1ubuntu1) ...
Setting up libresid builder0c2a (2.1.1 8) ...
Setting up libshout3 (2.2.2 5ubuntu1) ...
Setting up libsidplay2 (2.1.1 8) ...
Setting up libwavpack1 (4.60.1 1) ...
Setting up mpd (0.15.4 1ubuntu3) ...
* Starting Music Player Daemon mpd [169G [33m*[39;49m creating /var/lib/mpd/tag_cache...
[163G[ OK ]
Processing triggers for libc bin ...
ldconfig deferred processing now taking place
root@hiox:~