In package settings, under Danger Zone, you will get an option to set the visibility of a package.
Danger Zone
Note: Once you make a package public, you cannot make it private again.