summaryrefslogtreecommitdiff
path: root/doc/Aptitude.txt
blob: 20b6630768c8159b088203324cc4dcdece83c576 (plain)
  1. Use aptitude instead of apt-get.
  2. And make sure only directly chosen packages are marked as such (type "M"
  3. at libraries and such)
  4. Then this gives a list of directly chosen packages:
  5. $ aptitude search '~i!~M' | sed 's/^... \([\.a-z0-9-]\+\) .*$/\1/'
  6. If needed besides official packages, use only carefully versioned
  7. unofficial/backported packages:
  8. Official Debian version strings are either x.y.z-a.b.c or (in case of
  9. Debian-native packages) a.b.c. Make sure for all unofficial packages
  10. (wether derived from official ones or not) to include a local tag in the
  11. Debian-part of the version string - as in x.y.z-a.b.yourtag.d and
  12. a.b.yourtag.d (where d is your local revision).
  13. Set your local revision as close as possible to the official package.
  14. * Simple backport of x.y.z-1.0 is done as x.y.z-0.99.yourtag.1.
  15. * Tweaked variant of x.y.z-1.0 is done as x.y.z-1.0.yourtag.1.
  16. * New package is done as x.y.z-0.0.yourtag.1.
  17. Then this gives a list of unofficial packages currently installed:
  18. $ aptitude search '~i!~Vyourtag' | sed 's/^... \([\.a-z0-9-]\+\) .*$/\1/'