To install a package with apt, run the following command in the terminal: sudo apt install <package-name>. Replace <package-name> with the name of the package you want to install.