LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   subpackage in deb (https://www.linuxquestions.org/questions/linux-general-1/subpackage-in-deb-775812/)

deepinlife 12-15-2009 10:24 AM

subpackage in deb
 
can i make more than one deb file in one deb file?if yes then how?
i think in rpm we can do so ,can't we?

voyciz 12-15-2009 11:00 AM

Don't know if it's possible, but to me it would just be a bad idea. Deb packages allow for dependency checking, why not just make it a dependency? Or even just throw it all into one package?

deepinlife 12-15-2009 11:05 AM

Quote:

Originally Posted by voyciz (Post 3792432)
why not just make it a dependency? Or even just throw it all into one package?

maybe because i don't want to make the user gather 2 or 3 files to install them , or maybe since the user don't have interent to install the packages from .
the idea of having all the packages u need in one file maybe not the best but i need it , or do u have another solution ?

voyciz 12-15-2009 03:20 PM

So just combine it all into one package and have it all install at once. Nesting packages would just be complicating and messy.

AlucardZero 12-15-2009 03:52 PM

Use tar?

deepinlife 12-16-2009 12:10 AM

Quote:

Originally Posted by voyciz (Post 3792724)
So just combine it all into one package and have it all install at once. Nesting packages would just be complicating and messy.

sorry but can u tell me more about this tecnic ?what is nesting packaging ?and how i can make it all in one package ?
i tried to make a preinst script and call dpkg but it failed since it locks itself so i can't run 2 process of dpkg



Quote:

Use tar?
i m sorry , i can't use it , tar will just archive them in one file , i need the idea of click and go , clicking on the tar file will just extract it , i think there is no way i can load a binary from just extracting the tar file , can't i ?

voyciz 12-16-2009 07:49 AM

What he means by using tar is that .deb packages are nothing more than compressed tar archives. You'll need to uncompress and extract the packages in question and combine them. To find out which compression it's using
$ file PACKAGE.deb

So for instance, if I extracted these files out of one:
Code:

/etc/config1.conf
/usr/bin/firstbin

And these out of another:
Code:

/etc/config2.conf
/usr/bin/secondbin
/usr/man/man8/secondbin.8.gz

You would combine them into one archive that contained:
Code:

/etc/config1.conf
/etc/config2.conf
/usr/bin/firstbin
/usr/bin/secondbin
/usr/man/man8/secondbin.8.gz

Of course you'll also need mind the install scripts and whatever else is contained in those sorts of packages. I'm not familiar with them myself. Obviously you'll need to do some research on the .deb structure. Here's a start:
http://en.wikipedia.org/wiki/Deb_(file_format)


All times are GMT -5. The time now is 10:36 PM.