• [^] # Re: apt-get kesako?

    Posté par . En réponse à la dépêche Sondages, sondages, sondages. Évalué à 6.

    l'interet apt-get est son aptitude a resoudre les dependances automatiquemen et a trouver les
    packages tout seul (cdrom, disque local, ftp, http,...).

    Par example voici un example de session shell pour installer le package 'beancounter' et les
    quelques packages dont il depend. Le tout prend 2 minutes (avec une connection rapide bien sur).

    $ apt-get install beancounter
    Reading Package Lists... Done
    Building Dependency Tree... Done
    The following extra packages will be installed:
    libdbd-odbc-perl libdbd-pg-perl libdbi-perl libiodbc2 libstatistics-descriptive-perl postgresql-client
    The following NEW packages will be installed:
    beancounter libdbd-odbc-perl libdbd-pg-perl libdbi-perl libiodbc2 libstatistics-descriptive-perl postgresql-client
    0 packages upgraded, 7 newly installed, 0 to remove and 131 not upgraded.
    Need to get 798kB of archives. After unpacking 2264kB will be used.
    Do you want to continue? [Y/n] y
    Get:1 http://non-us.debian.org(...) unstable/non-US/main libdbd-pg-perl 1.01-1 [62.6kB]
    Get:2 http://non-us.debian.org(...) unstable/non-US/main postgresql-client 7.1.3-4 [267kB]
    Get:3 http://http.us.debian.org(...) unstable/main libdbi-perl 1.19-1 [317kB]
    Get:4 http://http.us.debian.org(...) unstable/main libiodbc2 2.50.3-4 [32.2kB]
    Get:5 http://http.us.debian.org(...) unstable/main libdbd-odbc-perl 0.28-4 [47.9kB]
    Get:6 http://http.us.debian.org(...) unstable/main libstatistics-descriptive-perl 2.4-1 [18.2kB]
    Get:7 http://http.us.debian.org(...) unstable/main beancounter 0.3.1 [52.7kB]
    Fetched 798kB in 30s (26.2kB/s)
    Selecting previously deselected package libdbi-perl.
    (Reading database ... 70455 files and directories currently installed.)
    Unpacking libdbi-perl (from .../libdbi-perl_1.19-1_i386.deb) ...
    Selecting previously deselected package libdbd-pg-perl.
    Unpacking libdbd-pg-perl (from .../libdbd-pg-perl_1.01-1_i386.deb) ...
    Selecting previously deselected package libiodbc2.
    Unpacking libiodbc2 (from .../libiodbc2_2.50.3-4_i386.deb) ...
    Selecting previously deselected package libdbd-odbc-perl.
    Unpacking libdbd-odbc-perl (from .../libdbd-odbc-perl_0.28-4_i386.deb) ...
    Selecting previously deselected package libstatistics-descriptive-perl.
    Unpacking libstatistics-descriptive-perl (from .../libstatistics-descriptive-perl_2.4-1_all.deb) ...
    Selecting previously deselected package postgresql-client.
    Unpacking postgresql-client (from .../postgresql-client_7.1.3-4_i386.deb) ...

    Selecting previously deselected package beancounter.
    Unpacking beancounter (from .../beancounter_0.3.1_all.deb) ...
    Setting up libdbi-perl (1.19-1) ...

    Setting up libdbd-pg-perl (1.01-1) ...

    Setting up libiodbc2 (2.50.3-4) ...

    Setting up libdbd-odbc-perl (0.28-4) ...

    Setting up libstatistics-descriptive-perl (2.4-1) ...

    Setting up postgresql-client (7.1.3-4) ...

    The file /etc/postgresql/postgresql.env provides the normal set-up for
    an ordinary user running PostgreSQL. It is automatically read by the
    wrapper script for PostgreSQL user commands in postgresql-client.


    Setting up beancounter (0.3.1) ...
    ===================

    Il existe evidement de nombreuses autre commandes
    (update, check, remove,...)