summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2004-05-17 23:40:13 +0000
committerJonas Smedegaard <dr@jones.dk>2004-05-17 23:40:13 +0000
commitd866aa1935ca752fe54b3d0901472c2de79fdc78 (patch)
tree6e54242668b1f90b64050d1d37094429c2c5ba91 /doc
parent9e86c9974402225a85ed51db2420e65003042d95 (diff)
Add notes on using aptitude.
Diffstat (limited to 'doc')
-rw-r--r--doc/Aptitude.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/Aptitude.txt b/doc/Aptitude.txt
new file mode 100644
index 0000000..20b6630
--- /dev/null
+++ b/doc/Aptitude.txt
@@ -0,0 +1,27 @@
+Use aptitude instead of apt-get.
+And make sure only directly chosen packages are marked as such (type "M"
+at libraries and such)
+
+Then this gives a list of directly chosen packages:
+
+ $ aptitude search '~i!~M' | sed 's/^... \([\.a-z0-9-]\+\) .*$/\1/'
+
+
+
+If needed besides official packages, use only carefully versioned
+unofficial/backported packages:
+
+Official Debian version strings are either x.y.z-a.b.c or (in case of
+Debian-native packages) a.b.c. Make sure for all unofficial packages
+(wether derived from official ones or not) to include a local tag in the
+Debian-part of the version string - as in x.y.z-a.b.yourtag.d and
+a.b.yourtag.d (where d is your local revision).
+
+Set your local revision as close as possible to the official package.
+ * Simple backport of x.y.z-1.0 is done as x.y.z-0.99.yourtag.1.
+ * Tweaked variant of x.y.z-1.0 is done as x.y.z-1.0.yourtag.1.
+ * New package is done as x.y.z-0.0.yourtag.1.
+
+Then this gives a list of unofficial packages currently installed:
+
+ $ aptitude search '~i!~Vyourtag' | sed 's/^... \([\.a-z0-9-]\+\) .*$/\1/'