ke4nt1
Group: Members
Posts: 2329
Joined: Oct. 2003 |
|
Posted: Aug. 08 2004,15:20 |
|
I always start with a list... ( course I'm rebuilding them, but making changes or additions requires the same treatment.. ) You need to start with a list... Now, how far back you want to go, I don't know...
If you installed an app from apt-get, you can "dpkg -L packagename" to make a list, but then you have to know the names of ALL the packages you installed, ( I write them down during the install ) and make a list for each one and combine them. cbagger01's script does a great job of this, combining all the packages into one .dsl , with no directories.. You could always take that .dsl file, and use these tips to remove docs and man pages, etc.., and rebuilt the .dsl cleanly...
If you installed from a .tar.gz , you can use the previous "tar -ztf pkgname.* > *.txt" Either way, yes, it requires some handwork to make the list clean.. There are a few tools and tricks, like using emelfm search/replace feature to remove any leading ./'s that appear in filelists...
Read my other thread that mikshaw refers to, as it has more info about actually creating your .dsl from your list.. I think it answers your specific question about "compiling" a tar without directories.. Building your tar without directories is what the LIST is for. When you use "tar -T anylist.txt --no-recursion --numeric-owner -cvf- | gzip > anyfile.dsl" , as long a your LIST has no directories in it, your .dsl won't either...
For small files like these themes, I would simply type out a list..
But there is no reason you couldn't build them using the same method you did when you sent them to me, and then applying this info as a "second stage" to create your list, cleanup perms/owners, and remove unnecessary files. Edit the pieces we don't want out of your list, and rebuild the tar...
Just like I did....
Keep em' comin'
73 ke4nt
|