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
ncdusource code:wget https://dev.yorhel.nl/download/ncdu-1.15.1.tar.gzExtract the tarball:
tar -xzvf ncdu-1.15.1.tar.gzNavigate to the extracted folder:
cd ncdu-1.15.1Configure the build:
./configure --prefix=/usrIf there's an error related to the absence of
ncurses.h, install thencursesdevelopment package:yum install ncurses-devel ncursesThen run the configure step again.
Build the source code:
makeInstall
ncdu:sudo make installOptional: 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