Differences

This shows you the differences between two versions of the page.


aptitude [2017/11/10 16:14] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +====== aptitude ======
  
 +  * [[Ubuntu]]
 +  * [[apt-get]]
 +  * [[dpkg]]
 +
 +Get the version of package that is available:
 +
 +<code>
 +aptitude search <package> -F "%p %V"
 +</code>
 +
 +Install specific version:
 +
 +<code>
 +aptitude install <package>=<version>
 +</code>
 +
 +Display the versions that will be upgraded
 +
 +<code>
 +aptitude -ys safe-upgrade
 +</code>
 +
 +Clean output of packages to be upgraded, and what versions
 +
 +<code>
 +aptitude -ysV safe-upgrade | egrep "\[.*\s.*\]" | sed -e 's/^[[:space:]]*//' | sort
 +</code>
 +
 +Grep it down to a list of LAMP packages:
 +
 +<code>
 +egrep -i "(apache|sql|php|ssl|percona)"
 +</code>
 +
 +Search on installed packages, and display results in batch-friendly output:
 +
 +<code>
 +aptitude search '~idvd_info' -F %p
 +</code>
 +
 +Remove all the data installed by a package:
 +
 +<code>
 +aptitude purge dvd_info
 +</code>
 +
 +Download a package and its dependencies:
 +
 +<code>
 +aptitude -yd install <package>
 +</code>

Navigation
QR Code
QR Code aptitude (generated for current page)