Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tree, bzip2, dialog and ncdu - Pull request for issue #1012 #1029

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion src/common-utils/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,10 @@ install_redhat_packages() {
grep \
which \
man-db \
strace"
strace \
tree \
bzip2 \
StephenGennard marked this conversation as resolved.
Show resolved Hide resolved
dialog"

# rockylinux:9 installs 'curl-minimal' which clashes with 'curl'
# Install 'curl' for every OS except this rockylinux:9
Expand Down Expand Up @@ -224,6 +227,21 @@ install_redhat_packages() {
${install_cmd} -y install epel-release
remove_epel="true"
fi

# Install ncdu (and if not found try installing epel-release, then re-try)
if ! ${install_cmd} -q list ncdu >/dev/null 2>&1; then
# is epel-release present?
if ${install_cmd} -q list epel-release >/dev/null 2>&1; then
${install_cmd} -y install epel-release
remove_epel="true"
# is ncdu now available?
if ${install_cmd} -q list ncdu >/dev/null 2>&1; then
package_list="${package_list} ncdu"
fi
fi
else
package_list="${package_list} ncdu"
fi
fi

# Install zsh if needed
Expand Down