Results 1 to 5 of 5

Thread: [SOLVED] How do I check (Using Terminal) if package/app installed?

  1. #1
    Join Date
    Oct 2008
    Location
    A place in Ohio.
    Beans
    87
    Distro
    Ubuntu

    Question [SOLVED] How do I check (Using Terminal) if package/app installed?

    How do I check using terminal to see if my package/app is properly installed?
    like for .deb and for other installs as well but mainly for .deb packages

    (I'm starting to get used to the terminal as I seem to be using it alot it's really not that hard it's just knowing the right command)

    Thanks

  2. #2
    Join Date
    Nov 2008
    Beans
    4

    Re: How do I check (Using Terminal) if package/app installed?

    You can check this with dpkg-query -l '*pkgname*'
    The first two characters in the output show the package installation status. For correctly installed packages it should read "ii"

  3. #3
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: How do I check (Using Terminal) if package/app installed?

    aptitude can help with this as well

    Code:
    sudo aptitude search <package_name>
    See man aptitude :

    search
    Searches for packages matching one of the patterns supplied on the command line. All packages which match any of the given patterns will be displayed; for instance, “aptitude search ’~N’ edit” will list all “new” packages and all packages whose name contains “edit”. For more information on search patterns, see the section “Search Patterns” in the aptitude
    reference manual.

    Unless you pass the -F option, the output of aptitude search will look something like this:

    i apt - Advanced front-end for dpkg
    pi apt-build - frontend to apt to build, optimize and in
    cp apt-file - APT package searching utility -- command-
    ihA raptor-utils - Raptor RDF Parser utilities

    Each search result is listed on a separate line. The first character of each line indicates the current state of the package: the most common states are
    p, meaning that no trace of the package exists on the system,
    c, meaning that the package was deleted but its configuration files remain on the system,
    i, meaning that the package is installed, and
    v, meaning that the package is virtual.

    The second character indicates the stored action (if any; otherwise a blank space is displayed) to be performed on the package, with the most common actions being i, meaning that the package will be installed, d, meaning that the package will be deleted, and p, meaning that the package and its configuration files will be
    removed. If the third character is A, the package was automatically installed.
    Last edited by bodhi.zazen; November 12th, 2008 at 07:36 AM.
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  4. #4
    Join Date
    Mar 2008
    Location
    California, USA
    Beans
    8,111

    Re: How do I check (Using Terminal) if package/app installed?

    And since there are always so many ways to do things in linux, you could also do:
    Code:
    apt-cache policy <package>
    Always plenty of choices.

  5. #5
    Join Date
    Oct 2008
    Location
    A place in Ohio.
    Beans
    87
    Distro
    Ubuntu

    Re: How do I check (Using Terminal) if package/app installed?

    Cool thanks to all.

Tags for this Thread

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
  •