apt-get Install tomcat6

How do you install tomcat6 in Linux using apt-get command?

How to Install tomcat6 with apt-get?

apt-get install tomcat6 -y

Install Tomcat6  Command

Here is a tutorial to learn how to install tomcat6 using apt-get command.

Step 1: Open terminal with su access and enter the command as shown below:
apt-get install tomcat6 -y

Step 2: After completion, the install command exits and instructs the user to restart the running instances of tomcat6 if it is running already.

Result of the Command Execution shown below:

root@hiox:~ apt-get install tomcat6 -y
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
x11 apps libusbip0 libmono data tds2.0 cil libsmbclient libplist1
python packagekit libxcb aux0 libxfce4menu 0.1 0 libatk1.0 0 menu
libts 0.0 0 syslinux libpackagekit qt 12 gnome media common libical0
python3 minimal libwpd8c2a libcdio10 libgtk2.0 common libopencryptoki0
dnsmasq base libtwolame0 libmono security2.0 cil libnet ssleay perl
libgsf 1 common update notifier common python cupshelpers libqca2
iputils tracepath xfonts 75dpi libzbar0 libndesk dbus1.0 cil python pyorbit
libmtp8 gedit common xsltproc libsilcclient 1.1 3 libxcb atom1 erlang crypto
xserver xorg video all python debian libxml sax perl python setuptools
libxcomposite1 lp solve libarchive1 xserver xorg video apm libntfs10
libaiksaurus 1.2 data libpth20 xserver xorg video ark xserver xorg video ati
unattended upgrades libxrandr dev libgmime 2.4 2 telepathy gabble
libgnome2 vfs perl libhal storage1 libnet ip perl libmono system2.0 cil
xfonts scalable libcdio paranoia0 libcompizconfig0 python twisted bin
libwebkit 1.0 common squashfs tools libpurple bin gamin
unetbootin translations python mako usbmuxd nvidia common libxdamage dev
libxml sax expat perl python avahi python configglue libxklavier16
libnet dbus perl libcaca0 libmeanwhile1 libgudev 1.0 0
xserver xorg video openchrome libkpathsea5 erlang xmerl intel gpu tools
xbase clients libmono sqlite2.0 cil libpthread stubs0 libavc1394 0
esound clients libbonobo2 common screen resolution extra python pygments
libotf0 libatk1.0 data libsgutils2 2 libprotobuf5 gnome mime data
libcanberra pulse libmodplug0c2 python pycurl libxml parser perl
link grammar dictionaries en gnome panel data obexd client libmagickcore2
upower libotr2 libtie ixhash perl xserver xorg video s3virge libots0
desktop file utils xserver xorg video v4l python couchdb dnsutils
libspectre1 python openssl x11 xkb utils libxml perl xserver xorg video mga
libxnee0 libsvga1 obex data server libparted0debian1 libossp uuid perl
xserver xorg video chips libecal1.2 7 libbeagle1 libmono corlib2.0 cil
libxfixes dev udisks libimobiledevice0 g++ 4.4 libqt4 test libvarnish1
transmission cli libhyphen0 erlang syntax tools xserver xorg core cli common
python louis liblouis data xserver xorg video mach64 libxfconf 0 2 libibus1
ttf dustin libzend framework php libproxy0 libjpeg progs libpst4
libnspr4 dev libxcb render util0 dev libboost program options1.40.0
libnm util1 kdelibs5 xserver common libtagc0 libxcb xv0 empathy common
libbonobo2 0 libmagickwand2 python speechd libvte common
python egenix mxtools aumix common libsctp1 language pack zh hant base
libgnomevfs2 common libndesk dbus glib1.0 cil xserver xorg video trident
libgupnp 1.0 3 libexo common nvidia current modaliases libgnomevfs2 extra
python software properties python ubuntuone storageprotocol
x11proto xinerama dev mobile broadband provider info xserver xorg video sis
libpcap0.8 libx86 1 abiword common x11proto render dev oxygen icon theme
transmission gtk libpisock9 libxi dev xmms2 plugin pulse gconf2 dosfstools
libgdata google1.2 1 libmono i18n west2.0 cil libunicode string perl
lksctp tools guile 1.8 libs libwps 0.1 1 rpm common xfdesktop4 data
libxml namespacesupport perl libedata cal1.2 6 language selector common
notification daemon libxnconfig9.0.5 libterm readkey perl wireshark common
libpixman 1 dev libsqlite0 whois trousers libdotconf1.0
xserver xorg video siliconmotion xdg user dirs gdebi core python urlgrabber
libnotify1 libcairo2 libstartup notification0 checkbox python twisted web
libtpm unseal0 ubuntu system service openoffice.org style human
libgoffice 0.8 8 common xserver xorg input vmmouse libavahi glib1 subversion
libxml libxml perl fortune mod evolution common python pyinotify
xfce keyboard shortcuts libmono posix2.0 cil libcouchdb glib 1.0 2 znc tcl
mono runtime libvisual 0.4 0 telepathy salut apturl common
xserver xorg video savage mtools libcanberra gtk module pidgin data
libcanberra0 libmono addins0.2 cil libvde0 libthai data python3.1
libgweather common dcraw libnss3 dev libgadu3 xorg docs core x11proto kb dev
x11proto randr dev python serial libwavpack1 libqt4 opengl
libsoup gnome2.4 1 python genshi libpsiconv6 libxinerama dev libcap2 bin
xserver xorg video tdfx network manager pptp pptp linux
libgtkhtml editor common gcc 4.4 metacity common avahi utils
x11 session utils m17n db cpu checker libglitz glx1
compizconfig backend gconf transmission common libglibmm 2.4 1c2a libxosd2
libobparser21 libgamin0 libdirectfb 1.2 0 ttf lyx python protobuf
erlang runtime tools update manager core libsvn1 libdatrie1 xtrans dev
libindicate4 libwnck22 libakonadiprivate1 libtspi1 libdevkit power gobject1
libsexy2 gstreamer0.10 gnonlin libx264 85 libxcb event1
xserver xorg video intel libmcrypt4 libindicator0 python pam librecode0
libiec61883 0 libvlc2 libxres1 xserver xorg input all libgdata common
python aptdaemon liblink grammar4 libgnome mag2 libqt4 help python qt4
libtext bidi perl libpango1.0 common x11proto input dev xmms2 plugin id3v2
libgp11 0 python brlapi uno libs3 network manager xserver xorg video vmware
libpixman 1 0 libexempi3 python sqlitecachec x11proto fixes dev python tz
python sip xserver xorg video r128 xubuntu wallpapers aumix libgdu0
libgnome2 common gdb libsilc 1.1 2 libhal1 linux headers 2.6.32 74
xfonts base python xapian apt xapian index hal libxml writer perl
xserver xorg input evdev libdbusmenu glib1 libgoocanvas common
binfmt support libwv 1.2 3 libesd0 libparams validate perl liblouis0
linux headers 2.6.32 74 generic libmono system data2.0 cil oss compat
iputils arping zend framework bin libedata book1.2 2 xserver xorg video vesa
libgnome vfs2.0 cil libreadline5 libgdome2 0 x11 xfs utils python xdg
libsmi2ldbl libupnp3 speech dispatcher libgnomevfs2 0 x11proto xext dev
mono gac libcolamd2.7.1 libnm glib2 kdepimlibs data libcroco3 modemmanager
gconf defaults service libxext dev libdbusmenu gtk1 gnome applets data
python smbc system config printer udev libpulse mainloop glib0
libegroupwise1.2 13 icoutils erlang mnesia libgsf 1 114 libgtop2 common
libaa1 libopenobex1 rdesktop python telepathy znc perl x11proto damage dev
libthai0 libxcb keysyms1 linux headers generic libart2.0 cil rsync
erlang public key aptdaemon manpages libneon27 gnutls libglitz1
xserver xorg video s3 xserver xorg libglib2.0 cil mono 2.0 gac
gnome terminal data libdjvulibre21 libglade2 0 python fstab
libxml regexp perl libcanberra gtk0 xserver xorg video nv libvorbisfile3
python sqlite xfonts 100dpi libspeechd2 esound common
xserver xorg video voodoo python subversion xserver xorg video fbdev
xserver xorg input wacom lxmenu data xmms2 plugin alsa im switch
libgconf2.0 cil ppp libxfce4util common libglib perl python twisted core
xdg utils xinit libzzip 0 13 tcl libshout3 xserver xorg video nouveau libdv4
libatasmart4 libmono sharpzip2.84 cil libxau dev xfce4 power manager data
libxmmsclient6 libtask weaken perl nautilus data thunar data
python gnupginterface libfs6 libgdata6 xserver xorg video neomagic
packagekit fglrx modaliases libtotem plparser17 nvidia 96 modaliases
php5 mcrypt libnet domain tld perl tcl8.5 libqt4 assistant ure
pinyin database libplasma3 xserver xorg input mouse erlang inets libgtop2 7
xmms2 core ntfsprogs libvisual 0.4 plugins libxine1 misc plugins python3
ttf arphic bsmi00lp libusbmuxd1 libappindicator0 libm17n 0 libdecoration0
libregexp common perl python twisted names liblircclient0 kdepimlibs5
libgnomeui common xz utils libxfce4util4 libxxf86misc1 m17n contrib
libgupnp igd 1.0 2 libgnome keyring0 libsidplay1 kdelibs bin usbutils
smartdimmer libxvmc1 language pack zh hans base jockey common
gnome desktop data python gdbm python cups opencryptoki python3.1 minimal
usb creator common libc ares2 libc6 dev libxml libxslt perl apparmor
libupower glib1 libpackagekit glib2 12 tk8.5 liblua5.1 0 libanthy0
libxcomposite dev libtag1c2a ubuntu wallpapers libcamel1.2 14 python gst0.10
brasero common libwnck common libxcb render0 dev app install data
libxrender dev xmms2 plugin vorbis libxfce4util bin liboobs 1 4
libxmmsclient glib1 media player info libxml xpath perl xorg
ttf arphic gbsn00lp fortunes min xfonts mathml libgpgme11 libart 2.0 2
libgnome keyring1.0 cil evolution data server common protobuf compiler
liblaunchpad integration1 pmount libopencore amrnb0 libcdio cdda0
imagemagick vlc data libzephyr4 xserver xorg video sisusb computer janitor
erlang ssl libpango1.0 0 libgraphite3 libgvfscommon0 libmusicbrainz4c2a
libx11 dev libwpg 0.1 1 libaiksaurus 1.2 0c2a libtar hal info libqt3 mt
miscfiles x11proto composite dev linux libc dev libdesktopcouch glib 1.0 2
openoffice.org common patch manpages dev xvfb capplets data libgnome menu2
language pack zh hans language pack zh hant xserver xorg video tseng
system config printer common xserver xorg video radeon libxcb render0
vzquota libebackend1.2 0 libruby1.8 xfconf dvd+rw tools libgtk2.0 bin
libqt4 scripttools python xkit libglu1 mesa libdjvulibre text
libavahi gobject0 system tools backends libc dev bin libnet libidn perl
libnice0 compiz core libxcb1 dev libxcb shape0 libvala0
xserver xorg video cirrus gstreamer0.10 nice libbonoboui2 common
libloudmouth1 0 libssh 4 python egenix mxdatetime libxcb shm0 libvlccore2
binutils kdebase runtime data znc extra libjson glib 1.0 0 libxmlrpc core c3
nvidia 173 modaliases p7zip full libossp uuid16 libgmime2.4 cil
python rdflib libprotoc5 libsys hostname long perl libmpcdec3
libpam gnome keyring libgdata1.2 1 libxml dom perl libxcb render util0
libopencore amrwb0 openbsd inetd bcmwl modaliases xmms2 icon
indicator application libnet1 gstreamer0.10 plugins base totem common
x11proto core dev xmms2 client cli python gconf python crypto
adium theme ubuntu xserver xorg input synaptics libxml twig perl
libgssdp 1.0 2 xmms2 client nycli gnome doc utils libgtk2.0 0 libxine1 bin
libxdmcp dev xserver xorg video rendition libpthread stubs0 dev libsysfs dev
libxcursor dev python libxml2 libedataserver1.2 11 libxkbfile1
libgnomecanvas2 common xserver xorg video i128 telepathy mission control 5
xpdf common notify osd icons libjs mootools libpisync1 libvdeplug2
erlang base libsoup2.4 1 libstdc++6 4.4 dev libgnomekbd common libebook1.2 9
libgdome2 cpp smart0c2a libgtksourceview2.0 common packagekit backend apt
libtag1 vanilla libaudiofile0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
authbind ca certificates java default jre headless icedtea 6 jre cacao
java common libcommons collections java libcommons dbcp java
libcommons pool java libecj java libservlet2.5 java libtomcat6 java
openjdk 6 jre headless openjdk 6 jre lib tomcat6 common tzdata java
Suggested packages:
default jre equivs libgeronimo jta 1.0.1b spec java ecj ant libecj java gcj
sun java6 fonts ttf dejavu extra ttf sazanami gothic ttf kochi gothic
ttf sazanami mincho ttf kochi mincho ttf telugu fonts ttf oriya fonts
ttf kannada fonts ttf bengali fonts tomcat6 docs tomcat6 admin
tomcat6 examples tomcat6 user
The following NEW packages will be installed:
authbind ca certificates java default jre headless icedtea 6 jre cacao
java common libcommons collections java libcommons dbcp java
libcommons pool java libecj java libservlet2.5 java libtomcat6 java
openjdk 6 jre headless openjdk 6 jre lib tomcat6 tomcat6 common tzdata java
0 upgraded, 16 newly installed, 0 to remove and 1 not upgraded.
Need to get 45.1MB of archives.
After this operation, 67.2MB of additional disk space will be used.
Get:1 http://old releases.ubuntu.com/ubuntu/ lucid updates/main openjdk 6 jre lib 6b35 1.13.7 1ubuntu0.10.04.2 [5910kB]
Get:2 http://old releases.ubuntu.com/ubuntu/ lucid updates/main tzdata java 2015d 0ubuntu0.10.04 [133kB]
Get:3 http://old releases.ubuntu.com/ubuntu/ lucid/main java common 0.34 [80.3kB]
Get:4 http://old releases.ubuntu.com/ubuntu/ lucid updates/main openjdk 6 jre headless 6b35 1.13.7 1ubuntu0.10.04.2 [33.0MB]
Get:5 http://old releases.ubuntu.com/ubuntu/ lucid/main default jre headless 1.6 34 [6258B]
Get:6 http://old releases.ubuntu.com/ubuntu/ lucid updates/main ca certificates java 20110426ubuntu0.10.04.2 [8216B]
Get:7 http://old releases.ubuntu.com/ubuntu/ lucid/main libcommons collections java 2.1.1 9 [331kB]
Get:8 http://old releases.ubuntu.com/ubuntu/ lucid/main libcommons pool java 1.5.3 1ubuntu1 [90.4kB]
Get:9 http://old releases.ubuntu.com/ubuntu/ lucid/main libcommons dbcp java 1.3~svn828639 1ubuntu1 [156kB]
Get:10 http://old releases.ubuntu.com/ubuntu/ lucid/main libecj java 3.5.1 1 [1233kB]
Get:11 http://old releases.ubuntu.com/ubuntu/ lucid updates/main libservlet2.5 java 6.0.24 2ubuntu1.16 [193kB]
Get:12 http://old releases.ubuntu.com/ubuntu/ lucid updates/main libtomcat6 java 6.0.24 2ubuntu1.16 [3023kB]
Get:13 http://old releases.ubuntu.com/ubuntu/ lucid updates/main tomcat6 common 6.0.24 2ubuntu1.16 [49.7kB]
Get:14 http://old releases.ubuntu.com/ubuntu/ lucid updates/main tomcat6 6.0.24 2ubuntu1.16 [33.1kB]
Get:15 http://old releases.ubuntu.com/ubuntu/ lucid/main authbind 1.2.0build3 [17.8kB]
Get:16 http://old releases.ubuntu.com/ubuntu/ lucid updates/main icedtea 6 jre cacao 6b35 1.13.7 1ubuntu0.10.04.2 [819kB]
Fetched 45.1MB in 5s (8455kB/s)
Selecting previously deselected package openjdk 6 jre lib.
(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 ... 121137 files and directories currently installed.)
Unpacking openjdk 6 jre lib (from .../openjdk 6 jre lib_6b35 1.13.7 1ubuntu0.10.04.2_all.deb) ...
Selecting previously deselected package tzdata java.
Unpacking tzdata java (from .../tzdata java_2015d 0ubuntu0.10.04_all.deb) ...
Selecting previously deselected package java common.
Unpacking java common (from .../java common_0.34_all.deb) ...
Selecting previously deselected package openjdk 6 jre headless.
Unpacking openjdk 6 jre headless (from .../openjdk 6 jre headless_6b35 1.13.7 1ubuntu0.10.04.2_amd64.deb) ...
Selecting previously deselected package default jre headless.
Unpacking default jre headless (from .../default jre headless_1.6 34_amd64.deb) ...
Selecting previously deselected package ca certificates java.
Unpacking ca certificates java (from .../ca certificates java_20110426ubuntu0.10.04.2_all.deb) ...
Selecting previously deselected package libcommons collections java.
Unpacking libcommons collections java (from .../libcommons collections java_2.1.1 9_all.deb) ...
Selecting previously deselected package libcommons pool java.
Unpacking libcommons pool java (from .../libcommons pool java_1.5.3 1ubuntu1_all.deb) ...
Selecting previously deselected package libcommons dbcp java.
Unpacking libcommons dbcp java (from .../libcommons dbcp java_1.3~svn828639 1ubuntu1_all.deb) ...
Selecting previously deselected package libecj java.
Unpacking libecj java (from .../libecj java_3.5.1 1_all.deb) ...
Selecting previously deselected package libservlet2.5 java.
Unpacking libservlet2.5 java (from .../libservlet2.5 java_6.0.24 2ubuntu1.16_all.deb) ...
Selecting previously deselected package libtomcat6 java.
Unpacking libtomcat6 java (from .../libtomcat6 java_6.0.24 2ubuntu1.16_all.deb) ...
Selecting previously deselected package tomcat6 common.
Unpacking tomcat6 common (from .../tomcat6 common_6.0.24 2ubuntu1.16_all.deb) ...
Selecting previously deselected package tomcat6.
Unpacking tomcat6 (from .../tomcat6_6.0.24 2ubuntu1.16_all.deb) ...
Selecting previously deselected package authbind.
Unpacking authbind (from .../authbind_1.2.0build3_amd64.deb) ...
Selecting previously deselected package icedtea 6 jre cacao.
Unpacking icedtea 6 jre cacao (from .../icedtea 6 jre cacao_6b35 1.13.7 1ubuntu0.10.04.2_amd64.deb) ...
Processing triggers for doc base ...
Processing 3 added doc base file(s)...
Registering documents with scrollkeeper...
Processing triggers for man db ...
Setting up java common (0.34) ...
Setting up tzdata java (2015d 0ubuntu0.10.04) ...
Setting up libecj java (3.5.1 1) ...
Setting up authbind (1.2.0build3) ...

