search available packages with keyword

$ apt-cache search <keyword>

list available versions of a package. For example, if I want to list all available versions for package libcudnn7

$ apt list -a libcudnn7

Before running this, running apt update is recommended.

After finding a specific version that I want to install, then install the packge with a specific version like this

$ apt install libcudnn7=7.6.5.32-1+cuda10.1
Categories: linux

0 Comments

Leave a Reply

Your email address will not be published.