Today, install some common software on a new server. At the beginning, install NCDU (a very useful disk analysis tool to find large files). The errors are as follows:
I found various methods on the Internet. It’s useless to update Yum and clean up Yum cache
The last problem found is the lack of EPEL (EPEL is a free and open source software package version library strongly built by the community, and the system contains about 10000 software packages). I am centos7, so I need to install this first
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Other versions can be installed on the official website https://fedoraproject.org/wiki/EPEL
After that, NCDU will be installed normally
yum -y install ncdu