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
    345
    Distro
    Ubuntu 13.10 Saucy Salamander

    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!
    I recommend a full ubuntu installation rather than a wubi install. Ask me why.
    To migrate from wubi, click here. (by bcbc)
    Status: Online
    https://help.ubuntu.com/community/UEFI, and Buggy UEFI solution.

  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
    Forum Social IRC Channel
    Xubuntu IRC Support
    Xubuntu Support

    Please do not PM me about Registration issues without having been asked to. I will tell you to post here

  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.
    Forum Social IRC Channel
    Xubuntu IRC Support
    Xubuntu Support

    Please do not PM me about Registration issues without having been asked to. I will tell you to post here

  5. #5
    Join Date
    Dec 2007
    Location
    Bombay
    Beans
    5,171
    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
  •