User Tools

Site Tools


notes:apt-trick

This is an old revision of the document!


To update your package list

apt-get update

To simulate what would happen if you upgrade/install a package with –dry-run or -s

apt-get install --dry-run <pkgname>

To download only a package without installing it with –download-only or -d

apt-get install --download-only <pkgname>

Re-install a package that is already installed and at the newest version

apt-get install --reinstall <pkgname>

To upgrade a single package, and only if it is installed.

apt-get install --only-upgrade <pkgname>

To do keyword-based package searches

apt-cache search <keyword>

To display the description, the headers, the dependencies of a package:

apt-cache show <pkgname>

To show the priority selection of the package (the installed and the repo versions)

apt-cache policy <pkgname>
notes/apt-trick.1412281328.txt.gz · Last modified: 2014/10/02 20:22 by admin