Go through all the options in raspi-config, make sure you understand what they mean and set them up to your liking.
Added:
> >
After that we will have to sync the apt packages to the repository which we do with sudo apt update. After that we upgrade the system to the latest version of all packages: sudo apt upgrade.
Now you may install additional packages like pigpio, wiringpi, emacs ... using apt install package name