Build nano: ============ Get nano at: http://ftp.gnu.org/gnu/nano/ Install by: tar -xvf nano*gz cd nano-x.x ./configure make -j$(nproc) sudo make install Date: February 2023 Update Feb 7th 2024: If you want to switch to the your build of nano, run: sudo apt purge nano -y *It will update the alternatives to vim, to set it back to nano: sudo update-alternatives --install /usr/bin/editor editor /usr/local/bin/nano 10 sudo update-alternatives --config editor *Input the number matching /usr/local/bin/nano Your all set! Source: https://www.baeldung.com/linux/update-alternatives-command