Results 1 to 5 of 5

Thread: Application is 32 bit or 64 bit

  1. #1
    Join Date
    Oct 2013
    Beans
    1

    Application is 32 bit or 64 bit

    Hi,

    How to check ( command for it) an application installed in Ubuntu 12.04 is 32 bit application or 64 bit application. I need to check PostgreSQL which is already got installed there in Ubuntu 12.04. Please provide Linux command to check whether this PostgreSQL is 32 bit or 64 bit.

  2. #2
    wojox is offline I Ubuntu, Therefore, I Am
    Join Date
    Apr 2009
    Beans
    8,628

    Re: Application is 32 bit or 64 bit

    apt-cache will show you package information. Then pipe it to grep to get the Arch.
    Code:
    sudo apt-cache show postgresql | grep Architecture

  3. #3
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    13,614
    Distro
    Ubuntu

    Re: Application is 32 bit or 64 bit

    Quote Originally Posted by wojox View Post
    apt-cache will show you package information. Then pipe it to grep to get the Arch.
    Code:
    sudo apt-cache show postgresql | grep Architecture
    Do you need to sudo to run apt-cache?
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  4. #4
    wojox is offline I Ubuntu, Therefore, I Am
    Join Date
    Apr 2009
    Beans
    8,628

    Re: Application is 32 bit or 64 bit

    Quote Originally Posted by deadflowr View Post
    Do you need to sudo to run apt-cache?
    No just a habit of my apt skills to add sudo.

  5. #5
    Join Date
    Jan 2009
    Location
    ::1
    Beans
    2,485

    Re: Application is 32 bit or 64 bit

    Quote Originally Posted by sreejithmylachal View Post
    Hi,

    How to check ( command for it) an application installed in Ubuntu 12.04 is 32 bit application or 64 bit application. I need to check PostgreSQL which is already got installed there in Ubuntu 12.04. Please provide Linux command to check whether this PostgreSQL is 32 bit or 64 bit.
    You can run 'file' against the binary to see what it is. For example

    Code:
    sander@flappie:~$ file /usr/lib/chromium-browser/chromium-browser
    /usr/lib/chromium-browser/chromium-browser: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=0x47a4b12a46cb7121f88413d51598f58b568cd042, stripped
    sander@flappie:~$
    So my chromium-browser is ... 64-bit

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
  •