Re: Creating deb packages from scratch
While we're talking about packages, here's a lister for showing installed packages by install times.
Copy to a text file named 'test.src' and type 'source test.src' to load the definitions, or just copy it into a terminal and then...
type 'pkg_times' to run it.
If you temporarily install untilities for a specific job, you can get a good idea what you installed including dependencies so you can uninstall them when you no longer need or want them.
While we're talking about packages, here's a lister for showing installed packages by install times.
Code:
# Probably requires bash. I don't think dash will do it right.
_pkg_times()
{
echo
for i in /var/lib/dpkg/info/*.list; do
local a=`stat $i | sed '/Modify:/!d; s|Modify: ||; s|\..*||'`
local b=`basename $i .list`
b=$b" "
printf "%.40s: % 20s\n" "$b " "$a"
done
}
pkg_times()
{
# echo "Working... pls wait."
_pkg_times | sort -k 2
}
type 'pkg_times' to run it.
If you temporarily install untilities for a specific job, you can get a good idea what you installed including dependencies so you can uninstall them when you no longer need or want them.










Comment