User Tools

Site Tools


notes:apt-trick

Differences

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

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
notes:apt-trick [2014/10/02 17:45] – created adminnotes:apt-trick [2014/10/03 09:12] admin
Line 1: Line 1:
-apt-get +To update your package list
- +
-You can run a simulation to see what would happen if you upgrade/install a package+
-  apt-get --dry-run install <package> <pkgname> +
-(or -s) +
-   +
- +
-  apt-get install --donwload-only <pkgname> +
-(or -d) +
   apt-get update   apt-get update
-so your package list is up-to-date, 
  
-  apt-cache search+To simulate what would happen if you upgrade/install a package with //--dry-run// or //-s// 
 +  apt-get install --dry-run <pkgname>
  
-  apt-cache show postgresql +To download only a package without installing it with //--download-only// or //-d// 
-the simplest way to see the description of a package:+  apt-get install --download-only <pkgname>
  
 +Re-install a package that is already installed and at the newest version
 +  apt-get install --reinstall <pkgname>
  
-  apt-cache policy <package> +To upgrade a single package, and only if it is installed. 
-Otherwise it prints out detailed information about the +  apt-get install --only-upgrade <pkgname>
-           priority selection of the named package (as a consequence, installed and candidate versions)+
  
 +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>
  
-The apt-cache command can do keyword-based package searches with apt-cache search keyword. It can also display the headers of the package's available versions with apt-cache show package. This command provides the package's description, its dependencies, the name of its maintainer, etc.  +To show all the installed files of package use 
- +  dpkg-query -L <pkgname> 
 +or 
 +  dpkg --listfiles <pkgname>
notes/apt-trick.txt · Last modified: 2014/11/02 11:47 by admin