In some Linux distributions such as Debian and Ubuntu, software packages are signed (indeed using the OpenPGP format), so that you can be sure that you are installing genuine packages without backdoors inserted by malicious third parties; but the packages are not encrypted because they are, ultimately, public data.