The Geek Stuff posted 15 aptitude Command Examples for Package Management in Debian and Ubuntu
This article explains several aptitude command examples including the following:15 aptitude Command Examples for Package Management in Linux
Install a specific version of a package
Install multiple packages using pattern
Search for a package using pattern
Get packages under a section
Don’t update a specific package (Using hold and keep)
Mark a package with a specific install type
Perform system update
Perform safe upgrade