Results 1 to 3 of 3

Thread: The list and the actual applications on Ubuntu

  1. #1
    Join Date
    May 2017
    Beans
    5

    The list and the actual applications on Ubuntu

    Please let me understand:


    Code:
    $ apt list --installed
    It does not list the composer.


    Code:
    $ apt search composer
    composer/impish,impish 2.0.9-2ubuntu2 all
      dependency manager for PHP
    it returns (among other) the composer 2.0.9


    Code:
    $ composer
    Composer version 2.1.12 2021-11-09 16:02:04
    it returns other version


    Which ‘composer’ other applications are using?

    Last edited by bostjan-cadej; November 10th, 2021 at 11:54 AM.

  2. #2
    Join Date
    Aug 2011
    Location
    52.5° N 6.4° E
    Beans
    6,806
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: The list and the actual applications on Ubuntu

    The first command tells you that the package "composer" has not been installed through the package manager.

    The second command tells you that the package "composer", version 2.0.9-2ubuntu2, is available for installation by the package manager.

    The third command tells you that composer, version 2.1.12, is installed on your computer, but aparently not by the package manager. How you installed it is something you know best. Assuming only one version of composer is installed on your system, that is the version used whenever someting calls composer.

  3. #3
    Join Date
    May 2017
    Beans
    5

    Re: The list and the actual applications on Ubuntu

    Thank you for elaboration. It helped a lot.

    I've installed composer through this steps:
    Code:
    $ sudo apt install php-cli unzip
    $ cd ~
    $ curl -sS https://getcomposer.org/installer -o composer-setup.php
    $ HASH=`curl -sS https://composer.github.io/installer.sig`
    $ php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
    $ sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
    $ composer

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
  •