notes:apt-trick
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
notes:apt-trick [2014/10/02 17:46] – admin | notes:apt-trick [2014/10/02 20:22] – admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | apt-get | + | To update your package |
- | + | ||
- | You can run a simulation to see what would happen if you upgrade/ | + | |
- | apt-get --dry-run install < | + | |
- | (or -s) | + | |
- | + | ||
- | + | ||
- | apt-get install --donwload-only < | + | |
- | (or -d) | + | |
apt-get update | apt-get update | ||
- | so your package list is up-to-date, | ||
- | | + | To simulate what would happen if you upgrade/ |
+ | | ||
- | apt-cache show postgresql | + | To download only a package |
- | the simplest way to see the description of a package: | + | apt-get install --download-only < |
+ | Re-install a package that is already installed and at the newest version | ||
+ | apt-get install --reinstall < | ||
- | apt-cache policy <package> | + | To upgrade a single |
- | Otherwise | + | apt-get install |
- | | + | |
- | + | ||
- | + | ||
- | + | ||
- | The apt-cache command can do keyword-based package searches with apt-cache search keyword. It can also display the headers of the package' | + | |
+ | To do keyword-based package searches | ||
+ | apt-cache search < | ||
+ | | ||
+ | To display the description, | ||
+ | apt-cache show < | ||
- | How to upgrade a single | + | To show the priority selection of the package |
- | You just need to do apt-get install --only-upgrade | + | apt-cache policy |
notes/apt-trick.txt · Last modified: 2014/11/02 11:47 by admin