devcontainers / features

A collection of Dev Container Features managed by Dev Container spec maintainers. See https://github.com/devcontainers/feature-starter to publish your own
https://containers.dev/features
MIT License
926 stars 377 forks source link

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

Open StephenGennard opened 4 months ago

StephenGennard commented 4 months ago

The following commands are missing but are available:

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:

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.

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.
samruddhikhandale commented 4 months ago

Hi 👋

The utilities tree, bzip2, dialog, and ncdu are commonly used in Unix-like operating systems for various tasks related to file and directory management, compression, and user interface creation in shell scripts. Feel free to open a PR if you are interested. Thanks!

StephenGennard commented 4 months ago

see https://github.com/devcontainers/features/pull/1029