How do I install the GNU Debugger (gdb) on Arch Linux? I've checked that I don't already have gdb installed by running this command:
I've tried this:
sudo apt-get install gdb
but it's not working.
Arch Linux uses different package management. Use the below command format.
pacman -S package_name1 package_name2
man pacman to learn more about pacman.