Results 1 to 6 of 6

Thread: How to tell if package is installed?

  1. #1
    Join Date
    Sep 2006
    Beans
    118

    How to tell if package is installed?

    What's the best way to tell if a package is already installed? I can't seem to find a way to do it with apt-get.

    Thanks.
    __________________

  2. #2
    Join Date
    Jun 2007
    Location
    The Netherlands
    Beans
    1,279
    Distro
    Ubuntu Development Release

    Re: How to tell if package is installed?

    I have mutt installed. If I type: "sudo aptitude search mutt" it gives me (amongst other things):
    Code:
    i   mutt      - text-based mailreader supporting MIME, GPG, PGP and
    The "i" means it is installed...

  3. #3
    Join Date
    Jun 2008
    Location
    Conway, AR
    Beans
    10
    Distro
    Ubuntu UNR

    Re: How to tell if package is installed?

    dpkg -l | grep packagename

  4. #4
    Join Date
    Sep 2006
    Beans
    118

    Re: How to tell if package is installed?

    Quote Originally Posted by whoop View Post
    I have mutt installed. If I type: "sudo aptitude search mutt" it gives me (amongst other things):
    Code:
    i   mutt      - text-based mailreader supporting MIME, GPG, PGP and
    The "i" means it is installed...
    Thanks, that's what I am looking for.

    Thanks also, startrekker, your suggestion works well too.
    __________________

  5. #5

    Re: How to tell if package is installed?

    I usually use apt.
    apt-cache policy mypackage
    Freedif.org, news & tutorials on self-hosting services.
    Idipops, the social network for the services

  6. #6
    Join Date
    Sep 2006
    Beans
    118

    Re: How to tell if package is installed?

    Quote Originally Posted by dudumomo View Post
    I usually use apt.
    apt-cache policy mypackage
    Thanks. I like the output of this one, too.
    __________________

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
  •