Juanito
Group: Members
Posts: 1601
Joined: Sep. 2005 |
|
Posted: Mar. 04 2007,14:11 |
|
There are two basic ways to do this:
1. From apt-get install packages:
# dpkg -L package-1 > packages.list # dpkg -L package-2 >> packages.list ... # dpkg -L package-n >> packages.list [edit out all unwanted files & directories] # tar -T packages.list --no-recursion -zcvf packages.dsl # declobber.sh packages.dsl
2. From compiling from sources:
# ./configure # make # touch mymarker # make install # find / -not -type 'd' -cnewer mymarker | grep -v "\/proc\/" | tee files [repeat process for each compilation and build a master files list] [edit out all unwanted files & directories] # tar -T files --no-recursion -zcvf compiled.dsl # declobber.sh compiled.dsl
In either case, the "DSL way" is to remove all files of the type /usr/share/doc, /usr/share/man to minimise the size of the package. Take care to remove directory entries without a file such as /bin, /usr/bin, etc
Send finished item to extensions at damnsmalllinux dot org
|