How do you install memcached in Linux using apt-get command?
Here is a tutorial to learn how to install memcached using apt-get command.
Step 1: Open terminal with su access and enter the command as shown below:
apt-get install memcached -y
Step 2: After completion, the install command exits and instructs the user to restart the running instances of memcached if it is running already.
Result of the Command Execution shown below:
root@hiox:~ apt-get install memcached -y
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
libmono data tds2.0 cil libsmbclient libpolkit backend 1 0
libmono c5 1.0 cil libplist1 aspell en libjna java libxcb aux0 libsm dev
libatk1.0 0 jsvc python gnome2 libts 0.0 0 libnet daemon perl libpcsclite1
libtalloc2 libjaxp1.3 java gconf2 common libswscale0 libcdio10
libgtk2.0 common libdb je java hdparm libmono npgsql2.0 cil libxfixes3
junit4 espeak libmono security2.0 cil libgsf 1 common python pyorbit libmtp8
libmono addins gui0.2 cil xsltproc libxcb atom1 libg15daemon client1
libnb apisupport1 java libmono wcf3.0 cil hicolor icon theme libxcomposite1
libice dev liboro java libgail18 libarchive1 libmono peapi2.0 cil
libavutil49 libntfs10 libappframework java libpth20 libunique 1.0 0 fakeroot
libxrandr dev libmono system data1.0 cil ttf dejavu extra liblcms1
libnb javaparser java libhal storage1 libdb4.7 java libmono simd2.0 cil
libmono system2.0 cil libmono1.0 cil libexpat1 dev libcdio paranoia0
libgnome2 0 libiw dev libmono system ldap1.0 cil libwebkit 1.0 common
libxerces2 java libmono0 libcupsimage2 libiceutil33 gamin libgphoto2 port0
xfonts encodings debhelper aspell usbmuxd libsensors4 libxdamage dev
pkg config libgcj bc gcj 4.4 base libxxf86dga1 libfile copy recursive perl
libmono getoptions1.0 cil libgudev 1.0 0 libgnomecanvas2 0
libmono cscompmgd8.0 cil libsamplerate0 libmono data1.0 cil libsnmp15
hunspell en us libmono sharpzip0.84 cil libmono sqlite2.0 cil
libmono ldap1.0 cil libpthread stubs0 libnunit2.4 cil libicu42
esound clients smbclient libjtidy java libbonobo2 common libjzlib java
libatk1.0 data libsgutils2 2 libprotobuf5 gnome mime data iso codes
libmono management2.0 cil libicu4j java x11 utils libboost system1.40.0
libmagickcore2 libfreemarker java libservlet2.4 java libdb4.7 java gcj
libxml2 utils rrdtool dnsutils libcommons beanutils java libgnomeui 0
gvfs backends obex data server libyaml syck perl libparted0debian1
libgluezilla libmono corlib2.0 cil libxfixes dev udisks libimobiledevice0
g++ 4.4 junit update inetd php5 icedtea netx cli common libqt4 network
libmono system web mvc1.0 cil libqt4 dbus libasm2 java libxxf86vm1 libproxy0
libjack0 xterm libnspr4 dev default jdk doc libxcb render util0 dev
libboost program options1.40.0 libnm util1 libmono cairo2.0 cil libtagc0
libmono relaxng1.0 cil libgl1 mesa dri libbonobo2 0 libtdb1 libdbi perl
libmagickwand2 libgnomevfs2 common docbook xml libavfilter0
libnb platform devel java x11proto xinerama dev libgl1 mesa glx
x11proto render dev libspeex1 libdate manip perl libxi dev munin node
liblog log4perl perl gconf2 java common dosfstools libmono i18n west2.0 cil
libxslt1.1 javahelp2 libwbclient0 librrd4 po debconf libgomp1
icedtea 6 jre cacao notification daemon python gnomecanvas gcj 4.4 jre lib
libpixman 1 dev libnspr4 0d libsqlite0 libdirectfb extra libswingx java
libdotconf1.0 libmono microsoft7.0 cil default jre headless
libmono system messaging2.0 cil libhtml template perl libavdevice52
libnotify1 libcairo2 libmono system web1.0 cil libstartup notification0
libjs prototype libapache2 mod php5 libavahi glib1 gnome keyring subversion
openvpn blacklist policykit 1 libmono accessibility1.0 cil
libcommons logging java libmono webbrowser0.5 cil libmono posix2.0 cil
mysql server core 5.1 jetty xfonts utils g++ mono runtime libfontconfig1 dev
mtools libcanberra gtk module libcommons compress java libcanberra0
intltool debian openjdk 6 jre lib libsdl1.2debian alsa libmono addins0.2 cil
libgnome2.24 cil libthai data libnss3 dev x11proto kb dev
libswingworker java x11proto randr dev libwavpack1 libqt4 opengl
libsoup gnome2.4 1 libmysqlclient16 libxinerama dev
libmono system runtime2.0 cil mono 2.0 devel libavcodec52 gcc 4.4
metacity common libgcj10 jruby1.1 libfuse2 librrds perl mono csharp shell
liblzma1 libgamin0 libsnmp base libpcrecpp0 libqt4 sql sqlite libnss mdns
libdirectfb 1.2 0 librsvg2 common libg15render1 libsvn1 libdatrie1
openjdk 6 jre headless xtrans dev fontconfig libatk1.0 dev libwnck22
libportaudio2 libavahi common data libsexy2 libavahi core6 libcue1
libxcb event1 libnet cidr perl libxfont1 libindicator0 samba common
libgconf2 4 libffi5 libforms1 libxres1 libgtkspell0 libmono i18n1.0 cil
gettext ant libmono oracle1.0 cil xbitmaps libpango1.0 common
x11proto input dev libnb platform11 java python glade2
libmono messaging2.0 cil libgp11 0 default jdk libmono rabbitmq2.0 cil
libjsch java libsvn java libgcr0 launchpad integration libpixman 1 0
libjetty java doc libsdl1.2debian x11proto fixes dev libxaw7 mingw32 runtime
libcups2 gcc libgdu0 libxml commons resolver1.1 java libpkcs11 helper1
libcobertura java libgnome2 common libhal1 cvs default jre
libjs scriptaculous libmono winforms1.0 cil libmono db2 1.0 cil
libdbusmenu glib1 ant optional libqtcore4 libxinerama1 binfmt support
libesd0 libmono system data2.0 cil libgif4 libgnome vfs2.0 cil
libcommons net java libresid builder0c2a libmono2.0 cil
libmono system ldap2.0 cil libxft2 speech dispatcher
libmono bytefx0.7.6.1 cil mysql client core 5.1 libmono data tds1.0 cil
libenchant1c2a libgnomevfs2 0 x11proto xext dev espeak data mono gac
libnm glib2 libsnmp session perl libxt dev xulrunner 1.9.2
libmono sharpzip2.6 cil libcroco3 libmono getoptions2.0 cil
libboost thread1.40.0 tzdata java libmono data2.0 cil libxext dev
python cairo libdbusmenu gtk1 radiusclient1 libglade2.0 cil
libmono npgsql1.0 cil libgsf 1 114 libtheora0 libice6 librarian0
libmono ldap2.0 cil libmono messaging rabbitmq2.0 cil
libmono security1.0 cil libopenobex1 libspeexdsp1 rarian compat
libnet server perl lm sensors x11proto damage dev libthai0 libart2.0 cil
python dbus powermgmt base libdbd mysql perl manpages libidl0 libntfs 3g75
libneon27 gnutls ffmpeg libmono peapi1.0 cil libglib2.0 cil libao2
mono 2.0 gac libpostproc51 libglade2 0 libnotify dev libglib2.0 dev
zlib1g dev liblzo2 2 libmono system1.0 cil policykit 1 gnome libxmu6
libcanberra gtk0 libvorbisfile3 libcairo2 dev libspeechd2 libqt4 sql
esound common libasound2 monodoc base libflac8 libqt4 svg libgconf2.0 cil
libnb java3 java libservlet2.5 java libxrender1 openssl blacklist
libmono sharpzip0.6 cil libradius1 libmono cscompmgd7.0 cil libraw1394 11
libespeak1 libpango1.0 dev libfreetype6 dev libshout3 libgsm1 fancontrol
libatasmart4 build essential libservlet2.3 java libmono sqlite1.0 cil
libmono sharpzip2.84 cil libvorbisenc2 libxau dev dpkg dev x ttcidfont conf
munin common mingw32 binutils libmpdclient2 libqt4 xml
libmono relaxng2.0 cil libschroedinger 1.0 0 libiw30 libgs8 libavformat52
libmono microsoft build2.0 cil libhunspell 1.2 0 libslf4j java
libcommons daemon java libnfsidmap2 libdc1394 22 libtiff4 libfontenc1
libmono dev psfontmgr python gobject libjasper1 ntfsprogs
libswing layout java ttf dejavu libgstreamer plugins base0.10 0
libplrpc perl libusbmuxd1 libappindicator0 yelp libregexp java
libgnomeui common xz utils libmono cecil private cil libmono corlib1.0 cil
libwebkit 1.0 2 wwwconfig common libgnome keyring0 libdaemon0
libsocket6 perl libxtst6 libsidplay2 libc6 dev libqtgui4 liborbit2
libmono microsoft8.0 cil libg15 1 avahi daemon tsconf libzeroc ice33
libmono system web2.0 cil libxcomposite dev ghostscript libtag1c2a
librsvg2 2 libbonoboui2 0 libmono cairo1.0 cil libavahi client3
libwnck common x11 common libxcb render0 dev libxrender dev lrzsz
libnet snmp perl libmpg123 0 sgml data libmad0 libmono accessibility2.0 cil
libpolkit agent 1 0 libsysfs2 ant optional gcj xulrunner 1.9.2 dev libpq5
perl tk python support libgpgme11 libart 2.0 2 librpcsecgss3
liblaunchpad integration1 libid3tag0 libavahi compat libdnssd1
ca certificates java libio multiplex perl html2text libcdio cdda0
libhamcrest java gnome user guide liblucene2 java libpango1.0 0 libsm6
libgvfscommon0 php5 mysql libmono i18n west1.0 cil libxft dev libpulse0
libx11 dev liboil0.3 openjdk 6 doc libxdamage1 libmono bytefx0.7.6.2 cil
x11proto composite dev gvfs linux libc dev dictionaries common
libcommons collections3 java patch manpages dev libbeansbinding java
mono devel samba common bin libcelt0 0 libgcj common openvpn
libqt4 sql mysql netcat traditional fuse utils libxcb render0 php5 cli
libmono system messaging1.0 cil scrollkeeper info libexif12 libgtk2.0 bin
libglu1 mesa libpaper utils libdbus 1 dev dbus x11 libxi6 libc dev bin
libvorbis0a libgtk2.0 cil libxcb1 dev libgssglue1 openjdk 6 jdk
libgtk2.0 dev libmono posix1.0 cil libmetacity private0
libmail sendmail perl ant gcj libbonoboui2 common libgstreamer0.10 0
libcommons digester java libaudio2 libxcursor1 libdirectfb dev binutils
libjpeg62 dev libxt6 libxv1 portmap libini4j java libjson glib 1.0 0
libdbus glib 1 dev libjetty java openjdk 6 jre defoma libmono i18n2.0 cil
libavahi common3 libsys hostname long perl libmpcdec3 libpam gnome keyring
liblog4j1.2 java mysql common libxcb render util0
libnb svnclientadapter java php5 common libmono oracle2.0 cil libjline java
mysql server 5.1 libxrandr2 gnome icon theme libmono system runtime1.0 cil
libusb 1.0 0 indicator application libnss3 1d x11proto core dev
javascript common ntfs 3g python gtk2 python gconf libsndfile1 libaspell15
libmng1 gnome doc utils libgtk2.0 0 libbluetooth3 libnb ide12 java dvb apps
libxdmcp dev libpthread stubs0 dev libsysfs dev libxcursor dev gsfonts
python libxml2 libnunit cil dev libgnomecanvas2 common libgdiplus libmms0
libmono winforms2.0 cil libpaper1 libltdl7 mysql client 5.1 libmono cil dev
libjs mootools libsoup2.4 1 libboost filesystem1.40.0
libio socket inet6 perl libstdc++6 4.4 dev libgphoto2 2 libogg0 mono gmcs
libfaad2 mercurial common libtag1 vanilla libaudiofile0 libpng12 dev
Use 'apt-get autoremove' to remove them.
Suggested packages:
libcache memcached perl libmemcached
The following NEW packages will be installed:
memcached
0 upgraded, 1 newly installed, 0 to remove and 76 not upgraded.
Need to get 77.4kB of archives.
After this operation, 262kB of additional disk space will be used.
Get:1 http://old releases.ubuntu.com/ubuntu/ lucid updates/universe memcached 1.4.2 1ubuntu4 [77.4kB]
Fetched 77.4kB in 0s (88.7kB/s)
Selecting previously deselected package memcached.
(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 ... 83492 files and directories currently installed.)
Unpacking memcached (from .../memcached_1.4.2 1ubuntu4_amd64.deb) ...
Processing triggers for ureadahead ...
Processing triggers for man db ...
Setting up memcached (1.4.2 1ubuntu4) ...
Starting memcached: memcached.
root@hiox:~