devcontainers / devcontainers/features

common-utils: Red Hat distros are missing various commands but are available

Ouverte
#1,012 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
backlog
Langage dominant
Shell
Étoiles
1.5k
Forks
621
Merge moyen
6 j 53 min
PR mergées (30 j)
9

Description

The following commands are missing but are available:

- tree
- bzip2
- dialog
- ncdu

````shell
root ➜ /workspaces/HelloWorld $ sudo microdnf -y install tree bzip2 dialo
g
Package Repository Size
Installing:
bzip2-1.0.8-8.el9.x86_64 baseos 53.1 kB
dialog-1.3-32.20210117.el9.0.1.x86_64 appstream 244.6 kB
tree-1.8.0-10.el9.x86_64 baseos 56.1 kB
Transaction Summary:
Installing: 3 packages
Reinstalling: 0 packages
Upgrading: 0 packages
Obsoleting: 0 packages
Removing: 0 packages
Downgrading: 0 packages
Downloading packages...
Running transaction test...
Installing: dialog;1.3-32.20210117.el9.0.1;x86_64;appstream
Installing: tree;1.8.0-10.el9;x86_64;baseos
Installing: bzip2;1.0.8-8.el9;x86_64;baseos
Complete.
````

Validated on:

````shell
root ➜ /workspaces/HelloWorld $ sudo microdnf -y install tree bzip2 dialo
g
Package Repository Size
Installing:
bzip2-1.0.8-8.el9.x86_64 baseos 53.1 kB
dialog-1.3-32.20210117.el9.0.1.x86_64 appstream 244.6 kB
tree-1.8.0-10.el9.x86_64 baseos 56.1 kB
Transaction Summary:
Installing: 3 packages
Reinstalling: 0 packages
Upgrading: 0 packages
Obsoleting: 0 packages
Removing: 0 packages
Downgrading: 0 packages
Downloading packages...
Running transaction test...
Installing: dialog;1.3-32.20210117.el9.0.1;x86_64;appstream
Installing: tree;1.8.0-10.el9;x86_64;baseos
Installing: bzip2;1.0.8-8.el9;x86_64;baseos
Complete.
````

For ncdu, it's a bit more tricky.. but can be done.
````shell
bash-5.1# microdnf install -y epel-release
Downloading metadata...
Downloading metadata...
Downloading metadata...
Package Repository Size
Installing:
epel-release-9-7.el9.noarch extras 19.2 kB
Transaction Summary:
Installing: 1 packages
Reinstalling: 0 packages
Upgrading: 0 packages
Obsoleting: 0 packages
Removing: 0 packages
Downgrading: 0 packages
Downloading packages...
Running transaction test...
Installing: epel-release;9-7.el9;noarch;extras
Many EPEL packages require the CodeReady Builder (CRB) repository.
It is recommended that you run /usr/bin/crb enable to enable the CRB repository.
Complete.
bash-5.1# microdnf install -y ncdu
Downloading metadata...
Downloading metadata...
Package Repository Size
Installing:
ncdu-1.20-1.el9.x86_64 epel 61.5 kB
Transaction Summary:
Installing: 1 packages
Reinstalling: 0 packages
Upgrading: 0 packages
Obsoleting: 0 packages
Removing: 0 packages
Downgrading: 0 packages
Downloading packages...
Running transaction test...
Installing: ncdu;1.20-1.el9;x86_64;epel
Complete.
````

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par localiser la logique d’installation des paquets de la feature common-utils et la liste de paquets spécifique à Red Hat. Vérifiez comment tree, bzip2, dialog et ncdu sont pris en charge, notamment l’exigence d’EPEL décrite pour ncdu. La tâche est terminée lorsque ces commandes sont disponibles dans les conteneurs basés sur Red Hat pris en charge et que la validation existante de la feature réussit.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
linux, shell
Domaine
devops
Type d'issue
Fonctionnalité
Difficulté
2/5
Temps estimé
1-3 heures
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.