How do you install mediawiki in Linux using apt-get command?
Here is a tutorial to learn how to install mediawiki using apt-get command.
Step 1: Open terminal with su access and enter the command as shown below:
apt-get install mediawiki -y
Step 2: After completion, the install command exits and instructs the user to restart the running instances of mediawiki if it is running already.
Result of the Command Execution shown below:
root@hiox:~ apt-get install mediawiki -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 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 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 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 libavdevice52 libnotify1 libcairo2
libmono system web1.0 cil libstartup notification0 libjs prototype
libavahi glib1 gnome keyring subversion openvpn blacklist policykit 1
libmono accessibility1.0 cil libcommons logging java
libmono webbrowser0.5 cil libmono posix2.0 cil 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 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 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 libevent 1.4 2 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 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 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 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
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 libxcb render util0 libnb svnclientadapter java
libmono oracle2.0 cil libjline java 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 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.
The following extra packages will be installed:
apache2 mpm prefork libapache2 mod php5 php5 php5 cli php5 common php5 mysql
Suggested packages:
php pear php5 gd imagemagick mediawiki math memcached clamav php5 suhosin
The following packages will be REMOVED:
apache2 mpm worker
The following NEW packages will be installed:
apache2 mpm prefork libapache2 mod php5 mediawiki php5 php5 cli php5 common
php5 mysql
0 upgraded, 7 newly installed, 1 to remove and 76 not upgraded.
Need to get 18.6MB of archives.
After this operation, 62.7MB of additional disk space will be used.
Get:1 http://old releases.ubuntu.com/ubuntu/ lucid updates/main apache2 mpm prefork 2.2.14 5ubuntu8.15 [2,430B]
Get:2 http://old releases.ubuntu.com/ubuntu/ lucid updates/main php5 common 5.3.2 1ubuntu4.30 [1,848kB]
Get:3 http://old releases.ubuntu.com/ubuntu/ lucid updates/main libapache2 mod php5 5.3.2 1ubuntu4.30 [2,992kB]
Get:4 http://old releases.ubuntu.com/ubuntu/ lucid updates/main php5 5.3.2 1ubuntu4.30 [1,108B]
Get:5 http://old releases.ubuntu.com/ubuntu/ lucid updates/main php5 cli 5.3.2 1ubuntu4.30 [2,909kB]
Get:6 http://old releases.ubuntu.com/ubuntu/ lucid updates/main php5 mysql 5.3.2 1ubuntu4.30 [73.0kB]
Get:7 http://old releases.ubuntu.com/ubuntu/ lucid updates/universe mediawiki 1:1.15.1 1ubuntu2.1 [10.8MB]
Preconfiguring packages ...
Fetched 18.6MB in 3s (5,042kB/s)
dpkg: apache2 mpm worker: dependency problems, but removing anyway as you requested:
apache2 depends on apache2 mpm worker (= 2.2.14 5ubuntu8.15) | apache2 mpm prefork (= 2.2.14 5ubuntu8.15) | apache2 mpm event (= 2.2.14 5ubuntu8.15) | apache2 mpm itk (= 2.2.14 5ubuntu8.15); however:
Package apache2 mpm worker is to be removed.
Package apache2 mpm prefork is not installed.
Package apache2 mpm event is not installed.
Package apache2 mpm itk is not installed.
(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 ... 83425 files and directories currently installed.)
Removing apache2 mpm worker ...
* Stopping web server apache2 [169G ... waiting [163G[ OK ]
Selecting previously deselected package apache2 mpm prefork.
(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 ... 83423 files and directories currently installed.)
Unpacking apache2 mpm prefork (from .../apache2 mpm prefork_2.2.14 5ubuntu8.15_amd64.deb) ...
Selecting previously deselected package php5 common.
Unpacking php5 common (from .../php5 common_5.3.2 1ubuntu4.30_amd64.deb) ...
Selecting previously deselected package libapache2 mod php5.
Unpacking libapache2 mod php5 (from .../libapache2 mod php5_5.3.2 1ubuntu4.30_amd64.deb) ...
Selecting previously deselected package php5.
Unpacking php5 (from .../php5_5.3.2 1ubuntu4.30_all.deb) ...
Selecting previously deselected package php5 cli.
Unpacking php5 cli (from .../php5 cli_5.3.2 1ubuntu4.30_amd64.deb) ...
Selecting previously deselected package php5 mysql.
Unpacking php5 mysql (from .../php5 mysql_5.3.2 1ubuntu4.30_amd64.deb) ...
Selecting previously deselected package mediawiki.
Unpacking mediawiki (from .../mediawiki_1%3a1.15.1 1ubuntu2.1_all.deb) ...
Processing triggers for man db ...
Setting up apache2 mpm prefork (2.2.14 5ubuntu8.15) ...
* Starting web server apache2 [169G [163G[ OK ]
Setting up php5 common (5.3.2 1ubuntu4.30) ...
Setting up libapache2 mod php5 (5.3.2 1ubuntu4.30) ...
Creating config file /etc/php5/apache2/php.ini with new version
* Reloading web server config apache2 [169G [163G[ OK ]
Setting up php5 (5.3.2 1ubuntu4.30) ...
Setting up php5 cli (5.3.2 1ubuntu4.30) ...
Creating config file /etc/php5/cli/php.ini with new version
update alternatives: using /usr/bin/php5 to provide /usr/bin/php (php) in auto mode.
Setting up php5 mysql (5.3.2 1ubuntu4.30) ...
Setting up mediawiki (1:1.15.1 1ubuntu2.1) ...
* Reloading web server config apache2 [169G [163G[ OK ]
root@hiox:~