Results 1 to 5 of 5

Thread: How to check if a tool is installed on the desktop system?

  1. #1
    Join Date
    Aug 2018
    Beans
    3

    Question How to check if a tool is installed on the desktop system?

    I want to build and install Erlang/OTP-21. Erlang/OTP on Ubuntu Desktop from source code.

    The documentation on http://erlang.org/doc/installation_guide/INSTALL.html lists the required utilities to build from source code, ie: GNU unzip, GNU make, Perl 5, etc...

    How can I find these utilities on my system using the command line?

    I've tried:

    DPKG -l | grep GNU make
    DPKG -l | grep GNU unzip
    DPKG -l | grep -i perl
    etc...

    But I don't have a conclusive answer. I feel that for example, "GNU make" should be on the system, but when I search as above nothing is returned.

    Please note, I want to build from source code for the learning experience, I don't want to simply alt-get install erlang.

    Thanks

  2. #2
    Join Date
    Aug 2018
    Beans
    16

    Re: How to check if a tool is installed on the desktop system?

    Good way to do this would be:

    Code:
    apt list --installed | grep [PACKAGE_NAME]
    check out:
    Code:
    apt --help
    for more details!

  3. #3
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: How to check if a tool is installed on the desktop system?

    First install the package build-essential which pulls in just about all you'll need to install packages from source code then try running those dpkg commands again but this time without using upper case and also omitting the GNU prefix of the utilities you're searching for and also removing the grep portion of the command, simplifying it to
    Code:
    dpkg -l make
    Those instructions are a bit confusing and I'm not sure they are very useful for Ubuntu users who are new to Linux; they are more generic.
    The apt list command shown above will also help you.

    However, bear in mind that most Ubuntu users seldom if ever compile and install from source as it is so much easier to use the repos and install with sudo apt install package-name

  4. #4
    Join Date
    Aug 2018
    Beans
    3

    Re: How to check if a tool is installed on the desktop system?

    Thank you, success!
    Last edited by lindseygohan; August 11th, 2018 at 12:10 AM.

  5. #5
    Join Date
    Aug 2018
    Beans
    3

    Re: How to check if a tool is installed on the desktop system?

    Thank you!

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
  •