you will not be able to run command bat after you install bat package from apt. were is how to fix it.
2023-07-10 11:06:50 [chchang@us ~ ]$ sudo update-alternatives --install
update-alternatives: --install needs <link> <name> <path> <priority>
Use 'update-alternatives --help' for program usage information.
2023-07-10 11:07:39 [chchang@us ~ ]$
sudo update-alternatives --install /usr/local/bin/bat bat /usr/bin/batcat 20