apt-get Install lxc

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

How to Install lxc with apt-get?

apt-get install lxc -y

Install Lxc  Command

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

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

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

Result of the Command Execution shown below:

root@hiox:~ apt-get install lxc -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 libsmbclient
libpolkit backend 1 0 libmono c5 1.0 cil lib32bz2 1.0 libplist1 aspell en
libpci3 libjna java libxcb aux0 menu xdg libsm dev libatk1.0 0 lxsession
jsvc python gnome2 menu 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 update notifier common
xfonts 75dpi byobu libndesk dbus1.0 cil python pyorbit libmtp8 rpm2cpio
libmono addins gui0.2 cil xsltproc libxcb atom1 libg15daemon client1
libnb apisupport1 java xserver xorg video all python debian
libmono wcf3.0 cil hicolor icon theme libxcomposite1 libice dev liboro java
libgail18 libarchive1 xserver xorg video apm libmono peapi2.0 cil
libavutil49 libntfs10 libaiksaurus 1.2 data libappframework java libpth20
xserver xorg video ark libunique 1.0 0 libflite1 fakeroot
xserver xorg video ati unattended upgrades libxrandr dev
libmono system data1.0 cil libgmime 2.4 2 libv4l 0 ttf dejavu extra liblcms1
libnb javaparser java libgnome2 vfs perl libhal storage1 libdb4.7 java
libmono simd2.0 cil libmono system2.0 cil libmono1.0 cil xfonts scalable
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 aspell
lxterminal usbmuxd libsensors4 libxdamage dev gstreamer0.10 plugins bad
lib32ncurses5 pkg config libbrasero media0 libgcj bc gcj 4.4 base
libxxf86dga1 libcaca0 libfile copy recursive perl libmono getoptions1.0 cil
gtk2 engines libgudev 1.0 0 libgnomecanvas2 0 poppler utils
libmono cscompmgd8.0 cil libsamplerate0 libmono data1.0 cil genisoimage
xserver xorg video openchrome libkpathsea5 hunspell en us lsof libwmf0.2 7
intel gpu tools preview latex style libmono sharpzip0.84 cil
libmono sqlite2.0 cil libmono ldap1.0 cil libevdocument2 libpthread stubs0
libcdparanoia0 libnunit2.4 cil libicu42 libavc1394 0 esound clients
smbclient libjtidy java libbonobo2 common libilmbase6 libjzlib java
libatk1.0 data libsgutils2 2 libprotobuf5 gnome mime data iso codes doc base
libmodplug0c2 libmono management2.0 cil python pycurl libicu4j java lxdm
x11 utils libboost system1.40.0 libmagickcore2 lxmusic libfreemarker java
libservlet2.4 java libdb4.7 java gcj xserver xorg video s3virge
libxml2 utils rrdtool desktop file utils xserver xorg video v4l dnsutils
libspectre1 x11 xkb utils libcommons beanutils java libgnomeui 0
libcairo perl xserver xorg video mga gvfs backends libtaglib2.0 cil dvipng
obex data server libgtk2 perl libyaml syck perl libparted0debian1
xserver xorg video chips libgluezilla libbeagle1 libmono corlib2.0 cil
libxfixes dev udisks libimobiledevice0 g++ 4.4 libboost signals1.40.0 junit
update inetd lmodern php5 icedtea netx lxde icon theme xserver xorg core
cli common libqt4 network libmono system web mvc1.0 cil libqt4 dbus
xserver xorg video mach64 libasm2 java libxxf86vm1 libproxy0 libjpeg progs
libjack0 xterm libnspr4 dev default jdk doc libxcb render util0 dev
libboost program options1.40.0 libnm util1 libuuid perl libmono cairo2.0 cil
xserver common libtagc0 libmono relaxng1.0 cil libgl1 mesa dri lxappearance
python newt libbonobo2 0 libtdb1 libdbi perl libmagickwand2 libvte common
libevview2 libgnomevfs2 common openbox themes texlive pstricks
libndesk dbus glib1.0 cil xserver xorg video trident obconf docbook xml
banshee extensions common libavfilter0 libgnomevfs2 extra
python software properties libnb platform devel java x11proto xinerama dev
libgl1 mesa glx xserver xorg video sis libdca0 libx86 1 screen
x11proto render dev libspeex1 libdate manip perl libxi dev
texlive extra utils munin node liblog log4perl perl gconf2 java common
dosfstools ed libmono i18n west2.0 cil texlive latex base librpmio0 librpm0
libxslt1.1 texlive fonts recommended javahelp2 libwbclient0 rpm common
librrd4 po debconf libgomp1 icedtea 6 jre cacao notification daemon
python apt python gnomecanvas gcj 4.4 jre lib libpixman 1 dev libnspr4 0d
podsleuth xscreensaver data leafpad libsqlite0 groff base libfftw3 3
lxde common libdirectfb extra libswingx java libdotconf1.0
xserver xorg video siliconmotion 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 libass4 libjs prototype libapache2 mod php5
xserver xorg input vmmouse libavahi glib1 gnome keyring subversion
openvpn blacklist policykit 1 libmono accessibility1.0 cil
libcommons logging java libobrender21 libmono webbrowser0.5 cil
libmono posix2.0 cil mysql server core 5.1 jetty xfonts utils g++
mono runtime libvisual 0.4 0 libfontconfig1 dev apturl common
xserver xorg video savage libcanberra gtk module libcommons compress java
libcanberra0 intltool debian openjdk 6 jre lib libsdl1.2debian alsa
libmono addins0.2 cil banshee libgnome2.24 cil libthai data libnss3 dev
xorg docs core x11proto kb dev libswingworker java luatex x11proto randr dev
libwavpack1 libqt4 opengl libsoup gnome2.4 1 texlive generic recommended
libmagickcore2 extra libmysqlclient16 libxinerama dev
xserver xorg video tdfx libmono system runtime2.0 cil mono 2.0 devel
libavcodec52 gcc 4.4 metacity common gstreamer0.10 plugins good
x11 session utils libpango perl libgcj10 cpu checker lxrandr
texlive latex recommended libc6 i386 jruby1.1 libfuse2 librrds perl
texlive font utils mono csharp shell liblzma1 libobparser21 libgamin0
lib32gcc1 libpcrecpp0 libqt4 sql sqlite libnss mdns pcmanfm
texlive latex recommended doc libdirectfb 1.2 0 ttf lyx librsvg2 common
libg15render1 libsvn1 libdatrie1 openjdk 6 jre headless xtrans dev
fontconfig libatk1.0 dev libwnck22 libportaudio2 libavahi common data
python webkit libsexy2 vbetool latex beamer libavahi core6 libcue1
libmenu cache1 libxcb event1 xserver xorg video intel libnet cidr perl
libmcrypt4 libxfont1 libindicator0 samba common libgconf2 4 libffi5
libiec61883 0 xinput libelf1 libforms1 texlive binaries lib32asound2
libxres1 xserver xorg input all libgtkspell0 libmono i18n1.0 cil gettext ant
prosper libmono oracle1.0 cil arj firefox xbitmaps libpango1.0 common
x11proto input dev libnb platform11 java tipa python glade2
xmms2 plugin id3v2 texlive latex base doc libmono messaging2.0 cil libgp11 0
default jdk libmono rabbitmq2.0 cil libenca0 latex xcolor libjsch java
libsvn java xserver xorg video vmware libgcr0 launchpad integration
libpixman 1 0 libjetty java doc libsdl1.2debian libexempi3
x11proto fixes dev libxaw7 mingw32 runtime xserver xorg video r128 libcups2
libt1 5 gcc libgdu0 libxml commons resolver1.1 java libpkcs11 helper1
libcobertura java libgnome2 common libhal1 cvs default jre
libjs scriptaculous xfonts base libmono winforms1.0 cil python xapian
apt xapian index hal lynx cur xserver xorg input evdev libmono db2 1.0 cil
libgraphviz4 libdbusmenu glib1 ant optional libqtcore4 libxinerama1
binfmt support libesd0 libmono system data2.0 cil libgif4 lxsession edit
xserver xorg video vesa libgnome vfs2.0 cil libcommons net java
libresid builder0c2a libmono2.0 cil x11 xfs utils libmono system ldap2.0 cil
libxft2 speech dispatcher libmono bytefx0.7.6.1 cil pciutils
mysql client core 5.1 libmono data tds1.0 cil libenchant1c2a libgnomevfs2 0
x11proto xext dev espeak data libmono zeroconf1.0 cil lxinput mono gac
python vte libnm glib2 texlive luatex libsnmp session perl libxt dev libvte9
alsa utils 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
libopenexr6 radiusclient1 libglade2.0 cil libgme0 libmono npgsql1.0 cil
libgsf 1 114 libgtop2 common libtheora0 libpoppler5 libice6 librarian0
freepats libaa1 libmono ldap2.0 cil libmono messaging rabbitmq2.0 cil
software properties gtk libmono security1.0 cil libopenobex1 libspeexdsp1
x11 xserver utils rarian compat libiptcdata0 libnet server perl lm sensors
x11proto damage dev libgnome2 canvas perl lyx common wodim libthai0
libart2.0 cil python dbus powermgmt base libdbd mysql perl manpages libidl0
libntfs 3g75 libneon27 gnutls libnotify0.4 cil ffmpeg xserver xorg video s3
libmono peapi1.0 cil xserver xorg libwebkit1.1 cil libglib2.0 cil libao2
mono 2.0 gac openbox libpostproc51 libdjvulibre21 libpoppler glib4
libglade2 0 libnotify dev libglib2.0 dev texlive fonts recommended doc
evince pgf zlib1g dev liblzo2 2 libmono system1.0 cil policykit 1 gnome
libxmu6 libcanberra gtk0 xserver xorg video nv libvorbisfile3 pm utils
libcairo2 dev xfonts 100dpi libspeechd2 libqt4 sql esound common
xserver xorg video voodoo libasound2 xserver xorg video fbdev
xserver xorg input wacom monodoc base lxmenu data xmms2 plugin alsa libflac8
libqt4 svg apturl libgconf2.0 cil libnb java3 java libservlet2.5 java
libglib perl xdg utils libwildmidi0 libxrender1 openssl blacklist
libmono sharpzip0.6 cil xinit libradius1 libmono cscompmgd7.0 cil
liborc 0.4 0 libraw1394 11 libespeak1 libpango1.0 dev libfreetype6 dev
libshout3 libgsm1 xserver xorg video nouveau libdv4 libdvdnav4 fancontrol
libatasmart4 libservlet2.3 java libmono sqlite1.0 cil
libmono sharpzip2.84 cil libvorbisenc2 libxau dev rpm librpmbuild0
x ttcidfont conf libxmmsclient6 munin common xul ext ubufox mingw32 binutils
python gnupginterface libfs6 libdvdread4 libmpdclient2 libqt4 xml
libmono relaxng2.0 cil libfreezethaw perl gstreamer0.10 x
xserver xorg video neomagic libschroedinger 1.0 0 libiw30
libtotem plparser17 libgs8 libavformat52 libmono microsoft build2.0 cil
libhunspell 1.2 0 libslf4j java libcommons daemon java libnfsidmap2
libdc1394 22 libtiff4 libfontenc1 libmono dev libkate1 libgdata1.4 cil
libcdaudio1 psfontmgr python gobject libmimic0 xserver xorg input mouse
libjasper1 libgtop2 7 xmms2 core ntfsprogs libswing layout java
libvisual 0.4 plugins ttf dejavu libgstreamer plugins base0.10 0
libplrpc perl libusbmuxd1 texlive base libappindicator0 libpciaccess0
libregexp java libgnomeui common gpicview xz utils libmono cecil private cil
synaptic libmono corlib1.0 cil libxxf86misc1 libwebkit 1.0 2
wwwconfig common gksu libgnome keyring0 libdaemon0 libsocket6 perl psutils
libxtst6 gtk2 engines pixbuf libsidplay2 usbutils smartdimmer libxvmc1
alsa base libc6 dev libqtgui4 liborbit2 libmono microsoft8.0 cil
libnautilus extension1 libg15 1 liblua5.1 0 avahi daemon tsconf
libzeroc ice33 libmono system web2.0 cil libxcomposite dev ghostscript
libtag1c2a librsvg2 2 libbonoboui2 0 libmono cairo1.0 cil brasero common
libsoundtouch1c2 ps2eps libavahi client3 libwnck common x11 common
libxcb render0 dev libxrender dev xmms2 plugin vorbis lrzsz libnet snmp perl
libxmmsclient glib1 lxshortcut libgksu2 0 libmpg123 0 sgml data libmad0
libgnome2 perl libmono accessibility2.0 cil libpolkit agent 1 0 libsysfs2
ant optional gcj xorg lxpanel texlive doc base xulrunner 1.9.2 dev
texlive latex extra 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
imagemagick texlive latex extra doc lib32z1 radeontool libhamcrest java
xserver xorg video sisusb liblucene2 java libpango1.0 0 xmms2 plugin mad
libsm6 libgvfscommon0 php5 mysql libmusicbrainz4c2a libmono i18n west1.0 cil
libxft dev libpulse0 texlive pictures libx11 dev brasero liboil0.3 libmhash2
libaiksaurus 1.2 0c2a openjdk 6 doc hal info lib32stdc++6 miscfiles
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 libdirac encoder0 libboost regex1.40.0
libqt4 sql mysql xserver xorg video tseng netcat traditional fuse utils
xserver xorg video radeon libxcb render0 php5 cli
libmono system messaging1.0 cil libboo2.0.9 cil scrollkeeper info
dvd+rw tools libexif12 libgtk2.0 bin lib32v4l 0 libglu1 mesa
libdjvulibre text libpaper utils libdbus 1 dev dbus x11 libxi6 libc dev bin
libvorbis0a libgtk2.0 cil libxcb1 dev libgssglue1 openjdk 6 jdk
xserver xorg video cirrus libgtk2.0 dev libmono posix1.0 cil
libmetacity private0 libmail sendmail perl ant gcj libbonoboui2 common
xscreensaver libgstreamer0.10 0 libcommons digester java libaudio2
libxcursor1 libdirectfb dev binutils libjpeg62 dev libxt6
texlive pictures doc libxv1 portmap libini4j java libjson glib 1.0 0
libdbus glib 1 dev libjetty java p7zip full openjdk 6 jre defoma
libmono i18n2.0 cil libavahi common3 libsys hostname long perl libmpcdec3
libpam gnome keyring texlive pstricks doc 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 tex common libusb 1.0 0
indicator application lacheck libnss3 1d gstreamer0.10 plugins base
libmldbm perl x11proto core dev javascript common ntfs 3g python gtk2
python gconf libsndfile1 xserver xorg input synaptics libaspell15
linux sound base xarchiver libmng1 gnome doc utils libgtk2.0 0 libbluetooth3
libnb ide12 java dvb apps libxdmcp dev xserver xorg video rendition
libpthread stubs0 dev libsysfs dev libofa0 libxcursor dev gsfonts
python libxml2 libnunit cil dev libxkbfile1 libgnomecanvas2 common
libgdiplus xserver xorg video i128 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.
The following extra packages will be installed:
libcap2 bin
Suggested packages:
libcap dev
The following NEW packages will be installed:
libcap2 bin lxc
0 upgraded, 2 newly installed, 0 to remove and 75 not upgraded.
Need to get 145kB of archives.
After this operation, 799kB of additional disk space will be used.
Get:1 http://old releases.ubuntu.com/ubuntu/ lucid updates/universe libcap2 bin 1:2.17 2ubuntu1.1 [22.2kB]
Get:2 http://old releases.ubuntu.com/ubuntu/ lucid/universe lxc 0.6.5 1 [123kB]
Fetched 145kB in 1s (131kB/s)
Selecting previously deselected package libcap2 bin.
(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 ... 127964 files and directories currently installed.)
Unpacking libcap2 bin (from .../libcap2 bin_1%3a2.17 2ubuntu1.1_amd64.deb) ...
Selecting previously deselected package lxc.
Unpacking lxc (from .../archives/lxc_0.6.5 1_amd64.deb) ...
Setting up libcap2 bin (1:2.17 2ubuntu1.1) ...

Setting up lxc (0.6.5 1) ...

Processing triggers for libc bin ...
ldconfig deferred processing now taking place
root@hiox:~


Related Topics

Apt Get Commands