Differences between version 34 and revision by previous author of AptNotes.
Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History
Newer page: | version 34 | Last edited on Wednesday, October 4, 2006 11:16:43 am | by CraigBox | Revert |
Older page: | version 33 | Last edited on Wednesday, June 7, 2006 2:47:16 pm | by AristotlePagaltzis | Revert |
@@ -190,4 +190,26 @@
!!! Releasing disk space
[APT] keeps copies of all the [Package]s you downloaded in <tt>/var/cache/apt/archive</tt>, which adds up over time. To remove all but the most recent copies, issue <tt>aptitude autoclean</tt>
+
+!!! Holding packages
+
+If you need to pin a certain package, you can easily do this with aptitude:
+
+<verbatim>
+root@box:~ # aptitude hold linux-image-2.6.15-26-server
+ <snip>
+root@box:~ # aptitude dist-upgrade
+Reading package lists... Done
+Building dependency tree... Done
+Reading extended state information
+Initializing package states... Done
+Building tag database... Done
+The following packages have been kept back:
+ linux-image-2.6.15-26-server
+The following packages will be upgraded:
+ bind9 bind9-host clamav clamav-base clamav-daemon clamav-freshclam
+ <snip>
+</verbatim>
+
+There is no command-line method for doing this with apt-get.