How do you install junit in Linux using apt-get command?
Here is a tutorial to learn how to install junit using apt-get command.
Step 1: Open terminal with su access and enter the command as shown below:
apt-get install junit -y
Step 2: After completion, the install command exits and instructs the user to restart the running instances of junit if it is running already.
Result of the Command Execution shown below:
root@hiox:~ apt-get install junit -y
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
x11 apps texlive common libmono data tds2.0 cil libmono c5 1.0 cil
lib32bz2 1.0 liblash2 libjna java python packagekit libxcb aux0 libedit2
php fpdf menu xdg ejabberd asymptote doc libsm dev jsvc menu libavahi qt3 1
libnumber compare perl libpackagekit qt 12 erlang eunit feynmf
libjaxp1.3 java libswscale0 libcdio10 libdb je java libmono npgsql2.0 cil
krita data junit4 espeak python notify kicad common libmono security2.0 cil
kdelibs4c2a libgsf 1 common xfonts 75dpi byobu python pyorbit rpm2cpio
extra xdg menus xsltproc libxcb atom1 erlang crypto libg15daemon client1
guile 1.8 latex2html llvm ttf gfs bodoni classic libmono wcf3.0 cil gpsim
libice dev liboro java libmono peapi2.0 cil libavutil49 libwxbase2.8 0
debootstrap libaiksaurus 1.2 data libappframework java libdigest sha1 perl
libflite1 gputils doc kword data libxrandr dev libmono system data1.0 cil
libgmime 2.4 2 libnb javaparser java libnet ip perl libdb4.7 java
libmono simd2.0 cil libmono system2.0 cil libmono1.0 cil xfonts scalable
libexpat1 dev libcdio paranoia0 libiw dev libmono system ldap1.0 cil
libwebkit 1.0 common squashfs tools erlang corba libxerces2 java libmono0
libiceutil33 gamin ltspfs erlang asn1 libnet dns perl libxdamage dev
ttf gfs olga lib32ncurses5 pkg config libgcj bc libmono getoptions1.0 cil
libmono cscompmgd8.0 cil dirmngr libmono data1.0 cil ktorrent data
libkpathsea5 erlang xmerl intel gpu tools xbase clients preview latex style
libmono sharpzip0.84 cil libmono sqlite2.0 cil texlive lvm2
libmono ldap1.0 cil latex xft fonts libpthread stubs0 ttf gfs didot
libavc1394 0 esound clients smbclient libjtidy java libbonobo2 common
libjzlib java tex4ht erlang snmp libprotobuf5 gnome mime data libcfitsio3
libmono management2.0 cil zenity libicu4j java erlang tools
libboost system1.40.0 libfreemarker java libservlet2.4 java
libdb4.7 java gcj desktop file utils pulseaudio clamav dnsutils
libcommons beanutils java libcairo perl gputils libfluidsynth1 dvipng
libgtk2 perl erlang edoc libbeagle1 libmono corlib2.0 cil libxfixes dev
g++ 4.4 libboost signals1.40.0 odbcinst1debian1 lmodern dhcp3 server php5
lxde icon theme libsdl mixer1.2 erlang syntax tools ipvsadm
libmono system web mvc1.0 cil libglew1.5 libfile find rule perl
ttf gfs theokritos libasm2 java tftpd hpa libproxy0 libjpeg progs
libnspr4 dev default jdk doc libxcb render util0 dev llvm dev krb5 config
libmono cairo2.0 cil xserver common libtagc0 libmono relaxng1.0 cil
python newt libbonobo2 0 libtdb1 libvte common libsctp1 libgnomevfs2 common
dblatex texlive pstricks ttf gfs artemisia docbook xml libavfilter0
libgnomevfs2 extra lbreakout2 data lmms common libnb platform devel java
x11proto xinerama dev ttf sil gentium libdca0 libx86 1 screen
x11proto render dev ttf gfs porson libxi dev texlive extra utils m4 gconf2
at ed libmono i18n west2.0 cil texlive latex base librpmio0
texlive metapost doc librpm0 texlive fonts recommended javahelp2
pulseaudio module x11 guile 1.8 libs rpm common po debconf liblualib50
auth client config libchm1 notification daemon wireshark common
libpixman 1 dev libsqlite0 groff base libfftw3 3 libdirectfb extra
libswingx java java wrappers libdotconf1.0 libmono microsoft7.0 cil
libmono system messaging2.0 cil libavdevice52 libnotify1
libmono system web1.0 cil libstartup notification0 libass4 libjs prototype
libapache2 mod php5 clamav base libavahi glib1 subversion openvpn blacklist
linux source 2.6.32 libmono accessibility1.0 cil libcommons logging java
libmono webbrowser0.5 cil libmono posix2.0 cil odbcinst jetty g++
mono runtime libvisual 0.4 0 libfontconfig1 dev libreadline java libcln6
libsensors applet plugin0 libclamav6 libcommons compress java libcanberra0
intltool debian erlang webtool dcraw kompozer data libnss3 dev
xorg docs core x11proto kb dev libswingworker java luatex
texlive bibtex extra x11proto randr dev libsoup gnome2.4 1 zlib bin caps
texlive generic recommended libxinerama dev libcap2 bin
libmono system runtime2.0 cil mono 2.0 devel libavcodec52 gcc 4.4
libopenctl0 x11 session utils toshset libpango perl
texlive latex recommended libc6 i386 jruby1.1 texlive font utils
mono csharp shell libgssrpc4 libopagent1 libobparser21 libgamin0 lib32gcc1
libpcrecpp0 libnova 0.12 2 texlive latex recommended doc unixodbc
erlang runtime tools libg15render1 update manager core lilypond data libsvn1
xtrans dev libatk1.0 dev ruby1.8 libwnck22 libportaudio2 libsexy2 vbetool
latex beamer libgtkdatabox 0.9.0 1 libcue1 libmenu cache1 libxcb event1
gputils common libmcrypt4 libjs jac samba common libiec61883 0 xinput
libelf1 libforms1 texlive binaries lib32asound2 libxres1 acpid
erlang docbuilder finger libmono i18n1.0 cil gettext ant php pear time
libmono oracle1.0 cil arj x11proto input dev libnb platform11 java tipa
python glade2 xmms2 plugin id3v2 libvirt0 ruby texlive latex base doc
libmono messaging2.0 cil libgp11 0 default jdk libmono rabbitmq2.0 cil
kde window manager libenca0 latex xcolor libjsch java libsvn java rtkit
libpulse browse0 launchpad integration libjetty java doc libexempi3
x11proto fixes dev koffice libs fckeditor mingw32 runtime libqt4 gui libt1 5
gcc libgdu0 libxml commons resolver1.1 java libpkcs11 helper1
libcobertura java libgnome2 common xpdf reader asymptote libjs scriptaculous
xfonts base libmono winforms1.0 cil libfli1 python xapian apt xapian index
libxen3 texlive xetex libmono db2 1.0 cil ant optional kdiff3 doc
pulseaudio esound compat binfmt support libesd0 libmikmod2 libwxgtk2.8 0
libkdecorations4 libmono system data2.0 cil openssh client
libcommons net java console terminus libresid builder0c2a libreadline5
libmono2.0 cil erlang inviso x11 xfs utils libsmi2ldbl krosspython
libmono system ldap2.0 cil speech dispatcher libmono bytefx0.7.6.1 cil
libmono data tds1.0 cil libgnomevfs2 0 x11proto xext dev espeak data
mono gac texlive luatex libxt dev libmono sharpzip2.6 cil libcroco3
libmono getoptions2.0 cil libboost thread1.40.0 libmono data2.0 cil
libevent 1.4 2 libxext dev python cairo texlive metapost
libpulse mainloop glib0 libgme0 libmono npgsql1.0 cil erlang mnesia
libgsf 1 114 libgtop2 common librarian0 freepats libmono ldap2.0 cil
libmono messaging rabbitmq2.0 cil libmono security1.0 cil libphp phpmailer
libspeexdsp1 libiptcdata0 x11proto damage dev kbibtex lyx common
php xml htmlsax3 rsync erlang public key manpages ffmpeg nbd server
libmono peapi1.0 cil libvncserver0 kstars data mono 2.0 gac libpostproc51
libkwineffects1 pax libglib2.0 dev libwv2 4 texlive fonts recommended doc
pgf zlib1g dev libdevmapper event1.02.1 lesstif2 liblzo2 2 hddtemp
libmono system1.0 cil libdate calc perl libcairo2 dev libqt3 mt mysql
xfonts 100dpi libspeechd2 esound common monodoc base lxmenu data
xmms2 plugin alsa libservlet2.5 java libglib perl libwildmidi0 netpbm
tex4ht common openssl blacklist libmono sharpzip0.6 cil xinit libradius1
erlang os mon libmono cscompmgd7.0 cil liborc 0.4 0 gstreamer0.10 pulseaudio
libraw1394 11 libespeak1 libfreetype6 dev libshout3 ttf gfs neohellenic
libgsm1 libdv4 libdvdnav4 fancontrol build essential libservlet2.3 java
libmono sqlite1.0 cil libmono sharpzip2.84 cil libxau dev dpkg dev
librpmbuild0 lilypond libxmmsclient6 debconf utils libcarp clan perl
mingw32 binutils barcode libfs6 libdvdread4 libmpdclient2
libmono relaxng2.0 cil stk packagekit libtext glob perl
libschroedinger 1.0 0 lilypond doc libksignalplotter4 libtotem plparser17
libavformat52 ttf gfs baskerville libmono microsoft build2.0 cil
libslf4j java libcommons daemon java libnfsidmap2 libindi0 libdc1394 22
libmono dev libkate1 libcdaudio1 libmimic0 erlang inets libgtop2 7
xmms2 core erlang ic libkadm5clnt mit7 libswing layout java
libvisual 0.4 plugins libcap ng0 libapparmor1 texlive base libpciaccess0
libregexp java libgnomeui common update manager kde xz utils
libmono cecil private cil libmono corlib1.0 cil wwwconfig common psutils
libsidplay2 wireshark erlang odbc libqtgtl0 python gdbm libkadm5srv mit7
clamav freshclam libc ares2 libc6 dev libsigsegv0 erlang nox context
python wicd libpackagekit glib2 12 libmono microsoft8.0 cil ttf gfs solomos
libg15 1 liblua5.1 0 libzeroc ice33 libmono system web2.0 cil
libxcomposite dev libmono cairo1.0 cil brasero common libsoundtouch1c2
libstk0c2a libwnck common libxcb render0 dev app install data libxrender dev
xmms2 plugin vorbis libxmmsclient glib1 libmpg123 0 sgml data libmad0
libnetpbm10 libmono accessibility2.0 cil ttf gfs gazis ant optional gcj
php5 ldap texlive doc base texlive latex extra libpq5 libtommath0
libart 2.0 2 librpcsecgss3 man db libid3tag0 libavahi compat libdnssd1
html2text libcdio cdda0 imagemagick texlive latex extra doc lib32z1
radeontool erlang ssh erlang percept libhamcrest java liblucene2 java
erlang ssl xmms2 plugin mad libgvfscommon0 php5 mysql
libmono i18n west1.0 cil libxft dev texlive pictures libx11 dev liboil0.3
libmhash2 libgc1c2 libaiksaurus 1.2 0c2a openjdk 6 doc libkdb5 4 libqt3 mt
lib32stdc++6 miscfiles libmono bytefx0.7.6.2 cil x11proto composite dev
linux libc dev libcommons collections3 java patch manpages dev kdelibs data
libbeansbinding java samba common bin libcelt0 0 openvpn libdirac encoder0
libgtlcore0 libboost regex1.40.0 tap plugins liblua50 php5 cli libruby1.8
libmono system messaging1.0 cil info tex gyre lib32v4l 0 libdbus 1 dev
libc dev bin watershed libxcb1 dev libgssglue1 wicd daemon openjdk 6 jdk
tinymce libmono posix1.0 cil libmail sendmail perl ant gcj
libbonoboui2 common libcommons digester java perl doc texlive math extra
python iniparse libdirectfb dev binutils systemsettings libjpeg62 dev
texlive pictures doc portmap libini4j java libjson glib 1.0 0
libdbus glib 1 dev ncurses term libjetty java p7zip full libmono i18n2.0 cil
libsys hostname long perl erlang parsetools libpam gnome keyring
texlive pstricks doc liblog4j1.2 java libnb svnclientadapter java
php5 common libmono oracle2.0 cil libjline java wicd gtk php gettext
libmono system runtime1.0 cil tex common lacheck gstreamer0.10 plugins base
x11proto core dev javascript common python gtk2 freeglut3 python gconf
libdigest hmac perl gnome doc utils libnb ide12 java dvb apps koffice data
libxdmcp dev libpthread stubs0 dev libsysfs dev pulseaudio utils libofa0
libxcursor dev python libxml2 libgnomecanvas2 common libgdiplus libmms0
libmono winforms2.0 cil oprofile libbit vector perl xpdf common libllvm2.7
texinfo libasound2 plugins libjs mootools ttf gfs didot classic erlang base
libsoup2.4 1 libboost filesystem1.40.0 libstdc++6 4.4 dev mono gmcs libfaad2
mercurial common packagekit backend apt libaudiofile0 libsmpeg0 libpng12 dev
Use 'apt-get autoremove' to remove them.
Suggested packages:
junit doc
The following NEW packages will be installed:
junit
0 upgraded, 1 newly installed, 0 to remove and 64 not upgraded.
Need to get 0B/107kB of archives.
After this operation, 225kB of additional disk space will be used.
Selecting previously deselected package junit.
(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 ... 200555 files and directories currently installed.)
Unpacking junit (from .../archives/junit_3.8.2 4_all.deb) ...
Processing triggers for man db ...
Setting up junit (3.8.2 4) ...
root@hiox:~