apt-get Install locate

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

How to Install locate with apt-get?

apt-get install locate -y

Install Locate  Command

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

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

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

Result of the Command Execution shown below:

root@hiox:~ apt-get install locate -y
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
libusbip0 libsm dev syslinux python3 minimal libjaxp1.3 java libtwolame0
libjargs java xfonts 75dpi libzbar0 rpm2cpio libchewing3 data libice dev
libdigest sha1 perl fakeroot libxrandr dev xfonts scalable libexpat1 dev
libiw dev squashfs tools libxerces2 java unetbootin translations
libxdamage dev libpthread stubs0 scim bridge client gtk libotr2 gfxboot
libxnee0 libsvga1 libxfixes dev g++ 4.4 libvarnish1 icedtea netx azureus
ttf dustin libzend framework php libnspr4 dev libxcb render util0 dev
libax25 scim modules table language pack zh hant base x11proto xinerama dev
libdca0 libx86 1 x11proto render dev libxi dev xmms2 plugin pulse
java common librpmio0 xubuntu plymouth theme librpm0 libmagick++2 rpm common
icedtea 6 jre cacao libxnconfig9.0.5 libiso9660 7 libpixman 1 dev libcddb2
lxde common usb creator gtk libdirectfb extra java wrappers
libcommons cli java default jre headless python urlgrabber libass4 scim
znc tcl g++ libfontconfig1 dev pidgin data libscim8c2a openjdk 6 jre lib
firefox locale zh hans libvde0 firefox locale zh hant python3.1 libnss3 dev
xorg docs core x11proto kb dev x11proto randr dev libdvbpsi5 libxinerama dev
gcc 4.4 libxosd2 openjdk 6 jre headless xtrans dev libatk1.0 dev libsexy2
libchewing3 libmenu cache1 libbabl 0.0 0 libx264 85 libgegl 0.0 0 libelf1
libforms1 libvlc2 xubuntu artwork libsdl image1.2 blt x11proto input dev
xmms2 plugin id3v2 libenca0 python sqlitecachec x11proto fixes dev
gnome extra icons cnee python rpm xubuntu wallpapers vlc nox gcc xpdf reader
cvs linux headers 2.6.32 74 libggi2 libgtkimageview0
linux headers 2.6.32 74 generic zend framework bin libreadline5 libgii1
libupnp3 x11proto xext dev libmatroska0 tzdata java libxext dev
libswt gtk 3.5 jni scim gtk2 immodule znc perl x11proto damage dev
linux headers generic rsync manpages liba52 0.7.4 libnotify dev
libglib2.0 dev libzookeeper java libswt cairo gtk 3.5 jni zlib1g dev
lesstif2 liblzo2 2 desktop base python sqlite libcairo2 dev xfonts 100dpi
lxmenu data xmms2 plugin alsa liberror perl libzzip 0 13 tcl libpango1.0 dev
libfreetype6 dev libdvdnav4 build essential libxau dev dpkg dev rpm
libgii1 target x librpmbuild0 xfce4 power manager data libxmmsclient6
libdvdread4 scim bridge agent gimp tcl8.5 pinyin database xmms2 core
libgimp2.0 gnumeric common python3 ttf arphic bsmi00lp xz utils
ibus pinyin db open phrase libc6 dbg libsidplay1 language pack zh hans base
python3.1 minimal usb creator common libc ares2 libc6 dev tk8.5 liblua5.1 0
libxcomposite dev vim runtime libxcb render0 dev libxrender dev
xmms2 plugin vorbis libxmmsclient glib1 libmad0 xorg lxpanel
ttf arphic gbsn00lp pmount libid3tag0 ca certificates java html2text
libopencore amrnb0 libcommons lang java vlc data xmms2 plugin mad libxft dev
libx11 dev libtar libqt3 mt x11proto composite dev linux libc dev patch
manpages dev xvfb language pack zh hans language pack zh hant vzquota
libruby1.8 info libggi target x libdbus 1 dev libswt gtk 3.5 java
libc dev bin murrine themes libxcb1 dev libimlib2 libvala0 libgtk2.0 dev
libmail sendmail perl gimp data libdirectfb dev libvlccore2 binutils
libjpeg62 dev znc extra libvcdinfo0 libdbus glib 1 dev libebml0
openjdk 6 jre libossp uuid16 libsys hostname long perl liblog4j1.2 java
libopencore amrwb0 openbsd inetd libjline java xmms2 icon libnet1
x11proto core dev xmms2 client cli xmms2 client nycli libxdmcp dev
libpthread stubs0 dev libsysfs dev libxcursor dev libmpeg2 4 gnumeric doc
xpdf common vlc plugin pulse libxine1 ffmpeg scim modules socket libvdeplug2
libstdc++6 4.4 dev libfaad2 libswt mozilla gtk 3.5 jni libpng12 dev
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
locate
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0B/193kB of archives.
After this operation, 426kB of additional disk space will be used.
Selecting previously deselected package locate.
(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 ... 177760 files and directories currently installed.)
Unpacking locate (from .../locate_4.4.2 1ubuntu1_amd64.deb) ...
Processing triggers for man db ...
Setting up locate (4.4.2 1ubuntu1) ...

root@hiox:~


Related Topics

Apt Get Commands