Juanito
![Offline](../../../../iB_html/non-cgi/Skin/Default/images/mem_offline.gif)
![](http://i40.piczo.com/view/1/s/k/2/c/e/i/a/e/n/3/l/img/i335095766_85206_6.jpg)
Group: Members
Posts: 1601
Joined: Sep. 2005 |
![](../../../../iB_html/non-cgi/Skin/Default/PostIcons/icon0.gif) |
Posted: Mar. 04 2007,14:11 |
![QUOTE](../../../../iB_html/non-cgi/Skin/Default/images/pb_quote.gif) |
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
|