Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| elearning:workbooks:lpic:11:500:l102 [2023/06/08 11:57] – admin | elearning:workbooks:lpic:11:500:l102 [2024/12/12 14:30] (Version actuelle) – admin | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ~~PDF: | ~~PDF: | ||
| - | Version : **2023.01** | + | Version : **2024.01** |
| Dernière mise-à-jour : ~~LASTMOD~~ | Dernière mise-à-jour : ~~LASTMOD~~ | ||
| Ligne 1053: | Ligne 1053: | ||
| ====Initramfs sous RHEL/CentOS 7==== | ====Initramfs sous RHEL/CentOS 7==== | ||
| - | Le fichier Initramfs //%%INITial Ram File System%%// | + | Copiez le fichier Initramfs //%%INITial Ram File System%%// |
| < | < | ||
| [root@centos7 ~]# cp / | [root@centos7 ~]# cp / | ||
| [root@centos7 ~]# cd /tmp | [root@centos7 ~]# cd /tmp | ||
| - | [root@centos7 tmp]# ls | ||
| - | custom | ||
| - | [root@centos7 tmp]# mv custom custom.gz | ||
| - | [root@centos7 tmp]# gunzip custom.gz | ||
| - | [root@centos7 tmp]# mkdir initramfs | ||
| - | [root@centos7 tmp]# cd initramfs | ||
| - | [root@centos7 initramfs]# cpio -cid -I ../custom | ||
| - | 113591 blocks | ||
| - | [root@centos7 initramfs]# ls | ||
| - | bin dev etc init lib lib64 proc root run sbin shutdown | ||
| - | [root@centos7 initramfs]# ls -l | ||
| - | total 4 | ||
| - | lrwxrwxrwx. | ||
| - | drwxr-xr-x. | ||
| - | drwxr-xr-x. 11 root root 520 Dec 4 11:00 etc | ||
| - | lrwxrwxrwx. | ||
| - | lrwxrwxrwx. | ||
| - | lrwxrwxrwx. | ||
| - | drwxr-xr-x. | ||
| - | drwxr-xr-x. | ||
| - | drwxr-xr-x. | ||
| - | lrwxrwxrwx. | ||
| - | -rwxr-xr-x. | ||
| - | drwxr-xr-x. | ||
| - | drwxr-xr-x. | ||
| - | drwxr-xr-x. | ||
| - | drwxr-xr-x. | ||
| - | drwxr-xr-x. | ||
| </ | </ | ||
| Ligne 1093: | Ligne 1065: | ||
| < | < | ||
| - | [root@centos7 initramfs]# cd .. | ||
| [root@centos7 tmp]# lsinitrd custom | more | [root@centos7 tmp]# lsinitrd custom | more | ||
| Image: custom: 56M | Image: custom: 56M | ||
| Ligne 2778: | Ligne 2749: | ||
| gpgkey=file:/// | gpgkey=file:/// | ||
| </ | </ | ||
| + | |||
| + | Depuis l'EOL de CentOS 7 , les dépôts ci-dessus ont été supprimés. Réparez donc les dépôts avec les commandes suivantes : | ||
| + | |||
| + | < | ||
| + | [root@centos7 ~]# sed -i ' | ||
| + | [root@centos7 ~]# sed -i ' | ||
| + | </ | ||
| + | |||
| ====Utilisation==== | ====Utilisation==== | ||
| Ligne 3489: | Ligne 3468: | ||
| * exécuter la commande **ldconfig -v**, où v implique verbose, afin de reconstruire le cache. | * exécuter la commande **ldconfig -v**, où v implique verbose, afin de reconstruire le cache. | ||
| | | ||
| - | =====La Commande dpkg===== | + | =====LAB #4 - Utilisation de la Commande dpkg===== |
| - | <WRAP center round todo> | + | Placez-vous dans le répertoire personnel de **root** grâce à la commande **cd ~** : |
| - | **A faire** - Placez-vous dans le répertoire personnel de **root** grâce à la commande **cd ~**. | + | |
| - | </WRAP> | + | < |
| + | root@debian11: | ||
| + | root@debian11: | ||
| + | /root | ||
| + | </code> | ||
| Afin de faciliter l' | Afin de faciliter l' | ||
| Ligne 3500: | Ligne 3483: | ||
| < | < | ||
| - | root@debian9:~# dpkg --help | + | root@debian11:~# dpkg --help |
| - | Syntaxe : dpkg [< | + | Usage: dpkg [< |
| Commands: | Commands: | ||
| - | -i|--install | + | -i|--install |
| - | --unpack | + | --unpack |
| - | -A|--record-avail | + | -A|--record-avail |
| - | --configure | + | --configure |
| - | --triggers-only | + | --triggers-only |
| - | -r|--remove | + | -r|--remove |
| - | -P|--purge | + | -P|--purge |
| - | -V|--verify < | + | -V|--verify |
| - | --get-selections [< | + | --get-selections [< |
| --set-selections | --set-selections | ||
| --clear-selections | --clear-selections | ||
| Ligne 3519: | Ligne 3502: | ||
| --clear-avail | --clear-avail | ||
| --forget-old-unavail | --forget-old-unavail | ||
| - | -s|--status < | + | -s|--status |
| - | -p|--print-avail < | + | -p|--print-avail |
| - | -L|--listfiles < | + | -L|--listfiles < |
| - | -l|--list [< | + | -l|--list [< |
| - | -S|--search < | + | -S|--search < |
| - | -C|--audit [< | + | -C|--audit [< |
| --yet-to-unpack | --yet-to-unpack | ||
| --predep-package | --predep-package | ||
| Ligne 3537: | Ligne 3520: | ||
| -Dh|--debug=help | -Dh|--debug=help | ||
| - | -?, --help | + | -?, --help |
| - | --version | + | --version |
| - | Fonctionnalités pouvant être déclarées : support-predepends, | + | Assertable features: support-predepends, |
| + | | ||
| Validatable things: pkgname, archname, trigname, version. | Validatable things: pkgname, archname, trigname, version. | ||
| - | Utiliser | + | Use dpkg with -b, --build, -c, --contents, -e, --control, -I, --info, |
| - | -f, --field, -x, --extract, -X, --vextract, --ctrl-tarfile, | + | -f, --field, -x, --extract, -X, --vextract, --ctrl-tarfile, |
| - | sur les archives (taper dpkg-deb --help.) | + | on archives (type dpkg-deb --help). |
| - | Options : | + | Options: |
| - | --admindir=< | + | --admindir=< |
| - | --root=<rép.> | + | --root=<directory> Install on a different root directory. |
| - | | + | --instdir=< |
| - | --instdir=< | + | |
| - | le répertoire d' | + | --post-invoke=< |
| - | --path-exclude=< | + | --path-exclude=< |
| - | un motif du shell. | + | --path-include=< |
| - | --path-include=< | + | -O|--selected-only |
| - | -O|--selected-only | + | -E|--skip-same-version |
| - | | + | -G|--refuse-downgrade |
| - | -E|--skip-same-version | + | -B|--auto-deconfigure |
| - | que celle installée. | + | --[no-]triggers |
| - | -G|--refuse-downgrade | + | --verify-format=< |
| - | | + | --no-pager |
| - | -B|--auto-deconfigure | + | --no-debsig |
| - | | + | |
| - | --[no-]triggers | + | |
| - | | + | |
| - | --verify-format=< | + | |
| - | --no-debsig | + | |
| - | des paquets. | + | |
| --no-act|--dry-run|--simulate | --no-act|--dry-run|--simulate | ||
| - | Se contente d'afficher les actions à effectuer | + | Just say what we would do - don't do it. |
| - | sans les réaliser effectivement. | + | -D|--debug=< |
| - | -D|--debug=< | + | --status-fd < |
| - | --status-fd < | + | --status-logger=< |
| - | de fichier | + | --log=<filename> Log status changes and actions to <filename>. |
| - | --status-logger=< | + | --ignore-depends=< |
| - | | + | |
| - | --log=<fichier> | + | --force-< |
| - | | + | --no-force-< |
| - | --ignore-depends=< | + | |
| - | | + | --abort-after < |
| - | --force-... | + | --robot |
| - | --no-force-...|--refuse-... | + | |
| - | | + | |
| - | --abort-after < | + | |
| - | Les opérateurs de comparaison pour --compare-versions | + | Comparison operators for --compare-versions |
| - | lt le eq ne ge gt (ne considérer aucune | + | lt le eq ne ge gt (treat empty version |
| - | que n' | + | lt-nl le-nl ge-nl gt-nl (treat empty version |
| - | lt-nl le-nl ge-nl gt-nl (ne considérer aucune | + | < << <= = >= >> > (only for compatibility with control |
| - | que n' | + | |
| - | < << <= = >= >> > (uniquement pour des raison de compatibilité | + | |
| - | la syntaxe du fichier | + | |
| - | Utilisez « apt » ou « aptitude » pour gérer les paquets de manière plus conviviale. | + | Use ' |
| </ | </ | ||
| - | ====Configuration==== | + | ====4.1 - Configuration==== |
| Le fichier de configuration proncipal de la commande **dpkg** est **/ | Le fichier de configuration proncipal de la commande **dpkg** est **/ | ||
| < | < | ||
| - | root@debian9:~# cat / | + | root@debian11:~# cat / |
| # dpkg configuration file | # dpkg configuration file | ||
| # | # | ||
| Ligne 3619: | Ligne 3591: | ||
| </ | </ | ||
| - | Les directives dans ce fichier sont les option | + | Les directives dans ce fichier sont les options |
| Il est important à noter que la base de données de la commande dpkg se trouve dans le répertoire **/ | Il est important à noter que la base de données de la commande dpkg se trouve dans le répertoire **/ | ||
| < | < | ||
| - | root@debian9:~# ls -l / | + | root@debian11:~# ls -l / |
| - | total 2792 | + | total 2836 |
| - | drwxr-xr-x 2 root root 4096 janv. 22 13:37 alternatives | + | drwxr-xr-x 2 root root 4096 Apr 25 13:38 alternatives |
| - | -rw-r--r-- 1 root root | + | -rw-r--r-- 1 root root |
| - | -rw-r--r-- 1 root root | + | -rw-r--r-- 1 root root |
| - | -rw-r--r-- 1 root root 559 janv. 22 13:39 diversions | + | -rw-r--r-- 1 root root 237 Apr 25 07:01 diversions |
| - | -rw-r--r-- 1 root root 614 janv. 22 13:39 diversions-old | + | -rw-r--r-- 1 root root 292 Apr 25 07:01 diversions-old |
| - | drwxr-xr-x 2 root root 258048 | + | drwxr-xr-x 2 root root 258048 |
| - | -rw-r----- 1 root root | + | -rw-r----- 1 root root |
| - | drwxr-xr-x 2 root root 4096 juin 26 2018 parts | + | -rw-r----- 1 root root 0 Apr 25 06:54 lock-frontend |
| - | -rw-r--r-- 1 root root 100 janv. 22 13:37 statoverride | + | drwxr-xr-x 2 root root 4096 Apr 14 2021 parts |
| - | -rw-r--r-- 1 root root 35 janv. 22 13:18 statoverride-old | + | -rw-r--r-- 1 root root 135 Apr 25 06:49 statoverride |
| - | -rw-r--r-- 1 root root 1215468 mars | + | -rw-r--r-- 1 root root 100 Apr 25 06:48 statoverride-old |
| - | -rw-r--r-- 1 root root 1215540 mars | + | -rw-r--r-- 1 root root 1239440 Apr 25 13:45 status |
| - | drwxr-xr-x 2 root root 4096 janv. 22 13:37 triggers | + | -rw-r--r-- 1 root root 1239479 Apr 25 13:45 status-old |
| - | drwxr-xr-x 2 root root 4096 mars | + | drwxr-xr-x 2 root root 4096 Apr 25 06:52 triggers |
| + | drwxr-xr-x 2 root root 4096 Apr 25 13:45 updates | ||
| </ | </ | ||
| Ligne 3646: | Ligne 3619: | ||
| </ | </ | ||
| - | ====Utilisation==== | + | ====4.2 - Utilisation==== |
| Afin de connaître la liste des paquets disponibles sur la machine, il convient de saisir la commande suivante dans une fenêtre de console en tant que **root** : | Afin de connaître la liste des paquets disponibles sur la machine, il convient de saisir la commande suivante dans une fenêtre de console en tant que **root** : | ||
| < | < | ||
| - | root@debian9:~# dpkg -l | more | + | root@debian11:~# dpkg -l | more |
| - | Souhait=inconnU/Installé/suppRimé/Purgé/H=à garder | + | Desired=Unknown/Install/Remove/Purge/Hold |
| - | | État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-déclenchements | + | | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |
| - | |/ Err?=(aucune)/besoin Réinstallation | + | |/ Err?=(none)/Reinst-required |
| - | ||/ Nom Version | + | ||/ Name |
| - | +++-=====================================-=================================-============-=============================================================================== | + | +++-=====================================-================================-============-======================================================================================================================= |
| - | ii acl 2.2.52-3+b1 amd64 | + | ii acl 2.2.53-10 |
| - | ii adduser | + | ii adduser |
| - | ii adwaita-icon-theme | + | ii adwaita-icon-theme |
| - | ii alsa-utils | + | ii alsa-topology-conf |
| - | ii anacron | + | ii alsa-ucm-conf |
| - | ii | + | ii alsa-utils |
| - | ii ant-optional | + | ii anacron |
| - | ii apt 1.4.9 amd64 commandline package manager | + | ii |
| - | ii apt-listchanges | + | ii apt 2.2.4 |
| - | ii apt-utils | + | ii apt-listchanges |
| - | ii aspell | + | ii apt-utils |
| - | ii aspell-en | + | ii aspell |
| - | ii aspell-fr | + | ii aspell-en |
| - | ii at-spi2-core | + | ii at-spi2-core |
| - | ii | + | ii |
| - | ii avahi-daemon | + | ii atril-common |
| - | ii base-files | + | ii avahi-daemon |
| - | ii base-passwd | + | ii base-files |
| - | ii bash | + | ii base-passwd |
| - | ii bash-completion | + | ii bash |
| - | ii bind9-host | + | ii bash-completion |
| - | ii | + | ii bc 1.07.1-2+b2 |
| - | ii | + | ii bind9-dnsutils |
| - | ii | + | ii bind9-host |
| - | ii bsdutils | + | ii bind9-libs: |
| - | ii busybox | + | ii |
| - | ii bzip2 1.0.6-8.1 amd64 high-quality block-sorting file compressor - utilities | + | ii |
| - | ii ca-certificates | + | ii |
| - | ii ca-certificates-java | + | ii bsdextrautils |
| - | ii coinor-libcbc3 | + | ii bsdutils |
| - | ii coinor-libcgl1 | + | ii bubblewrap |
| - | ii coinor-libclp1 | + | ii busybox |
| - | ii coinor-libcoinmp1v5: | + | ii bzip2 1.0.8-4 |
| - | ii coinor-libcoinutils3v5 | + | ii ca-certificates |
| - | --Plus-- | + | ii coinor-libcbc3: |
| + | ii coinor-libcgl1 | ||
| + | ii coinor-libclp1 | ||
| + | ii coinor-libcoinmp1v5: | ||
| + | ii coinor-libcoinutils3v5 | ||
| + | ii coinor-libosi1v5: | ||
| + | ii colord | ||
| + | ii colord-data | ||
| + | ii console-setup | ||
| + | ii console-setup-linux | ||
| + | ii coreutils | ||
| + | ii cpio 2.13+dfsg-4 | ||
| + | ii cpp | ||
| + | ii cpp-10 | ||
| + | ii cron 3.0pl1-137 | ||
| + | ii cups 2.3.3op2-3+deb11u1 | ||
| + | ii cups-browsed | ||
| + | ii cups-client | ||
| + | ii cups-common | ||
| + | --More-- | ||
| + | [q] | ||
| </ | </ | ||
| Ligne 3699: | Ligne 3692: | ||
| < | < | ||
| - | root@debian9:~# more / | + | root@debian11:~# more / |
| - | Package: gcc-6-base | + | Package: gcc-10-base |
| - | Source: gcc-6 | + | Source: gcc-10 |
| - | Version: | + | Version: |
| - | Installed-Size: | + | Installed-Size: |
| Maintainer: Debian GCC Maintainers < | Maintainer: Debian GCC Maintainers < | ||
| Architecture: | Architecture: | ||
| - | Breaks: | + | Breaks: |
| Description: | Description: | ||
| Description-md5: | Description-md5: | ||
| Ligne 3714: | Ligne 3707: | ||
| Section: libs | Section: libs | ||
| Priority: required | Priority: required | ||
| - | Filename: pool/ | + | Filename: pool/ |
| - | Size: 179954 | + | Size: 201332 |
| - | MD5sum: | + | MD5sum: |
| - | SHA256: | + | SHA256: |
| - | Package: | + | Package: |
| - | Source: gcc-6 (6.3.0-18+deb9u1) | + | Source: gcc-10 |
| - | Version: | + | Version: |
| - | Installed-Size: | + | Installed-Size: |
| Maintainer: Debian GCC Maintainers < | Maintainer: Debian GCC Maintainers < | ||
| Architecture: | Architecture: | ||
| - | Depends: gcc-6-base (= 6.3.0-18+deb9u1), libc6 (>= 2.14) | + | Replaces: libgcc1 (<< 1:10) |
| - | Breaks: | + | Provides: libgcc1 (= 1: |
| + | Depends: gcc-10-base (= 10.2.1-6), libc6 (>= 2.14) | ||
| + | Breaks: | ||
| Description: | Description: | ||
| Description-md5: | Description-md5: | ||
| Multi-Arch: same | Multi-Arch: same | ||
| Homepage: http:// | Homepage: http:// | ||
| + | Important: yes | ||
| + | Protected: yes | ||
| Tag: role:: | Tag: role:: | ||
| Section: libs | Section: libs | ||
| - | Priority: | + | Priority: |
| - | Filename: pool/ | + | Filename: pool/ |
| - | Size: 38018 | + | Size: 41400 |
| - | MD5sum: | + | MD5sum: |
| - | SHA256: | + | SHA256: |
| - | --Plus--(1%) | + | Package: libcrypt1 |
| + | Source: libxcrypt | ||
| + | Version: 1: | ||
| + | Installed-Size: | ||
| + | Maintainer: Marco d'Itri < | ||
| + | Architecture: | ||
| + | Replaces: libc6 (<< 2.29-4) | ||
| + | Depends: libc6 (>= 2.25) | ||
| + | Description: | ||
| + | Description-md5: | ||
| + | Multi-Arch: same | ||
| + | Important: yes | ||
| + | Protected: yes | ||
| + | Tag: role:: | ||
| + | Section: libs | ||
| + | --More--(1%) | ||
| + | [q] | ||
| </ | </ | ||
| Ligne 3745: | Ligne 3758: | ||
| < | < | ||
| - | root@debian9:~# more / | + | root@debian11:~# more / |
| - | Package: | + | Package: |
| Status: install ok installed | Status: install ok installed | ||
| Priority: optional | Priority: optional | ||
| - | Section: | + | Section: |
| - | Installed-Size: | + | Installed-Size: |
| - | Maintainer: | + | Maintainer: |
| Architecture: | Architecture: | ||
| - | Multi-Arch: | + | Multi-Arch: |
| - | Source: at-spi2-atk | + | Version: 2.2.53-10 |
| - | Version: 2.22.0-2 | + | Depends: |
| - | Replaces: at-spi | + | Description: |
| - | Provides: at-spi | + | This package contains the getfacl and setfacl utilities needed for |
| - | Depends: | + | |
| - | Conflicts: at-spi | + | |
| + | Homepage: https:// | ||
| + | |||
| + | Package: adduser | ||
| + | Status: install ok installed | ||
| + | Priority: important | ||
| + | Section: admin | ||
| + | Installed-Size: 849 | ||
| + | Maintainer: Debian Adduser Developers < | ||
| + | Architecture: | ||
| + | Multi-Arch: foreign | ||
| + | Version: | ||
| + | Depends: passwd, debconf | ||
| + | Suggests: liblocale-gettext-perl, | ||
| Conffiles: | Conffiles: | ||
| - | /etc/X11/ | + | /etc/deluser.conf 773fb95e98a27947de4a95abb3d3f2a2 |
| - | Description: | + | Description: |
| - | This package includes | + | This package includes the ' |
| - | D-Bus based AT-SPI. | + | and removing users. |
| - | Homepage: https:// | + | . |
| + | - ' | ||
| + | | ||
| + | | ||
| + | group. | ||
| + | . | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | . | ||
| + | | ||
| + | and mail spool or all the files they own on the system. | ||
| + | . | ||
| + | A custom script can be executed after each of the commands. | ||
| - | Package: | + | Package: |
| Status: install ok installed | Status: install ok installed | ||
| Priority: optional | Priority: optional | ||
| - | Section: | + | Section: |
| - | Installed-Size: | + | Installed-Size: |
| - | Maintainer: Debian | + | Maintainer: Debian |
| - | Architecture: | + | Architecture: |
| - | Multi-Arch: | + | Multi-Arch: |
| - | Source: gcc-6 | + | Version: 3.38.0-1 |
| - | Version: | + | Replaces: gnome-themes-standard-data |
| - | Depends: gcc-6-base (= 6.3.0-18+deb9u1), libc6 (> | + | --More--(0%) |
| - | Description: | + | [q] |
| - | A library, which provides quad-precision mathematical functions on targets | + | |
| - | | + | |
| - | | + | |
| - | Homepage: http:// | + | |
| - | + | ||
| - | Package: libvorbisfile3 | + | |
| - | --Plus--(0%) | + | |
| </ | </ | ||
| Ligne 3791: | Ligne 3824: | ||
| < | < | ||
| - | root@debian9:~# dpkg --get-selections | wc -l | + | root@debian11:~# dpkg --get-selections | wc -l |
| - | 1293 | + | 1301 |
| </ | </ | ||
| Ligne 3798: | Ligne 3831: | ||
| < | < | ||
| - | root@debian9:~# dpkg --get-selections | grep zip | + | root@debian11:~# dpkg --get-selections | grep zip |
| - | bzip2 install | + | bzip2 |
| - | gzip install | + | gzip install |
| - | p7zip install | + | p7zip |
| - | p7zip-full install | + | p7zip-full |
| - | unzip install | + | unzip |
| </ | </ | ||
| Ligne 3809: | Ligne 3842: | ||
| < | < | ||
| - | root@debian9:~# dpkg -s gzip | + | root@debian11:~# dpkg -s gzip |
| Package: gzip | Package: gzip | ||
| Essential: yes | Essential: yes | ||
| Ligne 3815: | Ligne 3848: | ||
| Priority: required | Priority: required | ||
| Section: utils | Section: utils | ||
| - | Installed-Size: | + | Installed-Size: |
| - | Maintainer: | + | Maintainer: |
| Architecture: | Architecture: | ||
| - | Source: gzip (1.6-5) | + | Version: 1.10-4+deb11u1 |
| - | Version: 1.6-5+b1 | + | |
| Depends: dpkg (>= 1.15.4) | install-info | Depends: dpkg (>= 1.15.4) | install-info | ||
| Pre-Depends: | Pre-Depends: | ||
| Ligne 3828: | Ligne 3860: | ||
| on files with names ending in ' | on files with names ending in ' | ||
| in ' | in ' | ||
| + | Homepage: https:// | ||
| </ | </ | ||
| Ligne 3833: | Ligne 3866: | ||
| < | < | ||
| - | root@debian9:~# dpkg -L gzip | + | root@debian11:~# dpkg -L gzip |
| /. | /. | ||
| /bin | /bin | ||
| Ligne 3854: | Ligne 3887: | ||
| / | / | ||
| / | / | ||
| - | / | + | / |
| / | / | ||
| / | / | ||
| - | / | ||
| / | / | ||
| / | / | ||
| Ligne 3863: | Ligne 3895: | ||
| / | / | ||
| / | / | ||
| - | / | ||
| - | / | ||
| / | / | ||
| / | / | ||
| Ligne 3886: | Ligne 3916: | ||
| < | < | ||
| - | root@debian9:~# dpkg -S /bin/zfgrep | + | root@debian11:~# dpkg -S /bin/zfgrep |
| gzip: /bin/zfgrep | gzip: /bin/zfgrep | ||
| </ | </ | ||
| - | =====La Commande dselect===== | + | =====LAB #5 - Utilisation de la Commande dselect===== |
| La commande **dselect** est un outil interactif utilisé pour gérer, installer et désinstaller des paquets. C'est un //Front End// à la commande **dpkg** et est lancé sans options. | La commande **dselect** est un outil interactif utilisé pour gérer, installer et désinstaller des paquets. C'est un //Front End// à la commande **dpkg** et est lancé sans options. | ||
| Ligne 3897: | Ligne 3927: | ||
| < | < | ||
| - | root@debian9:~# apt-get install dselect | + | root@debian11:~# apt-get |
| - | Lecture des listes de paquets... Fait | + | |
| - | Construction de l' | + | |
| - | Lecture des informations d' | + | |
| - | Les NOUVEAUX paquets suivants seront installés : | + | |
| - | dselect | + | |
| - | 0 mis à jour, 1 nouvellement installés, 0 à enlever et 96 non mis à jour. | + | |
| - | Il est nécessaire de prendre 1 285 ko dans les archives. | + | |
| - | Après cette opération, 2 561 ko d' | + | |
| - | Réception de:1 http:// | + | |
| - | 1 285 ko réceptionnés en 0s (1 837 ko/s) | + | |
| - | Sélection du paquet dselect précédemment désélectionné. | + | |
| - | (Lecture de la base de données... 91043 fichiers et répertoires déjà installés.) | + | |
| - | Préparation du dépaquetage de .../ | + | |
| - | Dépaquetage de dselect (1.18.25) ... | + | |
| - | Paramétrage de dselect (1.18.25) ... | + | |
| - | Traitement des actions différées (« triggers ») pour man-db (2.7.6.1-2) ... | + | |
| </ | </ | ||
| Ligne 3919: | Ligne 3933: | ||
| < | < | ||
| - | Interface de gestion de paquets | + | Debian |
| - | * 0. [A]ccéder | + | * 0. [A]ccess Choose the access method to use. |
| - | 1. [M]ise à j Mise à jour de l' | + | 1. [U]pdate Update list of available packages, if possible. |
| - | 2. [S]électio Sélection des paquets que vous désirez avoir sur votre syst | + | 2. [S]elect Request which packages you want on your system. |
| - | 3. [I]nstaller Installation et mise à niveau des paquets désirés. | + | 3. [I]nstall |
| - | 4. [C]onfigure Configuration de tout paquet non configuré. | + | 4. [C]onfig Configure any packages that are unconfigured. |
| - | 5. [R]etirer | + | 5. [R]emove Remove unwanted software. |
| - | 6. [Q]uitter | + | 6. [Q]uit Quit dselect. |
| + | |||
| + | Move around with ^P and ^N, cursor keys, initial letters, or digits; | ||
| + | Press < | ||
| - | Utilisez ^P et ^N, les touches fléchées, les lettres initiales ou les chiffres p | ||
| - | our vous déplacer ; | ||
| - | Appuyez sur < | ||
| Copyright (C) 1994-1996 Ian Jackson. | Copyright (C) 1994-1996 Ian Jackson. | ||
| Copyright (C) 2000,2001 Wichert Akkerman. | Copyright (C) 2000,2001 Wichert Akkerman. | ||
| - | Ce programme est un logiciel libre ; prière de consulter la « GNU | + | This is free software; see the GNU General Public |
| - | Public | + | later for copying |
| - | conditions | + | |
| </ | </ | ||
| <WRAP center round todo> | <WRAP center round todo> | ||
| - | **A faire** - Notez les instructions en bas de l' | + | **A faire** - Notez les instructions en bas de l' |
| </ | </ | ||
| - | =====La Commande apt-get===== | + | =====LAB #6 - Utilisation de Commande apt-get===== |
| APT ou en anglais //Advanced Package Tool// est un gestionnaire de paquets de haut niveau capable de résoudre automatiquement les problèmes de dépendances entre les paquets. | APT ou en anglais //Advanced Package Tool// est un gestionnaire de paquets de haut niveau capable de résoudre automatiquement les problèmes de dépendances entre les paquets. | ||
| Ligne 3956: | Ligne 3969: | ||
| < | < | ||
| - | root@debian9:~# apt-get --help | + | root@debian11:~# apt-get --help |
| - | apt 1.4.9 (amd64) | + | apt 2.2.4 (amd64) |
| Usage: apt-get [options] command | Usage: apt-get [options] command | ||
| | | ||
| Ligne 3968: | Ligne 3981: | ||
| Most used commands: | Most used commands: | ||
| - | update - Récupère les nouvelles listes de paquets | + | update - Retrieve new lists of packages |
| - | upgrade - Réalise une mise à jour | + | upgrade - Perform an upgrade |
| - | install - Installe de nouveaux paquets | + | install - Install new packages |
| - | remove - Supprime des paquets | + | reinstall - Reinstall packages (pkg is libc6 not libc6.deb) |
| - | purge - Supprime des paquets et leurs fichiers de configuration | + | remove - Remove packages |
| - | autoremove - Supprime automatiquement les dépendances inutilisés | + | purge - Remove packages and config files |
| - | dist-upgrade - Met à jour la distribution, reportez-vous à apt-get(8) | + | autoremove - Remove automatically all unused packages |
| - | dselect-upgrade - Suit les sélections de dselect | + | dist-upgrade - Distribution upgrade, see apt-get(8) |
| - | build-dep - Configure build-dependencies | + | dselect-upgrade - Follow |
| - | clean - Supprime dans le cache local tous les fichiers téléchargés | + | build-dep - Configure build-dependencies |
| - | autoclean - Supprime dans le cache local les fichiers inutiles | + | satisfy - Satisfy dependency strings |
| - | check - Vérifie qu'il n'y a pas de rupture de dépendances | + | clean - Erase downloaded archive files |
| - | source - Télécharge les archives | + | autoclean - Erase old downloaded archive files |
| - | download - Télécharge le paquet binaire dans le répertoire courant | + | check - Verify that there are no broken dependencies |
| - | changelog - Télécharge et affiche le journal des modifications (« changelog ») du paquet indiqué | + | source - Download source |
| + | download - Download the binary package into the current directory | ||
| + | changelog - Download and display the changelog for the given package | ||
| See apt-get(8) for more information about the available commands. | See apt-get(8) for more information about the available commands. | ||
| Ligne 3989: | Ligne 4004: | ||
| Package and version choices can be expressed via apt_preferences(5). | Package and version choices can be expressed via apt_preferences(5). | ||
| Security details are available in apt-secure(8). | Security details are available in apt-secure(8). | ||
| - | Cet APT a les « Super | + | This APT has Super Cow Powers. |
| </ | </ | ||
| - | ====Configuration==== | + | ====6.1 - Configuration==== |
| - | APT peut être configuré par un fichier centralisé **/ | + | APT peut être configuré par un fichier centralisé **/ |
| < | < | ||
| - | root@debian9:~# cat /usr/ | + | root@debian11:~# cat /etc/ |
| - | // $Id: apt.conf,v 1.43 1999/12/06 02:19:38 jgg Exp $ | + | cat: /etc/apt/apt.conf: No such file or directory |
| + | </code> | ||
| + | |||
| + | Un exemple est fourni | ||
| + | |||
| + | < | ||
| + | root@debian11:~# cat / | ||
| /* This file is a sample configuration file with a few harmless sample | /* This file is a sample configuration file with a few harmless sample | ||
| | | ||
| Ligne 4035: | Ligne 4056: | ||
| < | < | ||
| - | root@debian9:~# ls / | + | root@debian11:~# ls / |
| - | 00CDMountPoint 01autoremove | + | 00CDMountPoint |
| - | 00trustcdrom 01autoremove-kernels | + | |
| </ | </ | ||
| Ligne 4043: | Ligne 4063: | ||
| < | < | ||
| - | root@debian9:~# cat / | + | root@debian11:~# cat / |
| Acquire:: | Acquire:: | ||
| mount "/ | mount "/ | ||
| }; | }; | ||
| Dir:: | Dir:: | ||
| - | root@debian9:~# | + | root@debian11:~# |
| - | root@debian9:~# cat / | + | root@debian11:~# cat / |
| + | APT:: | ||
| + | root@debian11: | ||
| + | root@debian11:~# cat / | ||
| APT | APT | ||
| { | { | ||
| NeverAutoRemove | NeverAutoRemove | ||
| { | { | ||
| - | " | + | |
| - | " | + | " |
| + | " | ||
| + | " | ||
| }; | }; | ||
| VersionedKernelPackages | VersionedKernelPackages | ||
| { | { | ||
| - | # linux kernels | + | |
| - | " | + | " |
| - | " | + | " |
| - | " | + | " |
| - | " | + | # (out-of-tree) modules |
| - | # kfreebsd kernels | + | " |
| - | " | + | " |
| - | " | + | |
| - | # hurd kernels | + | |
| - | " | + | |
| - | # (out-of-tree) modules | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | # tools | + | |
| - | " | + | |
| }; | }; | ||
| Never-MarkAuto-Sections | Never-MarkAuto-Sections | ||
| { | { | ||
| - | " | + | |
| - | " | + | " |
| - | " | + | " |
| - | " | + | " |
| - | " | + | " |
| - | " | + | " |
| }; | }; | ||
| Move-Autobit-Sections | Move-Autobit-Sections | ||
| { | { | ||
| - | " | + | |
| - | " | + | " |
| - | " | + | " |
| - | " | + | " |
| - | " | + | " |
| - | " | + | " |
| }; | }; | ||
| }; | }; | ||
| - | root@debian9:~# | + | root@debian11:~# |
| - | root@debian9:~# cat / | + | root@debian11:~# cat / |
| // DO NOT EDIT! File autogenerated by / | // DO NOT EDIT! File autogenerated by / | ||
| - | APT::NeverAutoRemove | + | APT::LastInstalledKernel |
| - | { | + | root@debian11: |
| - | "^linux-image-4\.9\.0-8-amd64$"; | + | root@debian11: |
| - | " | + | DPkg::Pre-Install-Pkgs { "/ |
| - | " | + | DPkg:: |
| - | " | + | DPkg:: |
| - | | + | Dir:: |
| - | " | + | Dir:: |
| - | " | + | root@debian11: |
| - | "^.*-modules-4\.9\.0-8-amd64$"; | + | root@debian11: |
| - | | + | // THIS FILE IS USED TO INFORM PACKAGEKIT |
| - | " | + | // THAT THE UPDATE-INFO MIGHT HAVE CHANGED |
| - | " | + | |
| + | // Whenever dpkg is called we might have different updates | ||
| + | // i.e. if an user removes a package that had an update | ||
| + | DPkg::Post-Invoke { | ||
| + | "/ | ||
| }; | }; | ||
| - | /* Debug information: | + | |
| - | # dpkg list: | + | // When Apt's cache is updated (i.e. apt-cache update) |
| - | iF linux-image-4.9.0-8-amd64 | + | APT:: |
| - | iU linux-image-amd64 | + | "/ |
| - | # list of installed kernel packages: | + | }; |
| - | 4.9.0-8-amd64 4.9.130-2 | + | root@debian11:~# |
| - | # list of different kernel versions: | + | root@debian11:~# cat / |
| - | 4.9.130-2 | + | |
| - | # Installing kernel: 4.9.130-2 (4.9.0-8-amd64) | + | |
| - | # Running kernel: 4.9.130-2 (4.9.0-8-amd64) | + | |
| - | # Last kernel: | + | |
| - | # Previous kernel: | + | |
| - | # Kernel versions list to keep: | + | |
| - | 4.9.130-2 | + | |
| - | # Kernel packages (version part) to protect: | + | |
| - | 4\.9\.0-8-amd64 | + | |
| - | */ | + | |
| - | root@debian9:~# | + | |
| - | root@debian9:~# cat / | + | |
| // Pre-configure all packages with debconf before they are installed. | // Pre-configure all packages with debconf before they are installed. | ||
| // If you don't like it, comment it out. | // If you don't like it, comment it out. | ||
| Ligne 4139: | Ligne 4147: | ||
| </ | </ | ||
| - | ====Dépôts==== | + | ====6.2 - Dépôts==== |
| <WRAP center round important> | <WRAP center round important> | ||
| Ligne 4148: | Ligne 4156: | ||
| < | < | ||
| - | root@debian9:~# cat / | + | root@debian11:~# cat / |
| - | # | + | # deb cdrom: |
| - | # deb cdrom: | + | #deb cdrom: |
| - | #deb cdrom:[Debian GNU/Linux 9.6.0 _Stretch_ | + | deb http://deb.debian.org/debian/ bullseye main |
| + | deb-src http:// | ||
| - | deb http://ftp.fr.debian.org/ | + | deb http://security.debian.org/ |
| - | deb-src http://ftp.fr.debian.org/ | + | deb-src http://security.debian.org/ |
| - | deb http://security.debian.org/ | + | # bullseye-updates, |
| - | deb-src http://security.debian.org/ | + | # see https:// |
| + | deb http://deb.debian.org/ | ||
| + | deb-src http://deb.debian.org/ | ||
| - | # stretch-updates, | + | # This system was installed using small removable media |
| - | deb http://ftp.fr.debian.org/debian/ stretch-updates main | + | # (e.g. netinst, live or single CD). The matching "deb cdrom" |
| - | deb-src http://ftp.fr.debian.org/debian/ stretch-updates main | + | # entries were disabled at the end of the installation process. |
| + | # For information about how to configure apt package sources, | ||
| + | # see the sources.list(5) manual. | ||
| </ | </ | ||
| Ligne 4190: | Ligne 4203: | ||
| < | < | ||
| - | root@debian9:~# apt-get update | + | root@debian11:~# apt-get update |
| - | Atteint:1 http://security.debian.org/ | + | Hit:1 http://deb.debian.org/ |
| - | Ign:2 http://ftp.fr.debian.org/ | + | Get:2 http://deb.debian.org/ |
| - | Réception de:3 http:// | + | Hit:3 http://security.debian.org/ |
| - | Atteint:4 http://ftp.fr.debian.org/ | + | Fetched 39.4 kB in 1s (58.1 kB/s) |
| - | 91,0 ko réceptionnés en 0s (145 ko/s) | + | Reading package lists... Done |
| - | Lecture des listes de paquets... Fait | + | |
| </ | </ | ||
| - | ====Utilisation==== | + | ====6.3 - Utilisation==== |
| Les **commandes** les plus utilisées d' | Les **commandes** les plus utilisées d' | ||
| Ligne 4208: | Ligne 4220: | ||
| | remove | | remove | ||
| | purge | Supprimer un paquet **et** ses fichiers de configuration. | | | purge | Supprimer un paquet **et** ses fichiers de configuration. | | ||
| - | |||
| - | =====LAB #5 - Utiliser la commande apt-get===== | ||
| Commencez par installer le paquet **mc** : | Commencez par installer le paquet **mc** : | ||
| < | < | ||
| - | root@debian9:~# apt-get install mc | + | root@debian11:~# apt-get install mc |
| - | Lecture des listes de paquets... Fait | + | Reading package lists... Done |
| - | Construction de l' | + | Building dependency tree... Done |
| - | Lecture des informations d' | + | Reading state information... Done |
| The following additional packages will be installed: | The following additional packages will be installed: | ||
| mc-data | mc-data | ||
| - | Paquets suggérés : | + | Suggested packages: |
| - | arj catdvi | texlive-binaries dbview djvulibre-bin genisoimage gv imagemagick libaspell-dev links | w3m | lynx odt2txt | + | arj catdvi | texlive-binaries dbview djvulibre-bin |
| - | Les NOUVEAUX paquets suivants seront installés : | + | The following NEW packages will be installed: |
| mc mc-data | mc mc-data | ||
| - | 0 mis à jour, 2 nouvellement installés, 0 à enlever et 96 non mis à jour. | + | 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. |
| - | Il est nécessaire de prendre | + | Need to get 1,880 kB of archives. |
| - | Après cette opération, 7 175 ko d' | + | After this operation, 7,772 kB of additional disk space will be used. |
| - | Souhaitez-vous continuer | + | Do you want to continue? [Y/n] y |
| - | Réception de:1 http:// | + | |
| - | Réception de:2 http:// | + | |
| - | 1 780 ko réceptionnés en 0s (2 484 ko/s) | + | |
| - | Sélection du paquet mc-data précédemment désélectionné. | + | |
| - | (Lecture de la base de données... 91128 fichiers et répertoires déjà installés.) | + | |
| - | Préparation du dépaquetage de .../ | + | |
| - | Dépaquetage de mc-data (3: | + | |
| - | Sélection du paquet mc précédemment désélectionné. | + | |
| - | Préparation du dépaquetage de .../ | + | |
| - | Dépaquetage de mc (3: | + | |
| - | Traitement des actions différées (« triggers ») pour mime-support (3.60) ... | + | |
| - | Traitement des actions différées (« triggers ») pour desktop-file-utils (0.23-1) ... | + | |
| - | Paramétrage de mc-data (3: | + | |
| - | Traitement des actions différées (« triggers ») pour man-db (2.7.6.1-2) ... | + | |
| - | Traitement des actions différées (« triggers ») pour hicolor-icon-theme (0.15-1) ... | + | |
| - | Paramétrage de mc (3: | + | |
| - | update-alternatives: | + | |
| </ | </ | ||
| Ligne 4250: | Ligne 4243: | ||
| < | < | ||
| - | root@debian9:~# apt-get --reinstall install mc | + | root@debian11:~# apt-get --reinstall install mc |
| - | Lecture des listes de paquets... Fait | + | Reading package lists... Done |
| - | Construction de l' | + | Building dependency tree... Done |
| - | Lecture des informations d' | + | Reading state information... Done |
| - | 0 mis à jour, 0 nouvellement installés, 1 réinstallés, 0 à enlever et 96 non mis à jour. | + | 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded. |
| - | Il est nécessaire de prendre | + | Need to get 0 B/534 kB of archives. |
| - | Après cette opération, 0 o d' | + | After this operation, 0 B of additional disk space will be used. |
| - | (Lecture de la base de données... 91494 fichiers et répertoires déjà installés.) | + | (Reading database |
| - | Préparation du dépaquetage de .../ | + | Preparing to unpack |
| - | Dépaquetage de mc (3:4.8.18-1) sur (3:4.8.18-1) ... | + | Unpacking |
| - | Traitement des actions différées (« triggers ») pour mime-support | + | Setting up mc (3:4.8.26-1.1) ... |
| - | Traitement des actions différées (« triggers ») pour desktop-file-utils (0.23-1) ... | + | Processing triggers for desktop-file-utils (0.26-1) ... |
| - | Paramétrage de mc (3:4.8.18-1) ... | + | Processing triggers for mailcap |
| </ | </ | ||
| Ligne 4268: | Ligne 4261: | ||
| < | < | ||
| - | root@debian9:~# apt-get --purge remove mc | + | root@debian11:~# apt-get --purge remove mc |
| - | Lecture des listes de paquets... Fait | + | Reading package lists... Done |
| - | Construction de l' | + | Building dependency tree... Done |
| - | Lecture des informations d' | + | Reading state information... Done |
| - | Le paquet suivant a été installé automatiquement et n'est plus nécessaire : | + | The following package was automatically installed and is no longer required: |
| mc-data | mc-data | ||
| - | Veuillez utiliser « apt autoremove » pour le supprimer. | + | Use 'apt autoremove' |
| - | Les paquets suivants seront ENLEVÉS : | + | The following packages will be REMOVED: |
| mc* | mc* | ||
| - | 0 mis à jour, 0 nouvellement installés, 1 à enlever et 96 non mis à jour. | + | 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. |
| - | Après cette opération, 1 465 ko d' | + | After this operation, 1,528 kB disk space will be freed. |
| - | Souhaitez-vous continuer | + | Do you want to continue? [Y/n] y |
| - | (Lecture de la base de données... 91494 fichiers et répertoires déjà installés.) | + | |
| - | Suppression de mc (3: | + | |
| - | update-alternatives: | + | |
| - | Traitement des actions différées (« triggers ») pour mime-support (3.60) ... | + | |
| - | Traitement des actions différées (« triggers ») pour desktop-file-utils (0.23-1) ... | + | |
| - | (Lecture de la base de données... 91404 fichiers et répertoires déjà installés.) | + | |
| - | Purge des fichiers de configuration de mc (3: | + | |
| </ | </ | ||
| Ligne 4292: | Ligne 4278: | ||
| < | < | ||
| - | root@debian9:~# ls / | + | root@debian11:~# ls / |
| - | binutils_2.28-5_amd64.deb libasan3_6.3.0-18+deb9u1_amd64.deb libgcc-6-dev_6.3.0-18+deb9u1_amd64.deb libubsan0_6.3.0-18+deb9u1_amd64.deb | + | binutils_2.35.2-2_amd64.deb |
| - | curl_7.52.1-5+deb9u9_amd64.deb | + | binutils-common_2.35.2-2_amd64.deb |
| - | dselect_1.18.25_amd64.deb libcc1-0_6.3.0-18+deb9u1_amd64.deb liblsan0_6.3.0-18+deb9u1_amd64.deb manpages-dev_4.10-2_all.deb | + | binutils-x86-64-linux-gnu_2.35.2-2_amd64.deb |
| - | gcc_4%3a6.3.0-4_amd64.deb | + | dselect_1.20.9_amd64.deb |
| - | gcc-6_6.3.0-18+deb9u1_amd64.deb | + | gcc-10_10.2.1-6_amd64.deb |
| + | gcc_4%3a10.2.1-1_amd64.deb | ||
| </ | </ | ||
| Ligne 4303: | Ligne 4290: | ||
| < | < | ||
| - | root@debian9:~# apt-get clean | + | root@debian11:~# apt-get clean |
| - | root@debian9:~# ls / | + | root@debian11:~# ls / |
| lock partial | lock partial | ||
| </ | </ | ||
| Ligne 4310: | Ligne 4297: | ||
| Pour mettre à jour les paquets déjà installés, il convient d' | Pour mettre à jour les paquets déjà installés, il convient d' | ||
| - | * **upgrade**, | + | * **upgrade** |
| - | * **dist-upgrade**. | + | * **dist-upgrade** |
| - | + | ||
| - | La deuxième | + | |
| <WRAP center round todo> | <WRAP center round todo> | ||
| - | **A faire** - Consultez l'**[[http:// | + | **A faire** - Utilisez la commande |
| </ | </ | ||
| - | =====LAB | + | D' |
| + | |||
| + | < | ||
| + | root@debian11: | ||
| + | -rwxr-xr-x 1 root root 18664 Jun 10 2021 / | ||
| + | -rwxr-xr-x 1 root root 88376 Jun 10 2021 / | ||
| + | -rwxr-xr-x 1 root root 26936 Jun 10 2021 / | ||
| + | -rwxr-xr-x 1 root root 26856 Jun 10 2021 / | ||
| + | -rwxr-xr-x 1 root root 22848 Jun 10 2021 / | ||
| + | -rwxr-xr-x 1 root root 276800 Jun 10 2021 / | ||
| + | -rwxr-xr-x 1 root root 47416 Jun 10 2021 / | ||
| + | -rwxr-xr-x 1 root root 28191 Jun 10 2021 / | ||
| + | -rwxr-xr-x 1 root root 12242 Mar 28 2021 / | ||
| + | -rwxr-xr-x 1 root root 51512 Jun 10 2021 / | ||
| + | -rwxr-xr-x 1 root root 39152 Jun 10 2021 / | ||
| + | </ | ||
| + | |||
| + | Chaque | ||
| + | |||
| + | * **apt-cache** - utilisée pour se renseigner sur les paquets connus à APT, | ||
| + | * **apt-cdrom** - utilisée pour ajouter un CD-ROM aux sources des paquets disponibles, | ||
| + | * **apt-config** - utilisée pour obtenir les valeurs de la configuration de APT, | ||
| + | * **apt-extracttemplates** - utilisée pour extraire des fichiers templates pour la configuration d'un paquet lors de son installation. Le résultat est donc l' | ||
| + | * **apt-ftparchive** - utilisée pour créer les index dont APT se sert pour accéder aux sources des distributions, | ||
| + | * **apt-key** - utilisée pour gerer les clefs dont se sert APT pour authentifier les paquets. Les paquets authentifiés par ces clefs seront réputés fiables, | ||
| + | * **apt-listchanges** - utilisée pour afficher ce qui a changé dans la nouvelle version d'un paquet Debian par rapport à la version actuellement installée sur le système, | ||
| + | * **apt-mark** - utilisée pour diverses configurations d'un paquet, par exemple pour le marquer comme installé automatiquement ou manuellement, | ||
| + | * **apt-sortpkgs** - utilisée pour prendre un fichier index (source ou paquet) and trier les enregistrements de telle façon qu'ils soient ordonnés par nom. | ||
| - | La commande | + | =====LAB #7 - Utilisation de la Commande |
| La commande apt-cache prend la forme suivante : | La commande apt-cache prend la forme suivante : | ||
| Ligne 4332: | Ligne 4344: | ||
| < | < | ||
| - | root@debian9:~# apt-cache --help | + | root@debian11:~# apt-cache --help |
| - | apt 1.4.9 (amd64) | + | apt 2.2.4 (amd64) |
| Usage: apt-cache [options] command | Usage: apt-cache [options] command | ||
| | | ||
| Ligne 4345: | Ligne 4357: | ||
| Most used commands: | Most used commands: | ||
| - | showsrc - Affiche les enregistrements des sources | + | showsrc - Show source records |
| - | search - Cherche une expression rationnelle dans la liste des paquets | + | search - Search the package list for a regex pattern |
| - | depends - Affiche toutes les dépendances d'un paquet | + | depends - Show raw dependency information for a package |
| - | rdepends - Affiche les dépendances inverses d'un paquet | + | rdepends - Show reverse dependency information for a package |
| - | show - Affiche la description du paquet | + | show - Show a readable record for the package |
| - | pkgnames - Liste le nom de tous les paquets du système | + | pkgnames - List the names of all packages in the system |
| - | policy - Affiche l' | + | policy - Show policy settings |
| See apt-cache(8) for more information about the available commands. | See apt-cache(8) for more information about the available commands. | ||
| Ligne 4371: | Ligne 4383: | ||
| < | < | ||
| - | root@debian9:~# apt-cache stats | + | root@debian11:~# apt-cache stats |
| - | Nombre total de paquets : 65317 (1 306 k) | + | Total package names: 98002 (2,744 k) |
| - | Nombre total de structures | + | Total package |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | Nombre de versions | + | Total distinct |
| - | Nombre de descriptions | + | Total distinct |
| - | Nombre de dépendances : 328341/88670 (7 986 k) | + | Total dependencies: 352751/101877 |
| - | Nombre de relations version/fichier : 55240 (1 326 k) | + | Total ver/file relations: 60904 (1,462 k) |
| - | Nombre de relations description/fichier : 52689 (1 265 k) | + | Total Desc/File relations: 52059 (1,249 k) |
| - | Nombre de relations « Provides » : 8946 (215 k) | + | Total Provides mappings: 22309 (535 k) |
| - | Nombre de motifs rationnels : 147962 | + | Total globbed strings: 186821 |
| - | Espace disque gaspillé : 26,2 k | + | Total slack space: 100 k |
| - | Total de l' | + | Total space accounted for: 32.4 M |
| - | Total buckets in PkgHashTable: | + | Total buckets in PkgHashTable: |
| - | Unused: | + | Unused: |
| - | Used: 36634 | + | Used: 70316 |
| - | Utilization: | + | Utilization: |
| - | Average entries: 1.7831 | + | Average entries: 1.24033 |
| - | Longest: | + | Longest: |
| Shortest: 1 | Shortest: 1 | ||
| - | Total buckets in GrpHashTable: | + | Total buckets in GrpHashTable: |
| - | Unused: | + | Unused: |
| - | Used: 36634 | + | Used: 77168 |
| - | Utilization: | + | Utilization: |
| - | Average entries: 1.78296 | + | Average entries: 1.26998 |
| - | Longest: | + | Longest: |
| Shortest: 1 | Shortest: 1 | ||
| </ | </ | ||
| Ligne 4411: | Ligne 4423: | ||
| < | < | ||
| - | root@debian9:~# apt-cache search mc | more | + | root@debian11:~# apt-cache search mc | more |
| - | alsa-oss - encapsuleur | + | libace-rmcast-6.5.12 - ACE reliable multicast library |
| - | amule-emc - liste les liens ed2k dans les fichiers | + | libace-rmcast-dev - ACE reliable multicast library - development files |
| - | apel - bibliothèque | + | libace-tmcast-6.5.12 - ACE transactional multicast library |
| - | apmd - utilitaires de gestion avancée de l' | + | libace-tmcast-dev - ACE transactional multicast library - development files |
| - | appstream - gestion de métadonnées de composants logiciels | + | alsa-oss - ALSA wrapper for OSS applications |
| - | ap-utils - utilitaires SNMP de point d' | + | amule-emc - lists ed2k links inside |
| - | archipel-agent-vmcasting | + | apel - portable |
| - | ardour - station de travail audionumérique | + | appstream - Software component metadata management |
| - | asterisk | + | gir1.2-appstreamcompose-1.0 - Building blocks to compose AppStream metadata (introspection data) |
| - | auto-07p - logiciel pour les problèmes de continuation | + | ardour - the digital audio workstation |
| - | auto-multiple-choice - gestion de QCM | + | libarmci-mpi-dev - ARMCI-MPI |
| - | auto-multiple-choice-common - Auto Multiple Choice - fichiers indépendants de l'architecture | + | auto-07p - software for continuation |
| - | auto-multiple-choice-doc - Auto Multiple Choice - documentation | + | auto-multiple-choice - Auto Multiple Choice - multiple choice papers management |
| - | auto-multiple-choice-doc-pdf - Auto Multiple Choice - documentation | + | auto-multiple-choice-common - Auto Multiple Choice - architecture |
| - | beast2-mcmc - inférence phylogénétique bayésienne MCMC | + | auto-multiple-choice-doc - Auto Multiple Choice - HTML documentation |
| - | beast2-mcmc-doc - inférence phylogénétique bayésienne | + | auto-multiple-choice-doc-pdf - Auto Multiple Choice - PDF documentation |
| - | beast2-mcmc-examples - inférence phylogénétique bayésienne | + | bali-phy - Bayesian Inference of Alignment and Phylogeny |
| - | beast-mcmc - inférence phylogénétique bayésienne | + | libbambamc-dev - Development files for reading and writing BAM (genome alignment) files |
| - | beast-mcmc-doc - inférence phylogénétique bayésienne | + | libbambamc0 |
| - | beast-mcmc-examples - inférence phylogénétique bayésienne | + | python3-beaker - cache and session library for Python 3 |
| - | cbmc - vérificateur de modèle borné pour les programmes C et C++ | + | beast-mcmc - Bayesian |
| - | cccc - compteur de code C et C++, outil de métrique | + | beast-mcmc-examples - Bayesian |
| - | claws-mail-spam-report | + | libnucleotidelikelihoodcore0 - implementation of LikelihoodCore for nucleotides used by beast-mcmc |
| - | cl-closer-mop - bibliothèque AMOP d' | + | beast2-mcmc - Bayesian |
| - | cl-mcclim | + | beast2-mcmc-doc - Bayesian |
| - | cl-mcclim-doc - paquet d' | + | beast2-mcmc-examples - Bayesian |
| - | cl-mcclim-examples - boîte à outils d' | + | biobambam2 - tools for early stage alignment file processing |
| - | cl-swank - mode supérieur d' | + | libblosc-dev - high performance meta-compressor optimized for binary data (development files) |
| - | cl-trivial-backtrace | + | libblosc1 - high performance meta-compressor optimized for binary data |
| - | cl-uffi - bibliothèque de fonction externe universelle pour Common Lisp | + | python3-cachy - Provide a simple yet effective caching library (Python 3) |
| - | cmucl-source - sources LISP de CMUCL | + | libcbf-dev - development files for CBFlib |
| - | collectd-core - démon de statistiques et surveillance – système central | + | cbmc - bounded model checker for C and C++ programs |
| - | colortest - outils pour tester la capacité en couleur d' | + | cccc - C and C++ Code Counter, a software metrics tool |
| - | comgt - outil de contrôle de carte de donnée Vodafone et Option GlobeTrotter | + | libccid |
| - | complexity - outil d' | + | libcglm-dev - Development files for the cglm library |
| - | complexity-doc - outil d' | + | cif-tools - Suite of tools to manipulate, validate and query mmCIF files |
| - | cpuid - outil pour lister les informations CPUID x86 sur le(s) processeur(s) | + | cl-babel - charset encoding/ |
| - | discover-data - listes de données pour Discover, le système d' | + | cl-trivial-backtrace |
| - | dreamchess | + | cl-uffi - Universal Foreign Function Library for Common Lisp |
| - | --Plus-- | + | claws-mail-spam-report - Spam reporting plugin for Claws Mail |
| + | clonalframeml | ||
| + | libclutter-imcontext-0.1-0 - Open GL based interactive canvas library IMContext framework | ||
| + | libclutter-imcontext-0.1-0-dbg - Open GL based interactive canvas library IMContext framework (debug files) | ||
| + | libclutter-imcontext-0.1-bin - Open GL based interactive canvas library IMContext framework | ||
| + | libclutter-imcontext-0.1-dev - Open GL based interactive canvas library IMContext framework (dev. files) | ||
| + | libclutter-imcontext-0.1-doc - Open GL based interactive canvas library IMContext framework (document) | ||
| + | cmucl-source - CMUCL lisp sources | ||
| + | cohomcalg - sheaf cohomology of line bundles on toric varieties | ||
| + | cohomcalg-common - sheaf cohomology of line bundles on toric varieties (common files) | ||
| + | collectd-core - statistics collection and monitoring daemon (core system) | ||
| + | colortest - utilities to test color capabilities of terminal | ||
| + | libcombblas-dev - an extensible parallel graph library for graph analytics | ||
| + | libcombblas-docs - an extensible parallel graph library for graph analytics (docs) | ||
| + | libcombblas1.16.0 - an extensible parallel graph library for graph analytics | ||
| + | comgt - Option GlobeTrotter | ||
| + | complexity - tool for analyzing the complexity of C program functions | ||
| + | complexity-doc - tool for analyzing the complexity of C program | ||
| + | cp2k - Ab Initio Molecular Dynamics | ||
| + | --More-- | ||
| + | [q] | ||
| </ | </ | ||
| Ligne 4457: | Ligne 4489: | ||
| < | < | ||
| - | root@debian9:~# apt-cache search " | + | root@debian11:~# apt-cache search " |
| - | avfs - système de fichiers virtuel pour accéder aux archives, images | + | pilot - Simple file browser from Alpine, a text-based email client |
| - | gnome-commander - gestionnaires de fichiers pour GNOME | + | avfs - virtual filesystem to access |
| - | junior-system - outils système | + | junior-system - Debian Jr. System tools |
| - | krusader - Gestionnaire de fichiers à deux volets | + | krusader - twin-panel |
| - | lfm - gestionnaire de fichiers simple et puissant pour la console UNIX | + | mc - Midnight Commander - a powerful file manager |
| - | mc - Midnight Commander - gestionnaire de fichiers évolué | + | mc-data - Midnight Commander - a powerful file manager |
| - | mc-data - Midnight Commander - gestionnaire de fichiers évolué –⋅fichiers de données | + | |
| - | pilot - Navigateur simple de fichiers pour Alpine, client de courriel en mode texte | + | |
| - | tuxcmd - gestionnaire de fichiers à double panneau utilisant GTK+ 2 | + | |
| - | gnome-commander-data - Data files for GNOME Commander | + | |
| - | gnome-commander-dbg - Debugging symbols for gnome-commander | + | |
| moc - ncurses based console audio player | moc - ncurses based console audio player | ||
| - | ranger - File manager with an ncurses frontend written in Python | ||
| </ | </ | ||
| Ligne 4476: | Ligne 4502: | ||
| < | < | ||
| - | root@debian9:~# apt-cache show mc | + | root@debian11:~# apt-cache show mc |
| Package: mc | Package: mc | ||
| - | Version: 3:4.8.18-1 | + | Version: 3:4.8.26-1.1 |
| - | Installed-Size: | + | Installed-Size: |
| - | Maintainer: | + | Maintainer: |
| Architecture: | Architecture: | ||
| Provides: mcedit | Provides: mcedit | ||
| - | Depends: | + | Depends: |
| - | Recommends: mime-support, | + | Recommends: mime-support, |
| - | Suggests: arj, bzip2, catdvi | texlive-binaries, | + | Suggests: arj, bzip2, catdvi | texlive-binaries, |
| - | Description-fr: Midnight Commander - gestionnaire de fichiers évolué | + | Description-en: Midnight Commander - a powerful file manager |
| - | GNU Midnight Commander | + | GNU Midnight Commander |
| - | | + | uses a two panel interface and a subshell for command execution. It |
| - | l' | + | includes an internal editor with syntax highlighting and an internal |
| - | colorisation syntaxique ainsi qu'un afficheur de fichiers gérant les | + | viewer with support for binary files. Also included is Virtual |
| - | fichiers binaires. Il fournit également VFS (« Virtual Filesystem », | + | Filesystem (VFS), that allows files on remote systems |
| - | système de fichiers virtuel) qui permet de manipuler les fichiers situés | + | servers) and files inside |
| - | sur des systèmes distants | + | |
| - | fichiers inclus dans des archives. | + | |
| Description-md5: | Description-md5: | ||
| - | Homepage: | + | Homepage: |
| - | Tag: admin:: | + | Tag: admin:: |
| - | interface:: | + | implemented-in:: |
| - | scope:: | + | |
| - | use:: | + | uitoolkit:: |
| + | works-with:: | ||
| Section: utils | Section: utils | ||
| Priority: optional | Priority: optional | ||
| - | Filename: pool/ | + | Filename: pool/ |
| - | Size: 512534 | + | Size: 534020 |
| - | MD5sum: | + | MD5sum: |
| - | SHA256: | + | SHA256: |
| </ | </ | ||
| Ligne 4512: | Ligne 4537: | ||
| < | < | ||
| - | root@debian9:~# apt-cache depends mc | + | root@debian11:~# apt-cache depends mc |
| mc | mc | ||
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | Suggests: arj |
| - | |Suggère: catdvi | + | |
| - | | + | |Suggests: catdvi |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | Suggests: file |
| - | | + | |
| + | | ||
| + | | ||
| graphicsmagick-imagemagick-compat | graphicsmagick-imagemagick-compat | ||
| imagemagick-6.q16 | imagemagick-6.q16 | ||
| - | | + | |
| - | |Suggère: links | + | |Suggests: links |
| - | |Suggère: w3m | + | |Suggests: w3m |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | python-is-python2 |
| - | | + | |
| - | |Suggère: xpdf | + | |
| - | | + | Suggests: unar |
| + | Suggests: wimtools | ||
| + | |Suggests: xpdf | ||
| + | | ||
| atril | atril | ||
| evince | evince | ||
| Ligne 4552: | Ligne 4582: | ||
| mupdf | mupdf | ||
| okular | okular | ||
| + | qpdfview | ||
| viewpdf.app | viewpdf.app | ||
| xpdf | xpdf | ||
| zathura-pdf-poppler | zathura-pdf-poppler | ||
| - | | + | |
| </ | </ | ||
| Ligne 4561: | Ligne 4592: | ||
| < | < | ||
| - | |Suggère: xpdf | + | |Suggests: xpdf |
| - | | + | |
| </ | </ | ||
| indiquent soit **xpdf** soit **< | indiquent soit **xpdf** soit **< | ||
| + | |||
| + | <WRAP center round important> | ||
| + | **Important** - Il est aussi possible d' | ||
| + | </ | ||
| ----- | ----- | ||
| - | Copyright © 2023 Hugh Norris. | + | Copyright © 2024 Hugh Norris. |