FAQ » Servers
How can I install ncdu on RedHat/CentOS?
These steps guide you through the process of downloading, compiling, and installing ncdu
from the source code.
Here is a summary of the steps:
Download
ncdu
source code:wget https://dev.yorhel.nl/download/ncdu-1.15.1.tar.gz
Extract the tarball:
tar -xzvf ncdu-1.15.1.tar.gz
Navigate to the extracted folder:
cd ncdu-1.15.1
Configure the build:
./configure --prefix=/usr
If there's an error related to the absence of
ncurses.h
, install thencurses
development package:yum install ncurses-devel ncurses
Then run the configure step again.
Build the source code:
make
Install
ncdu
:sudo make install
Optional: Clean up:
rm ncdu-1.15.1.tar.gz rm -r ncdu-1.15.1
These steps should successfully install ncdu
on your Linux system. If you have any issues or encounter
errors during the installation process, carefully review the error messages for guidance on resolving dependencies or
other issues.
Last updated: 2020-05-01