#!/bin/sh
+# manually installed packages
+alias my_installed_packages="aptitude search -F %p '~i!~M'"
+
+# aptitude search ~i lists the installed packages
+# grep -v "^i A" removes the lines starting with "i A" (automatically pulled in dependencies)
+# cut -d " " -f 4 > clean.txt filters out the package names
+alias my_installed_packages2="aptitude search ~i | grep -v '^i A' | cut -d ' ' -f 4"
+
+# only to be done by root
+alias my_installed_pkg="zgrep -hE '^(Start-Date:|Commandline:)' $(ls -tr /var/log/apt/history.log*.gz ) | egrep -v 'aptdaemon|upgrade' | egrep -B1 '^Commandline: apt-get install'"
+
+alias my_installed_pkg2="( zcat $( ls -tr /var/log/apt/history.log*.gz ) ; cat /var/log/apt/history.log ) | egrep '^(Start-Date:|Commandline:)' | grep -v aptdaemon | egrep '^Commandline: apt-get install'"
+
# the grep I use the most
alias my_grep="grep -Hrnisl"