Setting up openjdk 6 jre headless (6b35 1.13.7 1ubuntu0.10.04.2) ...

Setting up openjdk 6 jre lib (6b35 1.13.7 1ubuntu0.10.04.2) ...

Setting up libcommons collections java (2.1.1 9) ...
Setting up libcommons pool java (1.5.3 1ubuntu1) ...
Setting up libcommons dbcp java (1.3~svn828639 1ubuntu1) ...
Setting up libservlet2.5 java (6.0.24 2ubuntu1.16) ...
Setting up libtomcat6 java (6.0.24 2ubuntu1.16) ...
Setting up tomcat6 common (6.0.24 2ubuntu1.16) ...
Setting up tomcat6 (6.0.24 2ubuntu1.16) ...
Adding system user `tomcat6' (UID 126) ...
Adding new user `tomcat6' (UID 126) with group `tomcat6' ...
Not creating home directory `/usr/share/tomcat6'.
* Starting Tomcat servlet engine tomcat6 [157G [151G[ OK ]

Setting up icedtea 6 jre cacao (6b35 1.13.7 1ubuntu0.10.04.2) ...
Setting up default jre headless (1.6 34) ...
Setting up ca certificates java (20110426ubuntu0.10.04.2) ...

root@hiox:~


Related Topics

Apt Get Commands