Results 1 to 5 of 5

Thread: What's the difference between apt-get and updatedb commands in terminal

  1. #1
    Join Date
    Sep 2013
    Beans
    21

    What's the difference between apt-get and updatedb commands in terminal

    Not quite sure what the difference is between the 2

  2. #2
    Join Date
    Jun 2013
    Location
    Somewhere on Earth.
    Beans
    468
    Distro
    Ubuntu 14.04 Trusty Tahr

    Lightbulb Re: What's the difference between apt-get and updatedb commands in terminal

    Code:
    apt-get
    installs/upgrades packages.

    Code:
    updatedb
    updates the slocate database.
    Last edited by Jonathan Precise; September 28th, 2013 at 10:34 PM. Reason: Thanks Elfy!
    Avatar credit: http://www.omgubuntu.co.uk/2010/07/d...-spread-ubuntu
    Note: I shall not respond to any PMs/threads for the rest of this 2014, as I will be very busy. Sorry for any inconvenience

  3. #3
    Join Date
    May 2007
    Location
    The New Forest
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: What's the difference between apt-get and updatedb commands in terminal

    apt-get is the package handler - used to install packages

    the updatedb command updates the database used by locate

    They are completely different things

  4. #4
    Join Date
    May 2007
    Location
    The New Forest
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: What's the difference between apt-get and updatedb commands in terminal

    Quote Originally Posted by Jonathan Precise View Post
    ...

    Code:
    updatedb
    just updates a list of the programs that can be run by program-name instead of /path/to/program-name.
    No - it does more than that

    locate will find more than just program names.

    Check out updatedb.conf

    Code:
    cat /etc/updatedb.conf
    You'll see there it keeps much more in the database, in my case I mount all my multimedia in /mnt mountpoints - I can use locate on those files too.

  5. #5
    Join Date
    Dec 2007
    Location
    Bombay
    Beans
    5,862
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: What's the difference between apt-get and updatedb commands in terminal

    Quote Originally Posted by Jonathan Precise View Post
    ...
    Code:
    updatedb
    updates the slocate database.
    Jon, on my Lubuntu 13.04, `man` say that /var/lib/mlocate/mlocate.db is the database.
    BTW, very nice apt-get tutorial
    de gustibus et coloribus non est disputandum -- Wiktionary

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •